Page 1 of 1

Nagios status information

Posted: Mon May 09, 2022 10:56 pm
by StanGilbertlandria
Hi

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 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:

define command{
command_name arduino_temp_sensor
command_line /usr/local/nagios/libexec/essai.c
}
And in the localhost.cfg I added the following:

define service{
use generic-service
host_name localhost
service_description Temp
check_command arduino_temp_sensor
}
I'm confused if the output of the printf should appear in the status information or not omegle shagle. Thanks in advance.