Code

check_smtp: Abort on missing/unexpected greeting
[nagiosplug.git] / plugins / utils.c
index 1900ef8601574e9e61970fcf286f07a497c200c3..45373909560552b462ccbb11ecdcc51c1a7a2ca8 100644 (file)
@@ -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);
        }
 }