Where does nagios store the list of acknowledgements/comments?
Is it only in the database or is there a flat file?
Where are Acknowledgements/Comments Stored?
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Where are Acknowledgements/Comments Stored?
They are in
/usr/local/nagios/var/status.dat
/usr/local/nagios/var/status.dat
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Where are Acknowledgements/Comments Stored?
Thanks!
One more question - is it possible to edit this file? Every time I try it reverts back to the original
One more question - is it possible to edit this file? Every time I try it reverts back to the original
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Where are Acknowledgements/Comments Stored?
No, there are 2 options.optionstechnology wrote:One more question - is it possible to edit this file? Every time I try it reverts back to the original
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
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Where are Acknowledgements/Comments Stored?
Thanks,
That has worked, you can close this
That has worked, you can close this
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Where are Acknowledgements/Comments Stored?
Great Locking