RE: Problem with perl check -- PROBLEM RESOLVED

Mike Dean <[email protected]>
Newsgroups gmane.network.netsaint.user
Message-ID <F7DFBEB448C8F5448E856EE1D590996F786B01@fljaxeml01>
I've actually resolved the problem.  It seems that nagios didn't like my
SNMP password being passed as one of the user configurable variables
($USER4$) to the perl script.  If I instead put the snmp password on the
"command line" of service check, it works fine.
 
Mike
-----Original Message-----
From: Mike Dean 
Sent: Wednesday, September 18, 2002 10:30 AM
To: Nagios Users (E-mail)
Subject: [netsaint] Problem with perl check



Using nagios version 1.05b with a custom check_snmp perl program (embedded
perl is not being used). 

Running it from the command line, it correctly returns 0 for OK and outputs
the appropriate values (single line of output, approximately 25 characters).
However, when run as a service check via Nagios, it returns a value of
UNKNOWN (the returned data states no response from host).  

Note that the command line check of the script was executed from the same
machine running Nagios, using the same options as the nagios service check.

Any ideas why the machine Nagios is running on can contact the device, but
nagios cannot? 

Mike
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.