Acknowledgements missing
Acknowledgements missing
Hi Team,
To day we had to repair mysqld and restart nagios because we dont see any hosts and services in Nagios XI Gui.
We had done this many times but we never lost acknowledgements.
But today we had lost all acknowledgements. Is ther any way to get back the acknowledgements?
Regards,
Madhu
To day we had to repair mysqld and restart nagios because we dont see any hosts and services in Nagios XI Gui.
We had done this many times but we never lost acknowledgements.
But today we had lost all acknowledgements. Is ther any way to get back the acknowledgements?
Regards,
Madhu
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Acknowledgements missing
Acknowledgements aren't stored in the DB but in the status.dat and retention.dat file.
Did someone change any settings in the nagios.cfg that would have turned off
or any of the
settings?
http://nagios.sourceforge.net/docs/3_0/ ... nformation
Did someone change any settings in the nagios.cfg that would have turned off
Code: Select all
retain_state_informationCode: Select all
retain_*_attribute_maskhttp://nagios.sourceforge.net/docs/3_0/ ... nformation
Re: Acknowledgements missing
We didnt change anything in nagios.cfg file. Below is the out put.
/usr/local/nagios/etc# cat nagios.cfg | grep -i retain
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
retained_host_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_service_attribute_mask=0
retain_state_information=1
use_retained_program_state=1
use_retained_scheduling_info=0
What could be the problem ?
/usr/local/nagios/etc# cat nagios.cfg | grep -i retain
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
retained_host_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_service_attribute_mask=0
retain_state_information=1
use_retained_program_state=1
use_retained_scheduling_info=0
What could be the problem ?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Acknowledgements missing
Could you post the output of
Does the file listed in state_retention_file exist, and if so what are the permissions?
Do you happen to have a RAM DISK setup on this server?
Code: Select all
cat /usr/local/nagios/etc/nagios.cfg|grep retentionDo you happen to have a RAM DISK setup on this server?
Re: Acknowledgements missing
/usr/local/nagios/var/archives# cat /usr/local/nagios/etc/nagios.cfg|grep retention
retention_update_interval=60
state_retention_file=/usr/local/nagios/var/retention.dat
/usr/local/nagios/var/archives# ls -ld /usr/local/nagios/var/retention.dat
-rw------- 1 nagios nagios 1069164 Mar 31 14:06 /usr/local/nagios/var/retention.dat
We have not ran any RAM DISK program sometimes we will clear cache using below command..
echo 3 > /proc/sys/vm/drop_caches
will this command cause any trouble?
retention_update_interval=60
state_retention_file=/usr/local/nagios/var/retention.dat
/usr/local/nagios/var/archives# ls -ld /usr/local/nagios/var/retention.dat
-rw------- 1 nagios nagios 1069164 Mar 31 14:06 /usr/local/nagios/var/retention.dat
We have not ran any RAM DISK program sometimes we will clear cache using below command..
echo 3 > /proc/sys/vm/drop_caches
will this command cause any trouble?
Re: Acknowledgements missing
For the most part, dropping the cache should have little effect. In fact most of the time, it just hurts performance. Just out of curiosity, is the following set on any objects?
http://tracker.nagios.org/view.php?id=417
Code: Select all
retain_nonstatus_information 0Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Acknowledgements missing
we have retain_nonstatus_information defined in the following templates only..
/usr/local/nagios/etc# grep -i retain_nonstatus_information *
hosttemplates.cfg: retain_nonstatus_information 1
hosttemplates.cfg: retain_nonstatus_information 1
servicetemplates.cfg: retain_nonstatus_information 1
servicetemplates.cfg: retain_nonstatus_information 1
servicetemplates.cfg: retain_nonstatus_information 1
/usr/local/nagios/etc# grep -i retain_nonstatus_information *
hosttemplates.cfg: retain_nonstatus_information 1
hosttemplates.cfg: retain_nonstatus_information 1
servicetemplates.cfg: retain_nonstatus_information 1
servicetemplates.cfg: retain_nonstatus_information 1
servicetemplates.cfg: retain_nonstatus_information 1
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Acknowledgements missing
OK, that should be fine, that it is only defined there. When the acknowledgments disappeared, was the system rebooted, nagios service restarted, an apply config performed, or anything of that nature? Also how many nagios processes do you have running?
Code: Select all
ps -ef | grep bin/nagNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Acknowledgements missing
After doing mysql repair we resarted nagios service and the acknowledgements disappeared.. and I do see that there are lot of nagios processes running..
i used killall nagios and restarted the nagios service.. we have over 14 acknowledgements and all are gone.. ( apply config not performed )
i used killall nagios and restarted the nagios service.. we have over 14 acknowledgements and all are gone.. ( apply config not performed )
Re: Acknowledgements missing
If you stop the nagios process, does the retention.dat file persist?
Code: Select all
service nagios stop
ls -la /usr/local/nagios/var/retention.dat
service nagios startFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.