We've made a own check command in the /usr/local/nagios/libexec/ library. The command is specified in the command.cfg, and the hostgroup in remotehost.cfg.
We have a temperature sensor in our serverroom, en we would like to see the degrees back in Nagios.
In the check_temp command we capture the temp from a simple website, and put it in variable $temp. This variable $temp comes back in the status message we've configured, but Nagios displays the message without the variable $temp.
Is this a know problem in Nagios Core 3.2.0?
This is check_temp code:
The message shown under status information in Nagios is : OK: Current temp: gr. Celcius. The temp is ok.
So the variable $temp is not shown.
If we run the check_temp in command line the output is: OK: Current temp: 20 gr. Celcius. The temp is ok.
Could anyone please help