[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2216] nagiosplug/trunk/plugins-scripts/ check_ifoperstatus.pl

dermoth at users.sourceforge.net dermoth at users.sourceforge.net
Thu Jun 11 17:29:47 CEST 2009


Revision: 2216
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2216&view=rev
Author:   dermoth
Date:     2009-06-11 15:29:47 +0000 (Thu, 11 Jun 2009)

Log Message:
-----------
minor fixes to check_ifoperstatus

Minor output fixes for check_ifoperstatus.
Fixed typo so that -n now implies -I as documented.

From: Matthias Eble <psychotrahe at gmx.de>

Modified Paths:
--------------
    nagiosplug/trunk/plugins-scripts/check_ifoperstatus.pl

Modified: nagiosplug/trunk/plugins-scripts/check_ifoperstatus.pl
===================================================================
--- nagiosplug/trunk/plugins-scripts/check_ifoperstatus.pl	2009-06-11 15:29:39 UTC (rev 2215)
+++ nagiosplug/trunk/plugins-scripts/check_ifoperstatus.pl	2009-06-11 15:29:47 UTC (rev 2216)
@@ -379,10 +379,10 @@
 	}
 
 	unless ($snmpkey > 0 || defined $ifdescr || defined $iftype){
-		usage("Either a valid snmpkey key (-k) or a ifDescr (-d) must be provided");
+		usage("Either a valid snmp key (-k) or a ifDescr (-d) must be provided");
 	}
 
-	if (defined $name) {
+	if (defined $ifName) {
 		$ifXTable=1;
 	}	
 
@@ -420,7 +420,7 @@
 		
 			# Must define a security level even though defualt is noAuthNoPriv
 			unless ( grep /^$seclevel$/, qw(noAuthNoPriv authNoPriv authPriv) ) {
-				usage("Must define a security level even though default is noAuthNoPriv");
+				usage("Must define a valid security level even though default is noAuthNoPriv");
 			}
 			
 			# Authentication wanted


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list