Page 1 of 1

Custom monitoring using Nagios??

Posted: Thu Jan 28, 2021 5:38 am
by KimberlyLondon
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
}

Re: Custom monitoring using Nagios??

Posted: Thu Jan 28, 2021 9:57 am
by mjkatona
try adding $USER$ like below, restart nagios and see if that helps..

define command {
command_name check_proc_count
command_line $USER1$/usr/local/nagios/libexec/check_proc_count_nt $ARG1$
}