PASSIVE CHECK DO NOT WORK
Posted: Wed Aug 01, 2012 6:43 am
Hello,
I have fully working Nagios Core 3.4.1 and want to use passive service checks too.
1. I have enabled passive checks in nagios.cfg:
log_passive_checks=1
accept_passive_service_checks=1
accept_passive_host_checks=1
2. Checked nagios.cmd workability using sample command from shell:
echo "['date+%s'] PROCESS_SERVICE_CHECK_RESULT;dz62-sw01;TRAP;2;test" >> /var/spool/nagios/rw/nagios.cmd
The corresponding message appeared in nagios.log : EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;dz62-sw01;TRAP;2;test
3. Service template looks like this:
define service {
name generic-service
register 0
max_check_attempts 3
check_interval 5
retry_interval 1
notification_interval 120
notification_options w,u,c,r,f,s
active_checks_enabled 1
passive_checks_enabled 1
notifications_enabled 1
check_freshness 1
freshness_threshold 86400
check_period 24x7
notification_period 24x7
contact_groups admins
}
4. When I try to perform "Submit passive check result for this service" from WEB GUI, nagios.log displays: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;dz62-sw01;hp-sw-cpu;0;TEST|
And nothing more...
Conclusion:
When I try to post PASSIVE check result from the WEB GUI or shell command - NAGIOS only accept it in log, but does not perform any actions for it...
Please help me...
I have fully working Nagios Core 3.4.1 and want to use passive service checks too.
1. I have enabled passive checks in nagios.cfg:
log_passive_checks=1
accept_passive_service_checks=1
accept_passive_host_checks=1
2. Checked nagios.cmd workability using sample command from shell:
echo "['date+%s'] PROCESS_SERVICE_CHECK_RESULT;dz62-sw01;TRAP;2;test" >> /var/spool/nagios/rw/nagios.cmd
The corresponding message appeared in nagios.log : EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;dz62-sw01;TRAP;2;test
3. Service template looks like this:
define service {
name generic-service
register 0
max_check_attempts 3
check_interval 5
retry_interval 1
notification_interval 120
notification_options w,u,c,r,f,s
active_checks_enabled 1
passive_checks_enabled 1
notifications_enabled 1
check_freshness 1
freshness_threshold 86400
check_period 24x7
notification_period 24x7
contact_groups admins
}
4. When I try to perform "Submit passive check result for this service" from WEB GUI, nagios.log displays: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;dz62-sw01;hp-sw-cpu;0;TEST|
And nothing more...
Conclusion:
When I try to post PASSIVE check result from the WEB GUI or shell command - NAGIOS only accept it in log, but does not perform any actions for it...
Please help me...