From 214912b5492c2c8b294d60f7b50f152b5f8314ff Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Thu, 6 Aug 2009 13:34:09 -0700 Subject: [PATCH] Make it unknown if plugin fails getting information from NC_Net --- nagios/plugins/check_winsvc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nagios/plugins/check_winsvc b/nagios/plugins/check_winsvc index 8fe1f30..7c95362 100755 --- a/nagios/plugins/check_winsvc +++ b/nagios/plugins/check_winsvc @@ -118,8 +118,8 @@ alarm($timeout); my $cmd = $basecmd . "-v ENUMSERVICE -l Automatic"; my $svc_list = `$cmd`; if ($? != 0) { - print "CRITICAL: Could not retrieve information from check_nt. Host down?\n"; - exit $ERRORS{'CRITICAL'}; + print "UNKNOWN: Could not retrieve information from check_nt. Host down?\n"; + exit $ERRORS{'UNKNOWN'}; } chomp $svc_list; -- 2.11.4.GIT