I have just installed Nagios 3 and NagiosGrapher from the Ubuntu 10.04 LTS repository. So far everything is working except for the macros in the nagios grapher specific commands. The command definition is as follows:
Code: Select all
define command{
command_name ngraph-process-service-perfdata-pipe
command_line /usr/lib/nagiosgrapher/fifo_write /var/lib/nagiosgrapher/ngraph.pipe '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3
}
The above command is used for my service_perfdata_file_processing_command. It reads the performance data and sends it to a named pipe that nagiosgrapher uses.
Code: Select all
service_perfdata_file_processing_command=ngraph-process-service-perfdata-pipe
This command executes, but for some reason the macros are not being translated into the actual values by Nagios. I have not been able to find any reason for this to not work. I have verified that these macros are available for service performance data, I've completely retyped it multiple times, I've tried single quotes, double quotes, and unquoted (single quotes are how it comes from the repository).
If I put literal values in rather than the macros then it works and they get processed appropriately.
I'm all out of ideas here. Any suggestions?