From c459ca07706ee315da3eac91344c2f1d9a152685 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Fri, 20 Mar 2009 02:19:42 -0400 Subject: Make alarm handler customisable --- plugins/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/utils.c') diff --git a/plugins/utils.c b/plugins/utils.c index 1900ef86..45373909 100644 --- a/plugins/utils.c +++ b/plugins/utils.c @@ -168,9 +168,9 @@ void timeout_alarm_handler (int signo) { if (signo == SIGALRM) { - printf (_("CRITICAL - Plugin timed out after %d seconds\n"), - timeout_interval); - exit (STATE_CRITICAL); + printf (_("%s - Plugin timed out after %d seconds\n"), + state_text(timeout_state), timeout_interval); + exit (timeout_state); } } -- cgit v1.2.3