Xymon Mailing List Archive search

Enable/disable by class

list Galen Johnson
Fri, 7 Feb 2014 14:08:48 +0000
Message-Id: <user-93932db1e5da@xymon.invalid>

Oh my god...I didn't even see that.  Glad you caught it.  Unfortunately, that didn't fix it...grrr....

=G=

From: Jeremy Laidman <user-71895fb2e44c@xymon.invalid>
Sent: Thursday, February 6, 2014 11:36 PM
To: Galen Johnson
Cc: Galen Johnson; xymon at xymon.com
Subject: Re: [Xymon] Enable/disable by class

Galen

On 6 February 2014 04:49, Galen Johnson <user-fc632e705d24@xymon.invalid<mailto:user-fc632e705d24@xymon.invalid>> wrote:
Even with fresher eyes, I'm not seeing anything obvious...I'm fairly certain the issue is in the headfoot.c code...possibly in the fetch_board or wanted function.

I'm not a coder either - I just dabble.  But let's see what the patch looks like.

Ah, this might be the problem:

-               if (hostpattern || pagepattern || ippattern)
-                       sethostenv_filter(hostpattern, pagepattern, ippattern);
+               if (hostpattern || pagepattern || ippattern, classpattern)
+                       sethostenv_filter(hostpattern, pagepattern, ippattern, classpattern);

In the third line above, you have a comma instead of a double-pipe "||".

Everything else looks just fine.

Cheers
Jeremy