Custom monitoring using Nagios??

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
KimberlyLondon
Posts: 1
Joined: Thu Jan 28, 2021 5:33 am

Custom monitoring using Nagios??

Post 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
}
mjkatona
Posts: 3
Joined: Fri Jan 08, 2021 9:14 pm

Re: Custom monitoring using Nagios??

Post 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$
}
Locked