Code

UNKNOWN exit status was returning status of "-1", changed to "3"
[nagiosplug.git] / contrib / check_email_loop.pl
index bcaf13b49cdff146fda49f47fa949859db03a644..fb418ee3cd3806145e71ffecf98ea376a910e654 100644 (file)
@@ -41,10 +41,10 @@ use Getopt::Long;
 # ----------------------------------------
 
 my $TIMEOUT = 120;
-my %ERRORS = ('UNKNOWN' , '-1',
-              'OK' , '0',
+my %ERRORS = ('OK' , '0',
               'WARNING', '1',
               'CRITICAL', '2');
+              'UNKNOWN' , '3');
 
 my $state = "UNKNOWN";
 my ($sender,$receiver, $pophost, $popuser, $poppasswd, $smtphost,$keeporphaned);