[Nagiosplug-devel] nagios plugin written in sh

Daniel Geske daniel.geske at yoc.de
Thu Jul 11 06:16:08 CEST 2002


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





More information about the Devel mailing list