[Nagiosplug-devel] [ nagiosplug-Bugs-1569488 ] check_ifoperstatus.pl - -n option doesn't work, with fix

SourceForge.net noreply at sourceforge.net
Mon Oct 2 21:20:05 CEST 2006


Bugs item #1569488, was opened at 2006-10-02 15:12
Message generated for change (Comment added) made by jsellens
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1569488&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: John Sellens (jsellens)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_ifoperstatus.pl - -n option doesn't work, with fix

Initial Comment:
I wanted to use the -n option to check_ifoperstatus,
but it wasn't working.

The -n / --name option declarations set the $ifName
variable, but the test around line 153 checks $name
instead of $ifName, so the names are never compared.

In the paragraph starting with the "Check to see if
ifName match", change $name to $ifName in the 3 places
it is used.

thanks - cheers!

John
who's very surprised this has apparently existed this
long without anyone noticing

----------------------------------------------------------------------

>Comment By: John Sellens (jsellens)
Date: 2006-10-02 15:20

Message:
Logged In: YES 
user_id=8519

Oops - and also in the "if (defined $name) {" at line 143

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1569488&group_id=29880




More information about the Devel mailing list