Nagios status information
Posted: Fri Jul 19, 2013 2:54 am
I am working on a project that has my computer communicating with an arduino board that reads the sensor output and test it in a C plugin ( http://stackoverflow.com/questions/1767 ... on-it?lq=1) for nagios. My problem is that the status information is always null. My plugin is in the lib"/usr/local/nagios/libexec" In commands.cfg I added the following:
And in the localhost.cfg I added the following:
I'm confused if the output of the printf should appear in the status information or not. Thanks in advance:D.
Code: Select all
define command{
command_name arduino_temp_sensor
command_line /usr/local/nagios/libexec/essai.c
}Code: Select all
define service{
use generic-service
host_name localhost
service_description Temp
check_command arduino_temp_sensor
}