Page 1 of 1

Event Acknowledgement in Nagios Core

Posted: Wed Oct 10, 2018 7:09 am
by Akshay18
Hi,

I have to configure event acknowledgement in Nagios Core but it doesn't work and i have go through below link:-

https://support.nagios.com/forum/viewto ... 18&t=44056 but still now working?? Can anyone help me to solve this.

Thanks and Regards,
Akshay Kaushik

Re: Event Acknowledgement in Nagios Core

Posted: Wed Oct 10, 2018 7:12 am
by scottwilkerson
Can you show the output of the following

Code: Select all

grep ret /usr/local/nagios/etc/nagios.cfg

Re: Event Acknowledgement in Nagios Core

Posted: Wed Oct 10, 2018 7:27 am
by Akshay18
Sure. Below is the output:-


[root@in2noisrnms4 objects]# grep ret /usr/local/nagios/etc/nagios.cfg
# If you don't want service check retries to be logged, set this value
# to 0. If retries should be logged, set the value to 1.
log_service_retries=1
# If you don't want host check retries to be logged, set this value to
# 0. If retries should be logged, set the value to 1.
log_host_retries=1
# returning control back to Nagios so it can perform other
retain_state_information=0
# This file is used only if the retain_state_information
state_retention_file=/usr/local/nagios/var/retention.dat
# will automatically save retention data during normal operation.
# If you set this value to 0, Nagios will not save retention
# data at regular interval, but it will still save retention
# state retention, this option has no effect.
retention_update_interval=60
# retention file. If you want to use retained program status
use_retained_program_state=1
# This setting determines whether or not Nagios will retain
# based on the values saved in the retention file. If you
# If you want to use retained scheduling info, set this
use_retained_scheduling_info=1
# service attributes that should *not* be retained by Nagios during
# of flap detection and event handlers for hosts to be retained, you
# This mask determines what host attributes are not retained
retained_host_attribute_mask=0
# This mask determines what service attributes are not retained
retained_service_attribute_mask=0
# These two masks determine what process attributes are not retained.
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
# These two masks determine what contact attributes are not retained.
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
# data returned from service and host checks. If this option is
# characters (\t for tab, \r for carriage return, \n for newline)

Re: Event Acknowledgement in Nagios Core

Posted: Wed Oct 10, 2018 7:53 am
by scottwilkerson
you need to update the file and change this

Code: Select all

retain_state_information=0
to this

Code: Select all

retain_state_information=1
then restart nagios

Re: Event Acknowledgement in Nagios Core

Posted: Thu Oct 11, 2018 3:13 am
by Akshay18
Hi,

I have do this but not success. Please find the attached scrrenshot.

Thanks and Regards,
Akshay Kaushik

Re: Event Acknowledgement in Nagios Core

Posted: Thu Oct 11, 2018 7:05 am
by scottwilkerson
I don't understand, you will not see the ability to acknowledge a host if it is in an UP state.

Re: Event Acknowledgement in Nagios Core

Posted: Tue Oct 16, 2018 1:44 am
by Akshay18
Hi,

Issue is solved now when host is down problem is acknowledged. Can you tell me where event acknowledge notification is stored.


Thanks and Regards,
Akshay Kaushik

Re: Event Acknowledgement in Nagios Core

Posted: Tue Oct 16, 2018 7:19 am
by scottwilkerson
Akshay18 wrote:Hi,

Issue is solved now when host is down problem is acknowledged. Can you tell me where event acknowledge notification is stored.


Thanks and Regards,
Akshay Kaushik
The status.dat file entry for the host/service.

Re: Event Acknowledgement in Nagios Core

Posted: Thu Oct 18, 2018 12:11 pm
by Akshay18
thanks. Got it..

Re: Event Acknowledgement in Nagios Core

Posted: Thu Oct 18, 2018 2:53 pm
by scottwilkerson
Akshay18 wrote:thanks. Got it..
Locking thread