Filter alerts?

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
kane3030
Posts: 10
Joined: Tue Jun 25, 2013 1:47 pm

Filter alerts?

Post by kane3030 »

Right now I have many alerts that are coming up with broad definitions. Is there a way to filter out some of the alerts that are coming up, while being able to keep the broad definition of the service?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Filter alerts?

Post by slansing »

I'm not sure what you mean by this, the notifications nagios sends are based on the warning and critical thresholds you define, notifications also "by default" will include the service details to aid in explaining what went wrong, or what to fix. Are you trying to remove the status details from being send as well?
kane3030
Posts: 10
Joined: Tue Jun 25, 2013 1:47 pm

Re: Filter alerts?

Post by kane3030 »

Thank's for getting back to me. I'm looking to filter out alerts with certain keywords.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Filter alerts?

Post by abrist »

Filter the alerts from where?
Notifications
Logs
etc ?
Former 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.
kane3030
Posts: 10
Joined: Tue Jun 25, 2013 1:47 pm

Re: Filter alerts?

Post by kane3030 »

Sorry for not being specific - I am picking up the information for notifications from logs. I would like to add if (this issue) then (ignore) or something to that effect.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Filter alerts?

Post by abrist »

You could any one of the myriad of log checking plugins:
http://exchange.nagios.org/index.php?op ... =check_log
But if you are looking for extended logic, you may want to look into creating some event handler scripts (not for the weak of heart/mind).
Former 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.
Locked