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
}
Custom monitoring using Nagios??
-
KimberlyLondon
- Posts: 1
- Joined: Thu Jan 28, 2021 5:33 am
Re: Custom monitoring using Nagios??
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$
}
define command {
command_name check_proc_count
command_line $USER1$/usr/local/nagios/libexec/check_proc_count_nt $ARG1$
}