[Nagiosplug-devel] nagios plugin written in sh
Bertelson, Tom (CAP, CARD)
Tom.Bertelson at gecapital.com
Thu Jul 11 06:23:04 CEST 2002
Carefully check your environment variables. This is the problem I run into
most often. You may have things exported at the command line that the
nagios daemon doesn't.
--
Tom Bertelson "Any sufficiently advanced technology
GE Card Services is indistinguishable from magic."
Tom.Bertelson at gecapital.com -- Arthur C. Clarke
-----Original Message-----
From: Daniel Geske [mailto:daniel.geske at yoc.de]
Sent: Thursday, July 11, 2002 9: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?
More information about the Devel
mailing list