Page 1 of 2

Acknowledgements missing

Posted: Wed Mar 19, 2014 12:58 am
by madhudeva
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

Re: Acknowledgements missing

Posted: Wed Mar 19, 2014 8:23 am
by scottwilkerson
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

Code: Select all

retain_state_information
or any of the

Code: Select all

retain_*_attribute_mask
settings?

http://nagios.sourceforge.net/docs/3_0/ ... nformation

Re: Acknowledgements missing

Posted: Wed Mar 19, 2014 10:38 pm
by madhudeva
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 ? :?

Re: Acknowledgements missing

Posted: Thu Mar 20, 2014 10:08 am
by scottwilkerson
Could you post the output of

Code: Select all

cat /usr/local/nagios/etc/nagios.cfg|grep retention
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?

Re: Acknowledgements missing

Posted: Mon Mar 31, 2014 9:58 pm
by madhudeva
/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?

Re: Acknowledgements missing

Posted: Tue Apr 01, 2014 4:14 pm
by abrist
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?

Code: Select all

retain_nonstatus_information 0
http://tracker.nagios.org/view.php?id=417

Re: Acknowledgements missing

Posted: Wed Apr 02, 2014 12:07 am
by madhudeva
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

Re: Acknowledgements missing

Posted: Wed Apr 02, 2014 4:52 pm
by sreinhardt
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/nag

Re: Acknowledgements missing

Posted: Thu Apr 03, 2014 12:09 am
by madhudeva
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 )

Re: Acknowledgements missing

Posted: Thu Apr 03, 2014 4:02 pm
by abrist
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 start