acknowledgement/notification vanishes after service restart

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.
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

acknowledgement/notification vanishes after service restart

Post by ericssonvietnam »

I have done all the configuration in remotehost.cfg and declared the same in nagios.cfg
Below is the sample configuration if have acknowledge/notification some of the host problems but the acknowledgement disappears after the service restart.

define service{
use generic-service
hostgroup_name Bharti_SOUTH
service_description Service ping
check_command check_ping!3000.0,80%!5000.0,100%
max_check_attempts 5
check_interval 5
retry_interval 5
check_period 24x7
notification_interval 5
notification_period 24x7
retain_nonstatus_information 1
notification_options w,c,r
contact_groups admins
}

Secondly i want to know that every time i add a new node in remotehost.cfg i have to restart the nagios service to make it node visible on front end.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: acknowledgement/notification vanishes after service rest

Post by avandemore »

Did you set the persist on the acknowledgement?
http://old.nagios.org/developerinfo/ext ... mand_id=40
Previous Nagios employee
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: acknowledgement/notification vanishes after service rest

Post by ericssonvietnam »

avandemore wrote:Did you set the persist on the acknowledgement?
http://old.nagios.org/developerinfo/ext ... mand_id=40

Attached are the screenshot for the steps i followed :

let me know if i need to add something in configuration file
Attachments
step 3 : After service restart
step 3 : After service restart
step 2 : after acknowlegment
step 2 : after acknowlegment
step 1 acknowledged
step 1 acknowledged
1.PNG (7 KiB) Viewed 2822 times
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: acknowledgement/notification vanishes after service rest

Post by avandemore »

Please attach the files status.dat and nagios.cfg.
Previous Nagios employee
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: acknowledgement/notification vanishes after service rest

Post by ericssonvietnam »

avandemore wrote:Please attach the files status.dat and nagios.cfg.
PFA required files
Attachments
status.txt
status.data
(3.93 MiB) Downloaded 152 times
nagios.cfg
nagios configuration
(44.03 KiB) Downloaded 144 times
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: acknowledgement/notification vanishes after service rest

Post by avandemore »

You have this defined in your nagios.cfg(which is not the default):

Code: Select all

retain_state_information=0
You can find the meaning of it here:
https://assets.nagios.com/downloads/nag ... gmain.html
Previous Nagios employee
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: acknowledgement/notification vanishes after service rest

Post by ericssonvietnam »

avandemore wrote:You have this defined in your nagios.cfg(which is not the default):

Code: Select all

retain_state_information=0
You can find the meaning of it here:
https://assets.nagios.com/downloads/nag ... gmain.html

Its already there can you check.

[root@localhost var]# grep -i retain_state_information=0 ../etc/nagios.cfg
retain_state_information=0
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: acknowledgement/notification vanishes after service rest

Post by ericssonvietnam »

ericssonvietnam wrote:
avandemore wrote:You have this defined in your nagios.cfg(which is not the default):

Code: Select all

retain_state_information=0
You can find the meaning of it here:
https://assets.nagios.com/downloads/nag ... gmain.html

Its already there can you check.

[root@localhost var]# grep -i retain_state_information=0 ../etc/nagios.cfg
retain_state_information=0
problem still persist after changing as below

[root@localhost var]# grep -i retain_state_information ../etc/nagios.cfg
retain_state_information=1
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: acknowledgement/notification vanishes after service rest

Post by avandemore »

I don't under your question. Your complaint seems to be that state isn't retained after a restart, but you have explicitly defined a configuration to not retain the state. Can you explain your issue?
Previous Nagios employee
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: acknowledgement/notification vanishes after service rest

Post by dwhitfield »

Did you restart nagios after making the config change?
Locked