Hi,

We recommend using environment variables within your script. This avoids all the issues with quoting at the shell level.


Ton


On 28 Dec 2009, at 17:02, Jon Schulz wrote:

Hey all,

In our old nagios implementation we had the ability to enclose our nagios variables in single or double quotes to ensure information with special chars are properly enclosed in strings when sending to event handlers.

In my current deployment of opsview 3.3.0 when I attempt to quote up a variable in the event handler definition, for instance '$LONGSERVICEOUTPUT$', I get this error: Can only use alphanumerics, space or: $.-

This is throwing my event handlers for loops because when "BadThingsHappen" and some of the service checks time out it sends (Service Check Timed Out) to the event handler, which bash promptly barfs on with a syntax error because the variable isn't quoted.

Now most people would argue to bump the timeout but in this particular case it is a monitored service that has caused a load spike on the machine. I need the event handlers to fire on this timeout because our handlers will move some services off the box and also page us about the issue.

Is this quoting problem by chance fixed in later versions or if someone knows of a way for me to fix/modify this field sanity check?

Opsview-3.3.0 community
Centos5.4 x86_64 2.6.18-164.6.1.el5

Kind regards,
~Jon S.
Senior Systems Admin
Mimecast North America

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Ton Voon
Product Architect



Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK

Phone:   
+44 (0) 845 057 7887
Mobile
:   +44 (0) 7931 365796
Skype:   tonvoon     Email:   [email protected]

www.opsera.com
This e-mail is confidential, intended only for the named recipient(s) above and may contain information that is privileged and confidential. If you receive this message in error, or are not the named recipient(s), please notify the sender at the phone number above, do not copy this message, do not disclose its contents to anyone, and delete this e-mail message from your computer. Although Opsera routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Opsera makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. Opsera Limited is registered in the UK under Company Number 5396532. Our registered office is Gorse View, Horsell Rise, Woking, Surrey, GU21 4RB.

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to