Where are Acknowledgements/Comments Stored?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Where are Acknowledgements/Comments Stored?

Post by optionstechnology »

Where does nagios store the list of acknowledgements/comments?

Is it only in the database or is there a flat file?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Where are Acknowledgements/Comments Stored?

Post by scottwilkerson »

They are in
/usr/local/nagios/var/status.dat
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Where are Acknowledgements/Comments Stored?

Post by optionstechnology »

Thanks!

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?

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Where are Acknowledgements/Comments Stored?

Post by optionstechnology »

Thanks,

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?

Post by scottwilkerson »

Great Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked