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

SourceForge.net noreply at sourceforge.net
Sun May 22 07:50:00 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

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: 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-22 10:47

Message:
Logged In: YES 
user_id=46572

No - leave this open.  Need to check what ePN changes have
happened to cause this.

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

Comment By: Reuben Farrelly (reuben)
Date: 2005-05-22 07:43

Message:
Logged In: YES 
user_id=26209

Disabled --enable-embedded-perl with Nagios and the error
has gone and all looks OK.  Shall I close this and re-open a
bug with Nagios instead or is this possibly just a bad
interaction between the plugin and embedded perl?


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

Comment By: Reuben Farrelly (reuben)
Date: 2005-05-16 19:25

Message:
Logged In: YES 
user_id=26209

Using both -CVS of Nagios and -CVS of nagiosplug...

The config on this has not changed for many months..  Is it
worth me disabling the ePN to test?


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

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