Trouble with Nag-1.0/ePN/check_by_ssh: check returns UNKNOWN status _in_ Nagios.
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Sat Feb 22 11:45:08 CET 2003
Dear Ladies and Gentlemen,
truss of the check_by_ssh process reports
tsitc# truss -p 12305 | more
(null)() = 17 (0x11)
SIGNAL 20
read(0x3,0x8052000,0x4000) = 0 (0x0)
fstat(6,0xbfbff5d4) = 0 (0x0)
break(0x805a000) = 0 (0x0)
read(0x6,0x8056000,0x4000) = 0 (0x0)
close(6) = 0 (0x0)
close(3) = 0 (0x0)
wait4(0x3013,0xbfbff6c0,0x0,0x0) = 12307 (0x3013)
fstat(1,0xbfbff364) = 0 (0x0)
write(1,0x8052000,17) = 17 (0x11)
exit(0xff) process exit, rval =
65280
(on this system, SIGNAL 20 is SIGCHLD).
I interpret the last two lines of this as, plugin wrote 17 characters
('all databases ok\n') - so I probably got the correct process - and
returned OK (0xff >> 8 == 0. What does rval mean ?).
However, the Nag log and status pages report
Sat Feb 22 21:29:27 SERVICE ALERT: oradev;DB
Connectivity;UNKNOWN;HARD;3;all databases ok
Obviously I am wrong or missing something.
Your suggestions are _most_ welcome.
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
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