Event Acknowledgement in Nagios Core

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
Akshay18
Posts: 6
Joined: Wed Oct 10, 2018 1:14 am

Event Acknowledgement in Nagios Core

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Event Acknowledgement in Nagios Core

Post by scottwilkerson »

Can you show the output of the following

Code: Select all

grep ret /usr/local/nagios/etc/nagios.cfg
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Akshay18
Posts: 6
Joined: Wed Oct 10, 2018 1:14 am

Re: Event Acknowledgement in Nagios Core

Post 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)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Event Acknowledgement in Nagios Core

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Akshay18
Posts: 6
Joined: Wed Oct 10, 2018 1:14 am

Re: Event Acknowledgement in Nagios Core

Post by Akshay18 »

Hi,

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

Thanks and Regards,
Akshay Kaushik
Attachments
NagiosEventAckowledge.PNG
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Event Acknowledgement in Nagios Core

Post by scottwilkerson »

I don't understand, you will not see the ability to acknowledge a host if it is in an UP state.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Akshay18
Posts: 6
Joined: Wed Oct 10, 2018 1:14 am

Re: Event Acknowledgement in Nagios Core

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Event Acknowledgement in Nagios Core

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Akshay18
Posts: 6
Joined: Wed Oct 10, 2018 1:14 am

Re: Event Acknowledgement in Nagios Core

Post by Akshay18 »

thanks. Got it..
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Event Acknowledgement in Nagios Core

Post by scottwilkerson »

Akshay18 wrote:thanks. Got it..
Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked