[Nagiosplug-devel] nagios plugin written in sh

Michael Marziani michaelm at kw.com
Thu Jul 11 06:21:04 CEST 2002


More info on this would be good.  Could you forward the script to the
list?

-Michael

____________________________
Michael D. Marziani
Sr. Systems Administrator
Keller Williams Realty Int'l


-----Original Message-----
From: Daniel Geske [mailto:daniel.geske at yoc.de] 
Sent: Thursday, July 11, 2002 8:16 AM
To: nagiosplug-devel at lists.sourceforge.net
Subject: [Nagiosplug-devel] nagios plugin written in sh


Hi all,

I am writing a shell script which ought to select a certain cell from a
mysql database (specified in the parameter) and, if found, return OK/0,
if not a CRITICAL/2. Now something really strange happens. I test the
plugin on the command line, being the same user as the nagios process.
Everything works fine. So I put the plugin command into my
checkcommands.cfg and associate a service with it, wait... and now comes
the surpise: mysql exits with a status 1 - not 0 as it should, even if
it does NOT find the cell I'm asking for. Anybody ever had such
problems? What can I do about this?

TIA.

Sincerely

Daniel Geske

--
Daniel Geske
IT, YOC AG
e-mail: daniel.geske at yoc.de



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more http://thinkgeek.com/sf
_______________________________________________
Nagiosplug-devel mailing list Nagiosplug-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel




More information about the Devel mailing list