[Nagiosplug-devel] [ nagiosplug-Bugs-1202797 ] Uninitialized value warning in check_ifoperstatus

SourceForge.net noreply at sourceforge.net
Mon May 16 16:11:24 CEST 2005


Bugs item #1202797, was opened at 2005-05-16 08:03
Message generated for change (Comment added) made by sghosh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1202797&group_id=29880

Category: Embedded Perl failure
Group: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Reuben Farrelly (reuben)
>Assigned to: Subhendu Ghosh (sghosh)
Summary: Uninitialized value warning in check_ifoperstatus

Initial Comment:
I've been seeing this error for the last few weeks with
this plugin.  This is the message returned by the
plugin when invoked via Nagios:

**ePN /usr/lib/nagios/plugins/check_ifoperstatus: "Use
of uninitialized value in numeric gt (>) at (eval 3257)
line 359". 

Nagios displays an 'orange' status for this check.

line 359 looks like this:

unless ($snmpkey > 0 || defined $ifdescr){


When the command is executed manually, it looks like this:

[root at tornado plugins]#
/usr/lib/nagios/plugins/check_ifoperstatus -H
192.168.0.1 -C snmpaccess -d ATM0
OK: Interface ATM0 (index 1) is up.[root at tornado plugins]# 

(I wonder if a missing CR at the end is a bad thing..)



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

>Comment By: Subhendu Ghosh (sghosh)
Date: 2005-05-16 18:21

Message:
Logged In: YES 
user_id=46572

This is strange. snmpkey is initialized to 0 and you are
using -d so snmpkey should remain at 0.

Which version of nagios and plugin?

How long has Nagios with ePN been running?


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

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




More information about the Devel mailing list