david.shapiro at btitele.com
Tue Jul 9 13:25:10 CEST 2002
The environment is okay. I use perl's use Env module to handle environment
variables. It looks like a problem with using expect.pm with nrpe. Expect
has its own exit that it does with no options (i.e., STATUS_WARNINGS, 1, 2 ,
whatever, etc.). So, although my perl script does not exit, within it
another program (expect) does have an exit. Consequently, my print
statement and exit code, which come after Expect exists from running
sqlplus, are ignored, so nrpe thinks it got no output to print to screen or
an exit code. I need to see if I can send my print statement and exit
before expect finishes and sends an exit.
From: Jackson Sie [mailto:jsie at quadrix.com]
Sent: Tuesday, July 09, 2002 11:57 AM
To: David Shapiro; nagiosplug-help at lists.sourceforge.net
Subject: RE: [Nagiosplug-help] check_nrpe
This is very likely a problem with your LD_LIBRARY_PATH (assuming a
Linux-like OS). As a test, you might wrap your chkoracle.pl script with a
simple shell script to spit out what it thinks the current env looks like.
We had a similar problem trying to get the check_snmp to work.
Quadrix Solutions, Inc.
From: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net]On Behalf Of David
Sent: Tuesday, July 09, 2002 9:02 AM
To: 'nagiosplug-help at lists.sourceforge.net'
Subject: [Nagiosplug-help] check_nrpe
I made a script that uses expect.pm/perl to sqlplus login to sids and
return errors if logins fail for some reason. I used the exit codes from
config.sh. Anyway, the script works from the command line fine:
# /usr/local/bin/bti/chkoracle.pl --login system/test --oracle 816
SQL*Plus: Release 184.108.40.206.0 - Production on Tue Jul 9 08:52:45 2002
(c) Copyright 1999 Oracle Corporation. All rights reserved.
ORA-01034: ORACLE not available
Enter user-name: SQLPLUS: Oracle 816 unavailable. Check if Oracle down,
Invalid SID used, or oraenv settings not correctly set.
But using check_nrpe:
# /usr/local/nagios/libexec/check_nrpe 10.1.1.1 -to 60 -c
CHECK_NRPE: Receive underflow. Only 12 bytes received (1040 expected).
What is happening here? What is this underflow error? What is going on?
David E. Shapiro
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
More information about the Help