[Nagiosplug-help] check_nrpe

David Shapiro david.shapiro at btitele.com
Tue Jul 9 06:00:05 CEST 2002


Hello,

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 8.1.6.0.0 - Production on Tue Jul 9 08:52:45 2002

(c) Copyright 1999 Oracle Corporation.  All rights reserved.

ERROR:
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_db_sqlplus_816'
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






More information about the Help mailing list