PASSIVE CHECK DO NOT WORK

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
megahelix
Posts: 2
Joined: Wed Aug 01, 2012 4:30 am

PASSIVE CHECK DO NOT WORK

Post by megahelix »

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...
megahelix
Posts: 2
Joined: Wed Aug 01, 2012 4:30 am

Re: PASSIVE CHECK DO NOT WORK

Post by megahelix »

Solved. Problem was due tu retention file - I deleted it and restarted Nagios.
Now Passive checks work fine
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: PASSIVE CHECK DO NOT WORK

Post by slansing »

Glad you got this resolved. Thanks for the information on how you corrected the issue.
Locked