Acknowledgements missing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
madhudeva
Posts: 32
Joined: Thu Jun 20, 2013 1:08 am

Acknowledgements missing

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

Re: Acknowledgements missing

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
madhudeva
Posts: 32
Joined: Thu Jun 20, 2013 1:08 am

Re: Acknowledgements missing

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

Re: Acknowledgements missing

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
madhudeva
Posts: 32
Joined: Thu Jun 20, 2013 1:08 am

Re: Acknowledgements missing

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Acknowledgements missing

Post 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
Former 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.
madhudeva
Posts: 32
Joined: Thu Jun 20, 2013 1:08 am

Re: Acknowledgements missing

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Acknowledgements missing

Post 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
Nagios-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.
madhudeva
Posts: 32
Joined: Thu Jun 20, 2013 1:08 am

Re: Acknowledgements missing

Post 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 )
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Acknowledgements missing

Post 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
Former 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.
Locked