Page 1 of 1

Alert history for longer than a day or so

Posted: Wed Aug 09, 2017 10:14 am
by rdubya
I'm looking at alert history for hosts and I would love to get a history for ALL hosts that goes further back than a day or so. Is there a way to do this? This is going to be used to leverage a hardware discussion today so I'd love to see something soon.
I'm running Nagios core 4.1.1 on a Centos 6.x host.
Thanks for any advice.

R

Re: Alert history for longer than a day or so

Posted: Wed Aug 09, 2017 10:27 am
by mcapra
Those reports are distilled from the nagios logs. You can switch which log file you are referencing to view older records. The log files are rotated every day, so you should be able to traverse days using the "latest archive" button:
2017_08_09_10_25_47_Nagios_Core_on_10.35.7.21.png

Re: Alert history for longer than a day or so

Posted: Wed Aug 09, 2017 10:43 am
by rdubya
Holy crap, what a fail on my part. Thank you very much.
Is there a way to dump this from the command line so I can play with it in Excel or something?

Re: Alert history for longer than a day or so

Posted: Wed Aug 09, 2017 10:49 am
by rdubya
Actually nevermind. I see that the log files are plain text and it should be fairly trivial (if not convenient, lol) to script something I can use. Thanks again for the coaching.

Re: Alert history for longer than a day or so

Posted: Wed Aug 09, 2017 11:40 am
by bolson
May we close this topic?