(Return code of 9 is out of bounds)
Thomas Guyot-Sionnest
dermoth at aei.ca
Tue Oct 2 01:28:57 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 28/09/07 03:42 PM, zack kenton wrote:
> Hi Thomas and all,
> For those of you eager to help me debug...haha...much appreciated
At first glance I'd guess it's caused by the embedded Perl interpretor
since this script uses global variables.
Is the script working correctly when run from the command line? (Check
the return code in $?)
You can try changing your check command to include the full path to Perl.
i.e. from:
check_command $USER1$/check_oracle_instance.pl ARGS...
to:
check_command /usr/bin/perl USER1$/check_oracle_instance.pl ARGS...
Also if all you need is to check if your Oracle database is responding,
you could try the attached script that I wrote. Since I haven't tested
it for Oracle yet I'd be glad to have some reports.
You will have to specify the "Oracle" driver:
./check_sql -d Oracle -H hostname etc...
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHAYK56dZ+Kt5BchYRAtAXAKDNR5CL7ScTnAaoNeShqEL+PjleMACg3VX3
7PtOQqcfJNvGnLT0zXNJ8hg=
=N5ZN
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check_sql
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071001/ce509f67/attachment.ksh>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list