|
From: Neil S. <Nei...@ex...> - 2011-08-11 15:16:38
|
Hi Wim, Thanks for that. Tested and working. I've been trying to find how to do the "not equal" in a regular expression for a few days because of another issue I was looking at and now I know it's easy to find information about negative look-ahead assertion. Couldn't find it before though so this is very much appreciated. Neil. -----Original Message----- From: W.J.M. Nelis [mailto:Wim...@nl...] Sent: 11 August 2011 14:57 To: dev...@li... Subject: Re: [Devmon] Threshold not equal to string value hello, > Is there any way either through using the Transforms file or the > Thresholds file that I can set my severity to red if the returned string > from an OID is not equal to a fixed string value. > > > To elaborate a little, I am looking at monitoring an IBM XIV storage > device via SNMP and Devmon. > > I have the oid .1.3.6.1.4.1.2021.77.1.1.1.1.0 for which I currently get > the value "Full Redundancy". This is an acceptable value. > I've not tested it, but you might try "^(?!Full Redundancy)" (without the "-s). It does match if the begin-of-line is not followed by "Full Redundancy". HTH, Wim Nelis. ************************************************************************ ******************************* The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages. ************************************************************************ ******************************* ------------------------------------------------------------------------ ------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Devmon-support mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/devmon-support Name & Registered Office: EXPRESS GIFTS LIMITED, 2 GREGORY ST, HYDE, CHESHIRE, ENGLAND, SK14 4TH, Company No. 00718151. Express Gifts Limited is authorised and regulated by the Financial Services Authority ------------ NOTE: This email and any information contained within or attached in a separate file is confidential and intended solely for the Individual to whom it is addressed. The information or data included is solely for the purpose indicated or previously agreed. Any information or data included with this e-mail remains the property of Findel PLC and the recipient will refrain from utilising the information for any purpose other than that indicated and upon request will destroy the information and remove it from their records. Any views or opinions presented are solely those of the author and do not necessarily represent those of Findel PLC. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. No warranties or assurances are made in relation to the safety and content of this e-mail and any attachments. No liability is accepted for any consequences arising from it. Findel Plc reserves the right to monitor all e-mail communications through its internal and external networks. If you have received this email in error please notify our IT helpdesk on +44(0) 1254 303030 |