packages: nagios-plugin-check_asterisk_skype/check_asterisk_skype - handle ...

glen glen at pld-linux.org
Wed Mar 3 07:59:00 CET 2010


Author: glen                         Date: Wed Mar  3 06:59:00 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- handle no balance info found cases

---- Files affected:
packages/nagios-plugin-check_asterisk_skype:
   check_asterisk_skype (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_asterisk_skype/check_asterisk_skype
diff -u packages/nagios-plugin-check_asterisk_skype/check_asterisk_skype:1.8 packages/nagios-plugin-check_asterisk_skype/check_asterisk_skype:1.9
--- packages/nagios-plugin-check_asterisk_skype/check_asterisk_skype:1.8	Wed Mar  3 07:56:55 2010
+++ packages/nagios-plugin-check_asterisk_skype/check_asterisk_skype	Wed Mar  3 07:58:55 2010
@@ -161,6 +161,11 @@
 			last;
 		}
 	}
+
+	if (!$seen) {
+		$message .= "; Balance UNKNOWN: No info found";
+		$status = $ERRORS{UNKNOWN} unless $status;
+	}
 }
 
 #####################################################################
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_asterisk_skype/check_asterisk_skype?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list