Hi,
I still could not trigger any alert (yellow/red) for the msgs column :-( Config. for clients was made following the man pages for hobbit-clients.cfg and client-local.cfg.
-----hobbit-clients.cfg---- HOST=argos,eliot LOAD 8.0 16.0 LOG messages quota_ufs
-----client-local.cfg---- [sunos] log:/var/adm/messages:10240
On argos client (sunos),there are lots of entries with "quota_ufs" in /var/adm/messages but the msgs column stays green even if I start the client from scratch (erasing tmp files).
BTW: hobbitd-client in testing mode does not support the new LOG tag: [bb at iris etc]$ ../bin/hobbitd_client --test Hostname (.=end, ?=dump, !=reload) []: argos Test (cpu, mem, disk, proc):
Please help: I'm stuck!
Dominique UNIL - University of Lausanne
Dominique Frise wrote:
Hi,
I still could not trigger any alert (yellow/red) for the msgs column :-( Config. for clients was made following the man pages for hobbit-clients.cfg and client-local.cfg.
-----hobbit-clients.cfg---- HOST=argos,eliot LOAD 8.0 16.0 LOG messages quota_ufs
-----client-local.cfg---- [sunos] log:/var/adm/messages:10240
On argos client (sunos),there are lots of entries with "quota_ufs" in /var/adm/messages but the msgs column stays green even if I start the client from scratch (erasing tmp files).
BTW: hobbitd-client in testing mode does not support the new LOG tag: [bb at iris etc]$ ../bin/hobbitd_client --test Hostname (.=end, ?=dump, !=reload) []: argos Test (cpu, mem, disk, proc):
Please help: I'm stuck!
Dominique UNIL - University of Lausanne
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Hi all,
After some debugging (client_config.c:scan_log), I finally could trigger yellow or red state on the msgs column!
1/ logfilename Unlike what the man page says, the logfilename must include the directory OR it must be a regexp (leading %)
Examples:
LOG /var/log/messages LOG %messages
LOG messages <-- won't work!
2/ pattern The string to match must be a regexp
Examples:
%warning warning <-- won't work!
I did not try the excludepattern.
Dominique UNIL - University of Lausanne
Dominique Frise wrote:
Hi all,
After some debugging (client_config.c:scan_log), I finally could trigger yellow or red state on the msgs column!
1/ logfilename Unlike what the man page says, the logfilename must include the directory OR it must be a regexp (leading %)
Examples:
LOG /var/log/messages LOG %messages
LOG messages <-- won't work!
2/ pattern The string to match must be a regexp
Examples:
%warning warning <-- won't work!
I did not try the excludepattern.
Dominique UNIL - University of Lausanne
Dominique,
That is just what I needed to get started. Where did you find a man page that explains LOG? I didn't see one.
Setting yellow and red rules to these: LOG %messages %error yellow LOG %messages %warn red
Echoed the following to the messages file: warn10 warn error 10 error10
Displayed the following alerts: Critical entries in /var/log/messages yellow warn error 10 yellow error10 red warn10 red warn error 10
Full log /var/log/messages warn10 warn error 10 error10
I didn't have any luck with setting ignoreexp either.
John
John Glowacki wrote:
Dominique Frise wrote:
Hi all,
After some debugging (client_config.c:scan_log), I finally could trigger yellow or red state on the msgs column!
1/ logfilename Unlike what the man page says, the logfilename must include the directory OR it must be a regexp (leading %)
Examples:
LOG /var/log/messages LOG %messages
LOG messages <-- won't work!
2/ pattern The string to match must be a regexp
Examples:
%warning warning <-- won't work!
I did not try the excludepattern.
Dominique UNIL - University of Lausanne
Dominique,
That is just what I needed to get started. Where did you find a man page that explains LOG? I didn't see one.
Setting yellow and red rules to these: LOG %messages %error yellow LOG %messages %warn red
Echoed the following to the messages file: warn10 warn error 10 error10
Displayed the following alerts: Critical entries in /var/log/messages yellow warn error 10 yellow error10 red warn10 red warn error 10
Full log /var/log/messages warn10 warn error 10 error10
I didn't have any luck with setting ignoreexp either.
John
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
John, the man pages for LOG (Solaris 9 installation)are:
hobbit-clients.cfg(5) -- Configuration file for the hobbitd_client module client-local.cfg(5) -- Local configuration settings for Hobbit clients
Good luck.
Dominique UNIL - University of Lausanne
participants (2)
-
Dominique.Frise@unil.ch
-
johng@idttechnology.com