aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils.c
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2009-03-20 02:19:42 -0400
committerGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2009-03-20 02:19:42 -0400
commitc459ca07706ee315da3eac91344c2f1d9a152685 (patch)
treed91659325daad0a7580fbbf6ea6719f84fb9ef2f /plugins/utils.c
parent4142e178403483d6c1a27e765c0a86e77278c2d6 (diff)
downloadmonitoring-plugins-c459ca07706ee315da3eac91344c2f1d9a152685.tar.gz
Make alarm handler customisable
Diffstat (limited to 'plugins/utils.c')
-rw-r--r--plugins/utils.c6
1 files changed, 3 insertions, 3 deletions
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);
}
}