[Nagiosplug-devel] Bug in check_oracle.sh

Ton Voon tonvoon at mac.com
Wed Aug 18 12:48:00 CEST 2004


Carole,

Thanks for the report. This is now fixed in CVS.

Ton

On 9 Jun 2004, at 16:32, carole verdon wrote:

> 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.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: GNOME Foundation
> Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
> GNOME Users and Developers European Conference, 28-30th June in Norway
> http://2004/guadec.org
> _______________________________________________
> Nagiosplug-devel mailing list
> Nagiosplug-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any 
> issue. ::: Messages without supporting info will risk being sent to 
> /dev/null
>





More information about the Devel mailing list