Page 1 of 1
Where are Acknowledgements/Comments Stored?
Posted: Thu Apr 05, 2018 4:15 am
by optionstechnology
Where does nagios store the list of acknowledgements/comments?
Is it only in the database or is there a flat file?
Re: Where are Acknowledgements/Comments Stored?
Posted: Thu Apr 05, 2018 9:55 am
by scottwilkerson
They are in
/usr/local/nagios/var/status.dat
Re: Where are Acknowledgements/Comments Stored?
Posted: Fri May 04, 2018 7:22 am
by optionstechnology
Thanks!
One more question - is it possible to edit this file? Every time I try it reverts back to the original
Re: Where are Acknowledgements/Comments Stored?
Posted: Fri May 04, 2018 10:29 am
by scottwilkerson
optionstechnology wrote:One more question - is it possible to edit this file? Every time I try it reverts back to the original
No, there are 2 options.
1st
Stop nagios from running
edit the retention.dat file after nagios is stopped
start nagios.
2nd
do what you want to do using command to the command pipe, a list can be found here including removing comments etc.
https://old.nagios.org/developerinfo/ex ... ndlist.php
One thing to note, removing a comment, and removing the ACKNOWLEDGEMENT are 2 separate things
Re: Where are Acknowledgements/Comments Stored?
Posted: Tue May 29, 2018 10:46 am
by optionstechnology
Thanks,
That has worked, you can close this
Re: Where are Acknowledgements/Comments Stored?
Posted: Tue May 29, 2018 2:27 pm
by scottwilkerson
Great Locking