We're seeing similar issues with arguments containing quotes as well. I believe it's related to the Nagios behavior interpreting backslash characters.
See https://secure.opsera.com/jira/browse/OPS-385 and https://secure.opsera.com/jira/browse/OPS-366 Mike Mike Dorman Lead Systems Engineer Latisys-Denver, LLC (303) 268-1504 direct [email protected] www.latisys.com > From: Jon Schulz <[email protected]> > Reply-To: Opsview Users <[email protected]> > Date: Mon, 28 Dec 2009 17:02:47 +0000 > To: "[email protected]" <[email protected]> > Subject: [opsview-users] quotes around nagios variables > > 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 _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
