On 18 July 2011 14:37, Frank Van Damme <frank.vanda...@gmail.com> wrote: > I was hoping for some generic escaping rules :)
If only! I usually end up using a generous portion of trial-and-error to find something that works. Sometimes you have to escape the escape characters that will be used further down the chain. The most egregious example of multiple escapgin in my configs at the moment looks like this: check_nrpe!-c CheckFile -a MinWarn=0 filter-written=\\<8d file=D:\\\\directory\\\\subdirectory\\\\\\*.\\* In another example, I set the $USER10$ macro in resource.cfg to contain a single semi-colon like so: # Set this macro to contain a semi-colon so we can use it as a command separator. $USER10$=; And that's just so that it can then be used in an action_url directive pointing to a DRRAW graph like so: action_url http://nagios/drraw-pnp/index.cgi?Mode=view;$USER10$Graph=1281540323.16309 Of course the ; also translates to a semi-colon. I can't remember why I have both in there, but it works! ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null