Alert history for longer than a day or so

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rdubya
Posts: 40
Joined: Mon Apr 11, 2016 8:38 am

Alert history for longer than a day or so

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Alert history for longer than a day or so

Post 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
Former Nagios employee
https://www.mcapra.com/
rdubya
Posts: 40
Joined: Mon Apr 11, 2016 8:38 am

Re: Alert history for longer than a day or so

Post 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?
rdubya
Posts: 40
Joined: Mon Apr 11, 2016 8:38 am

Re: Alert history for longer than a day or so

Post 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.
bolson

Re: Alert history for longer than a day or so

Post by bolson »

May we close this topic?
Locked