c - Nagios status information -


i working on project has computer communicating arduino board reads sensor output , test in c plugin ( reading serial port after writing on it) nagios. problem status information null. plugin in lib"/usr/local/nagios/libexec" in commands.cfg added following:

define command{     command_name    arduino_temp_sensor     command_line    /usr/local/nagios/libexec/essai.c     } 

and in localhost.cfg added following:

define service{         use                             generic-service                  host_name                       localhost         service_description             temp         check_command                   arduino_temp_sensor         } 

i'm confused if output of printf should appear in status information or not. in advance.

it works when removed .c following:

define command{      command_name    arduino_temp_sensor      command_line    /usr/local/nagios/libexec/essai      } 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -