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

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
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 <[email protected]>

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.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.