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.
Need to pull report of warning and critical alerts
-
Uday Kumar
- Posts: 32
- Joined: Wed May 11, 2016 11:59 pm
Re: Need to pull report of warning and critical alerts
You could do an alerts report from the GUI:
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.
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.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/