acknowledgement/notification vanishes after service restart
-
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
acknowledgement/notification vanishes after service restart
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.
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.
-
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: acknowledgement/notification vanishes after service rest
Did you set the persist on the acknowledgement?
http://old.nagios.org/developerinfo/ext ... mand_id=40
http://old.nagios.org/developerinfo/ext ... mand_id=40
Previous Nagios employee
-
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: acknowledgement/notification vanishes after service rest
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
-
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: acknowledgement/notification vanishes after service rest
Please attach the files status.dat and nagios.cfg.
Previous Nagios employee
-
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: acknowledgement/notification vanishes after service rest
PFA required filesavandemore wrote:Please attach the files status.dat and nagios.cfg.
- Attachments
-
- status.txt
- status.data
- (3.93 MiB) Downloaded 152 times
-
- nagios.cfg
- nagios configuration
- (44.03 KiB) Downloaded 144 times
-
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: acknowledgement/notification vanishes after service rest
You have this defined in your nagios.cfg(which is not the default):
You can find the meaning of it here:
https://assets.nagios.com/downloads/nag ... gmain.html
Code: Select all
retain_state_information=0
https://assets.nagios.com/downloads/nag ... gmain.html
Previous Nagios employee
-
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: acknowledgement/notification vanishes after service rest
avandemore wrote:You have this defined in your nagios.cfg(which is not the default):You can find the meaning of it here:Code: Select all
retain_state_information=0
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
-
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: acknowledgement/notification vanishes after service rest
problem still persist after changing as belowericssonvietnam wrote:avandemore wrote:You have this defined in your nagios.cfg(which is not the default):You can find the meaning of it here:Code: Select all
retain_state_information=0
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
[root@localhost var]# grep -i retain_state_information ../etc/nagios.cfg
retain_state_information=1
-
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: acknowledgement/notification vanishes after service rest
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
-
- 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
Did you restart nagios after making the config change?