[Nagiosplug-devel] Check_oracle

Khan, Ali AKhan2 at ifdsgroup.co.uk
Wed Mar 22 02:42:02 CET 2006


Hello Sean, same problem, its only if i remove the $ sign does the
correct name get resolved.

regards,
Ali

-----Original Message-----
From: sean finney [mailto:seanius at seanius.net]
Sent: 21 March 2006 22:20
To: Khan, Ali
Cc: nagiosplug-devel at lists.sourceforge.net
Subject: Re: [Nagiosplug-devel] Check_oracle


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


INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
********************** N O T I C E *********************************

This message and any attachments is intended only for the individual or company to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your possession.

International Financial Data Services (UK) Ltd is authorised and regulated by the Financial Services Authority.

This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.

**********************************************************************





More information about the Devel mailing list