I am using "check_procs" command to check for "crond" service
The check command was working very good for one service but once i added two additional services to be checked "mongod" & "node" i found problems
The problem is that in nagios web panel i found that "crond" service check have "mongod" check instead of "crond" & also "node" check shows checking another service
There are confilicting in check commands using "check_procs" command
Also if i stopped "crond" service i didnt found any notification about that "crond" service is down
Here are my configurations
Code: Select all
# nrpe.cfg
command[check_procs]=/usr/local/nagios/libexec/check_procs -C mongod -c 1:100
command[check_procs]=/usr/local/nagios/libexec/check_procs -C crond -c 1:100
command[check_procs]=/usr/local/nagios/libexec/check_procs -C node -s '/path/to/server.js'
# services check
define service{
host_name host1,host2,host3
service_description Crond Monitoring
check_command check_nrpe!check_procs
check_interval 3
check_period 24x7
retry_interval 3
max_check_attempts 3
notification_interval 30
notification_period 24x7
notification_options w,c,u,r
contact_groups admins
}
define service{
host_name host1,host2,host3
service_description MongoDB Monitoring
check_command check_nrpe!check_procs
check_interval 3
check_period 24x7
retry_interval 3
max_check_attempts 3
notification_interval 30
notification_period 24x7
notification_options w,c,u,r
contact_groups admins
}
define service{
host_name host1,host2,host3
service_description NodeJS Monitoring
check_command check_nrpe!check_procs
check_interval 3
check_period 24x7
retry_interval 3
max_check_attempts 3
notification_interval 30
notification_period 24x7
notification_options w,c,u,r
contact_groups admins
}
# commands
define command{
command_name check_local_procs
command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
}
define command{
command_name check_multiple_procs
command_line $USER1$/check_multiprocs -w $ARG1$ -c $ARG2$ -s $ARG3$
}
What is the problem ? is it with my configuration ?? i spend more than 3 days in this issue !!
Any help will be appreciated
Thanks in advance