LOG checks
list Christian Rehberger
Hello all,
I want to check some log files like "var/spool/messages" and I can see
the entries off the file on the webpage, but I cannot test something
to change the color of the side.
In my test case I want to change the color to red when the string
syslogd appears in the /var/log/messages.
I do a kill -HUP on the syslogd to generate the needed entry.
After the kill command I can see the syslogd entry in the message file
on the webside, but nothing happens with the color :-(
On the server machine hobbit is running with the following
configuration. On the client machine 'galway' I did no changes.
client-local.cfg:
[galway]
log:/var/log/messages:10240
ignore MARK
file:/home/sisis/hugo
hobbit-clients.cfg:
HOST=galway
# These are the values for galway.Sisis.de
DISK / 95 98
PORT "LOCAL=%([.:]5000)$" state=LISTEN TEXT=ASE TRACK=ase
PORT "LOCAL=%([.:]3025)$" state=LISTEN color=yellow
TEXT=OPserver TRACK=opserver
PORT "LOCAL=%([.:]3045)$" state=LISTEN color=yellow
TEXT=CATserver TRACK=catserver
PORT "LOCAL=%([.:]8077)$" state=LISTEN color=yellow
TEXT=AVserver TRACK=avserver
PROC /usr/local/apache2/bin/httpd 5 20 TEXT=HTTP-ContentDM
PROC /usr/local/sisis-pap/apache/bin/httpd 5 20
TEXT=HTTP-sisis-pap
FILE /home/sisis/hugo MODE=444 yellow
LOG /var/log/messages syslogd color=red
Any ideas what is wrong?
Thanks
Chris
--
Dipl. Ing. (FH) Christian Rehberger
System Consultant · OCLC PICA GmbH
Grünwalder Weg 28g · 82041 Oberhaching · Germany
t +49-(0)89-61308 333 · f +49-(0)89-61308 399
e user-612b35aa5f4b@xymon.invalid · w http://www.oclcpica.org
list Lars Ebeling
Test with: LOG /var/log/messages %syslogd red Regards Lars ----- Original Message ----- From: "Christian Rehberger" <user-612b35aa5f4b@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Thursday, September 28, 2006 12:25 PM Subject: [hobbit] LOG checks Hello all, LOG /var/log/messages syslogd color=red --
list Christian Rehberger
Hi Lars,
▸
Test with: LOG /var/log/messages %syslogd red Regards Lars ----- Original Message ----- From: "Christian Rehberger" <user-612b35aa5f4b@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Thursday, September 28, 2006 12:25 PM Subject: [hobbit] LOG checks Hello all, LOG /var/log/messages syslogd color=red
that's the solution - sometimes I like the color red :-) Thanks a lot and best regards
▸
Chris -- Dipl. Ing. (FH) Christian Rehberger System Consultant · OCLC PICA GmbH Grünwalder Weg 28g · 82041 Oberhaching · Germany t +49-(0)89-61308 333 · f +49-(0)89-61308 399 e user-612b35aa5f4b@xymon.invalid · w http://www.oclcpica.org
list Olivier Boyaval
▸
Christian Rehberger a écrit :
Hi Lars,Test with: LOG /var/log/messages %syslogd red Regards Larsthat's the solution - sometimes I like the color red :-) Thanks a lot and best regards Chris
Thank too, this is also the solution of my problem. Olivier