Page 1 of 1

Need to pull report of warning and critical alerts

Posted: Thu Jan 12, 2017 10:50 pm
by Uday Kumar
Hello Team,

I need to pull report of all critical and warning alerts staying from last 24 hours in console .
can you please help me.

Re: Need to pull report of warning and critical alerts

Posted: Fri Jan 13, 2017 11:31 am
by mcapra
You could do an alerts report from the GUI:
2017_01_13_10_29_36_Nagios_Core_on_192.168.67.1.png
Otherwise if this 100% needs to be done through the CLI, you'd probably want to grep the Nagios log file for your desired date and match something like (ALERT).*CRITICAL;HARD.* to get all HARD states for checks that returned CRITICAL.