[Nagiosplug-devel] Status UNKNOWN
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Thu Nov 4 14:59:38 CET 2004
Dear Sir,
I am writing to thank you for your letter and say,
On Thu, Nov 04, 2004 at 12:58:21PM +0100, Micahel Thorsager wrote:
> Well.. I have created a plugin to check the status of Solaris Volume
> Manager. I use the check_by_ssh plugin to run my check_svm on remote
> machines and it works like a charm.
Slowlaris !
> But I have one server from witch the status in nagios is set to
> 'UNKNOWN' .. I just don't get it. I have run the whole check_by_ssh
> command by hand as user 'nagios' and the exit code is 0 as it should be
> and the text is as it should be but status in nagios is set to UNKNOWN.
>
My experience is somewhat similar. On a remote Solaris host , Nagios
runs a ksh script developed by the DBAs to check DB connectivity. The
check is run by ssh.
I found I had to redirect STDERR to /dev/null to get it to work
properly under Nag; flawless from the CLI.
eg
check_by_ssh4!120!db_check/db_check nonprod 2>/dev/null
..
# 'check_by_ssh4' command definition
define command{
command_name check_by_ssh4
command_line $USER1$/check_by_ssh -t $ARG1$ -H $HOSTNAME$ -C
'$ARG2$'
YMMV.
> --
> Michael Thorsager
> http://www.krakow.dk
Hope this helps.
Yours sincerely.
--
Stanley Hopcroft
Network specialist, IT Infrastructure
IP Australia
Ph: (02) 6283 3189 Fax: (02) 6281 1353
PO Box 200 Woden ACT 2606
http://www.ipaustralia.gov.au
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disclaimer.txt
URL: <http://nagios-plugins.org/archive/devel/attachments/20041104/d52ad460/attachment.txt>
More information about the Devel
mailing list