R: [hobbit] RE : [hobbit] bb2 problem with pageset ?
Same here now that I'm checking. The bb2.html page for pageset is correct but the events in the bottom is reporting all events and not only those of the pageset.
Francesco
-----Messaggio originale----- Da: Beau Olivier [mailto:olivier.beau at telecomitalia.fr] Inviato: giovedì 20 luglio 2006 12.54 A: hobbit at hswn.dk Oggetto: [hobbit] RE : [hobbit] bb2 problem with pageset ?
Has that changed ? it wasnt like this before (4.1.2p2)
let me re-explain, i have a global bb2.html and unix pageset and a nt pageset that i use for bb2.html only. on my unix pageset bb2.html page, i have alerts of unix servers and eventlog of unix AND nt servers
i pretty confused..
olivier
-------- Message d'origine-------- De: Henrik Stoerner [mailto:henrik at hswn.dk] Date: jeu. 20/07/2006 12:41 À: hobbit at hswn.dk Objet : Re: [hobbit] bb2 problem with pageset ?
On Thu, Jul 20, 2006 at 12:18:57PM +0200, Beau Olivier wrote:
i'm running RC, and have noticed on the bb2 page of my UNIX pageset, that i have history event of all, not just of my unix servers...
Is this a bug ?
No, the bb2 page shows all hosts defined in Hobbit that are non-green, and the eventlog does the same.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Hi,
On the server side, in hobbit-clients.cfg, i ve this:
DEFAULT UP 1h LOAD 5.0 10.0 DISK * 90 95 MEMPHYS 100 101 MEMSWAP 60 80 MEMACT 95 97 PROC %(/usr/sbin/cron|crond).* 1 5
The problem is that some hosts have more than 5 cron running.
So i declared before DEFAULT section, a specific host to override the global PROC values:
For instance, the host is called "mrtg-wat":
HOST=mrtg-wat PROC %(/usr/sbin/cron|crond).* 1 20
But it doesn't work, Hobbit takes the 2 values as 2 differents check.
%(/usr/sbin/cron|crond).* (found 26, req. between 1 and 20) %(/usr/sbin/cron|crond).* (found 26, req. between 1 and 5)
Is there a way to change this behaviour in order to override the DEFAULT value for PROC ?
Hobbit version: hobbit-4.1.2p1
Thanks Nicolas
On Thu, Jul 20, 2006 at 04:02:14PM +0200, Nicolas wrote:
DEFAULT UP 1h LOAD 5.0 10.0 DISK * 90 95 MEMPHYS 100 101 MEMSWAP 60 80 MEMACT 95 97 PROC %(/usr/sbin/cron|crond).* 1 5
Putting PROC entries in the DEFAULT section is generally a bad idea, unless you never - ever - want to have exceptions from the rule.
I'd suggest removing it from the default section, and using this instead:
HOST=* PROC %(/usr/sbin/cron|crond).* 1 5 EXHOST=mrtg-wat PROC %(/usr/sbin/cron|crond).* 1 HOST=mrtg-wat
or some similar configuration.
Hobbit version: hobbit-4.1.2p1
Ouch, there's some problems with the config file parsing in the 4.1.2 releases. I'm not entirely sure the above will work in 4.1.2p1; you may have to list the hosts explicitly for this. It's fixed in the 4.2 release candidate currently being tested.
Regards, Henrik
HI,
Thanks for answear.
Indeed, it doesn't seem to work correctly with this hobbit version:
HOST=* PROC %(/usr/sbin/cron|crond).* 1 5 EXHOST=mrtg-wat,test-host PROC %(/usr/sbin/cron|crond).* 1 30 HOST=mrtg-wat PROC %(/usr/sbin/cron|crond).* 1 6 HOST=test-host
The results for test-host on PROC was:
&unknown %(/usr/sbin/cron|crond).* (found 6, req. between 1 and 5) green %(/usr/sbin/cron|crond).* (found 6, req. between 1 and 30) green %(/usr/sbin/cron|crond).* (found 6, req. between 1 and 6)
Other servers which are'nt in EXHOST have this behaviour:
green %(/usr/sbin/cron|crond).* (found 1, req. between 1 and 5) green %(/usr/sbin/cron|crond).* (found 1, req. between 1 and 30) green %(/usr/sbin/cron|crond).* (found 1, req. between 1 and 6)
As you suggested, i changed conf like this (list the hosts explicitly) :
HOST=* PROC %(/usr/sbin/cron|crond).* 1 5 EXHOST=mrtg-wat,gie-s2if-front2
HOST=test-host PROC %(/usr/sbin/cron|crond).* 1 6
HOST=mrtg-wat PROC %(/usr/sbin/cron|crond).* 1 30
it seems to work but there is a strange behaviour for the global rule and EXHOST:
test-host PROC show this:
&unknown %(/usr/sbin/cron|crond).* (found 6, req. between 1 and 5) green %(/usr/sbin/cron|crond).* (found 6, req. between 1 and 6)
Others hosts are OK (only the global PROC).
Do you know what the "unknown" state means ? is it obstructing ?
Thanks Nicolas
Le Jeu 20 juillet 2006 23:06, Henrik Stoerner a écrit :
On Thu, Jul 20, 2006 at 04:02:14PM +0200, Nicolas wrote:
DEFAULT UP 1h LOAD 5.0 10.0 DISK * 90 95 MEMPHYS 100 101 MEMSWAP 60 80 MEMACT 95 97 PROC %(/usr/sbin/cron|crond).* 1 5
Putting PROC entries in the DEFAULT section is generally a bad idea, unless you never - ever - want to have exceptions from the rule.
I'd suggest removing it from the default section, and using this instead:
HOST=* PROC %(/usr/sbin/cron|crond).* 1 5 EXHOST=mrtg-wat PROC %(/usr/sbin/cron|crond).* 1 HOST=mrtg-wat
or some similar configuration.
Hobbit version: hobbit-4.1.2p1
Ouch, there's some problems with the config file parsing in the 4.1.2 releases. I'm not entirely sure the above will work in 4.1.2p1; you may have to list the hosts explicitly for this. It's fixed in the 4.2 release candidate currently being tested.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (3)
-
fduranti@q8.it
-
henrik@hswn.dk
-
nico@crysto.org