Hello all,
i'm looking for a simple way to get the actual alerts list from the linux command line, is there a way to get it ?
Thanks
Florent
Get list of actual alerts from command line ?
Re: Get list of actual alerts from command line ?
You could grep the nagios.log file for "ALERT", "WARNING" or "CRITICAL"
Code: Select all
grep ALERT /usr/local/nagios/var/nagios.logFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Get list of actual alerts from command line ?
problem is that this log file seems to contain too many alerts...not only actual ones, isn't it ?
Florent
Florent
Re: Get list of actual alerts from command line ?
Well, these will include soft and hard alerts for warnings. If you just want the criticals:
Code: Select all
grep CRITICAL /usr/local/nagios/var/nagios.logFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.