[Nagiosplug-devel] Bug in check_oracle.sh
carole verdon
verdon at cict.fr
Wed Jun 9 08:34:01 CEST 2004
Hi,
I would indicate that there is a bug in check_oracle.sh line 161:
--db)
pmonchk=`ps -ef | grep -v grep | grep ${2} | grep -c pmon`
In my case, in /etc/oratab, there is 2 databases called "etu92" et
"etu923". The database "etu92" is active while "etu923" is no active.
When i execute the check_oracle with the sid "etu92", it find that there
is 1 PMON process running. In fact, it takes into account the process
that corresponding to the sid "etu923".
To solve this problem, it is enough to correct the line that calls the
'ps' command by:
pmonchk=`ps -ef | grep -v grep | grep ${2}$ | grep -c pmon`
I hope that will be corrected in the next version of the plugins.
Carole.
More information about the Devel
mailing list