Custom monitoring using Nagios
Posted: Tue Oct 06, 2020 8:58 am
Hi everyone,
We have created custom monitor and it will take host name / IP address as argument and while running manually it is working fine but when configuring as service, it is throwing error and Nagios is not getting started. PFB details.
command definition :
define command {
command_name check_proc_count
command_line /usr/local/nagios/libexec/check_proc_count_nt $ARG1$
}
service definition :
define service {
use generic-service
host_name testhost
service_description testing
check_command check_proc_count testhost
}
We have created custom monitor and it will take host name / IP address as argument and while running manually it is working fine but when configuring as service, it is throwing error and Nagios is not getting started. PFB details.
command definition :
define command {
command_name check_proc_count
command_line /usr/local/nagios/libexec/check_proc_count_nt $ARG1$
}
service definition :
define service {
use generic-service
host_name testhost
service_description testing
check_command check_proc_count testhost
}