[Nagiosplug-devel] Check_oracle
sean finney
seanius at seanius.net
Tue Mar 21 14:21:01 CET 2006
hi ali,
On Tue, Mar 21, 2006 at 02:43:27PM -0000, Khan, Ali wrote:
> --db)
> pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"`
>
> The above line has an extra '$' at the end, please change it to
>
> --db)
> pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}"`
>
> The database is reported as down even though it is up as the oracle sid cannot be resolved due to the trailing $
without knowing a lot about what's going on, it seems that this trailing
'$' was intended to mean "end of line" in the grep regexp. thus,
would it make more sense to replace it with "ora_pmon_${2}\$" ?
in any case, good catch!
thanks,
sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://nagios-plugins.org/archive/devel/attachments/20060321/43af16c1/attachment.sig>
More information about the Devel
mailing list