Non existent macros are not replaced
Daniel Wittenberg
daniel.wittenberg.r0ko at statefarm.com
Thu Mar 3 17:51:08 CET 2011
I don't have time to review the code right now but I've been bitten by this before and think it's a great feature to add.
Dan
-----Original Message-----
From: Matthieu Kermagoret [mailto:mkermagoret at merethis.com]
Sent: Thursday, March 03, 2011 10:40 AM
To: Nagios Developers List
Subject: [Nagios-devel] Non existent macros are not replaced
Hi list,
When using a non-existent macros in a command (like for example
$SERVICEDESC$ in a host notification command), such macro is not
replaced. It is instead left as-is on the command line.
Such construct is interpreted by the shell as a variable (usually
empty) followed by a dollar sign which (usually) expands to a single
dollar and lead users to believe that Nagios replace non-existent
macros with a single dollar (see ticket #34
http://tracker.nagios.org/view.php?id=34).
I believe this behavior is not intuitive and should therefore be
modified to simply remove non-existent macros, as the attached patch
does.
What do you think about it ?
Best regards,
--
Matthieu KERMAGORET | Développeur
mkermagoret at merethis.com
MERETHIS est éditeur du logiciel Centreon.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list