Nagios Bug and Feature Tracker
Bug and Feature Tracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000034 [Nagios Core] Notifications minor always 2009-06-26 16:45 2012-09-17 23:30
Reporter support-team View Status public  
Assigned To ageric
Priority normal Resolution no change required  
Status closed   Product Version
Summary 0000034: Service macros in host notifications are replaced by a single dollar sign
Description If you include a service macro such as $SERVICENAME$ in a host notification, it becomes '$' in the output.

Expected behavior is that nothing would be printed in the output.
Additional Information
Tags No tags attached.
Nagios Version 3.0.6
OS
OS Version
Attached Files

- Relationships

-  Notes
(0000582)
ageric (reporter)
2012-09-17 23:30

Nagios ships the string as-is to the shell, which tries to expand the unresolved macro as a shell variable, and fails, causing it to substitute it with the empty string. Use single-quotes in your command definitions and you'll see the $SERVICENAME$ parameter in there somewhere.

- Issue History
Date Modified Username Field Change
2009-06-26 16:45 support-team New Issue
2009-06-26 16:45 support-team Nagios Version => 3.0.6
2012-09-17 23:28 ageric Status new => assigned
2012-09-17 23:28 ageric Assigned To => ageric
2012-09-17 23:30 ageric Note Added: 0000582
2012-09-17 23:30 ageric Status assigned => closed
2012-09-17 23:30 ageric Resolution open => no change required


Mantis 1.1.7[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker