Fox-Alpha / nagioschecker

Automatically exported from code.google.com/p/nagioschecker
0 stars 0 forks source link

Can't use the Reverse Expression option for both Hosts and Services at the same time #210

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Go into Filtering options
2. Select Reverse Expression for both Hosts Matching Regular Expressions and 
Services Matching Regular Expressions. 

What is the expected output? What do you see instead?

The goal is to have Nagioschecker only make an audible alert when a certain 
word is in the name of a host (for a host), or, in the name of the description 
(for a service).

With both options checked, it only alerts out when there's the word n the name 
of a host (for a host) AND in the name of the description (for a service).

They work fine when they're checked alone (so, it will alert on Host Name 
expressions if just Hosts Matching... is checked, or it will alert on Service 
Descriptions when Services Matching... is checked), but if both are checked in 
Filtering settings, then it won't alert at all if ONLY a host or ONLY a service 
has the text in it.

What version of the product are you using (Nagios Checker and Nagios)? On what 
operating system?

Nagioschecker .16
Nagios XI 2014R2.0
Windows 7 w/ Firefox v 34.0

Original issue reported on code.google.com by dsup...@gmail.com on 5 Dec 2014 at 11:58

GoogleCodeExporter commented 9 years ago
Looking more into this, looks like if you have both the Hosts Matching... and 
Services Matching... checked (with the reverse expression options checked), 
then it won't alert out at all, if either one, the other, or both have the text 
string in the host name or service description.

Again, the goal is pretty simple - to just have an audible alert if there's a 
certain word in the host name for a host, or a certain word in the service 
description for a service. 

If I'm going about this the wrong way, let me know of a better way to do it. 

Thanks :)

Original comment by dsup...@gmail.com on 6 Dec 2014 at 12:11