[Xymon] Ignore all log messages

Scot Kreienkamp Scot.Kreienkamp at la-z-boy.com
Wed Dec 3 19:22:53 CET 2014


Does anyone know if the ignore and trigger statements are applied per log?  For example:

Log  /var/log/messages
Ignore postgres
Trigger  fatal
Log /var/log/postgres
Ignore stuff
Trigger test

Is the first set of ignore/trigger done only on the first log and the second set to the second log, or are all the ignores and triggers cumulative to all the logs?

Thanks!


From: Scot Kreienkamp
Sent: Wednesday, December 03, 2014 12:58 PM
To: xymon at xymon.com
Subject: RE: Ignore all log messages

OK, so after searching through the mailing list for two hours and finding an old post about using different syntax in client-local I've changed it to this:

My new config:

log:/var/log/postgres.log:10240
ignore rmstomcat|jboss
trigger FATAL|Fatal|FAIL|Fail|fail|Error|ERROR|error|Error|timestamp|deadlock|Deadlock|password authentication failed|pg_hba.conf|invalid magic number
log:/var/log/messages:10240
ignore postgres|RMS Printing Subsystem|connection received|disconnection|connection authorized
trigger FAIL|Fail|fail|Error|ERROR|error|Error|timestamp|deadlock|Deadlock|password authentication failed|pg_hba.conf|invalid magic number
file:/etc/passwd

Not sure if this is correct or not.  Does this match up with anyone elses?

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Scot Kreienkamp
Sent: Wednesday, December 03, 2014 9:58 AM
To: xymon at xymon.com
Subject: [Xymon] Ignore all log messages

Hi everyone,

Does anyone have any advice on messages logging?  I have a log for postgres that gets so many lines written in a day there's no way it can transfer all of them to the Xymon server.  I don't need any of that traffic anyway.  The only lines I need are ones that contain a few specific words.  So I put this in client-local.cfg:

[servername]
log:/var/log/postgres.log:10240
ignore .*
trigger %(FATAL|Fatal|FAIL|Fail|fail|Error|ERROR|error|Error|timestamp|deadlock|Deadlock|password authentication failed|pg_hba.conf|invalid magic number)
log:/var/log/messages:10240
ignore %(postgres|RMS Printing Subsystem|connection received|disconnection|connection authorized)
trigger %(FAIL|Fail|fail|Error|ERROR|error|Error|timestamp|deadlock|Deadlock|password authentication failed|pg_hba.conf|invalid magic number)
file:/etc/passwd


However, that doesn't seem to produce any log messages from the postgres log even when it should match one of the triggers.  Client and server is version 4.3.17.

I appreciate any ideas anyone has, or if someone has already done this if you could share your config I'd like to see how you did it.

Thanks!

Scot



This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20141203/77d6adf6/attachment.html>


More information about the Xymon mailing list