diff --git a/plugins/utils.c b/plugins/utils.c
index 1900ef8601574e9e61970fcf286f07a497c200c3..45373909560552b462ccbb11ecdcc51c1a7a2ca8 100644 (file)
--- a/plugins/utils.c
+++ b/plugins/utils.c
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);
}
}