fetchlog-devel Mailing List for fetchlog - fetch new logfile messages
Brought to you by:
afrika
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2012 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Alexander H. <ale...@ch...> - 2012-02-08 16:14:20
|
hi Suny, Am 08.02.2012 12:27, schrieb Suny Kim: > I am struggling to teach fetchlog to find all error messages starting > with "TSN-", but ignore "TNS-12502". For the first part, this works: > fetchlog -f 1:80:1000:s logfile /tmp/x.pos 'TNS-' > > But how do i exclude the TNS-12502? With "and"? > for the regex pattern matching ('TNS-') fetchlog uses your system's extended regular expressions functions, see 'man re_format'. For this time I don't know how to express "TNS-" and not "12502" with extended regular expressions, because there is no negation operator in ERE. I am sorry, but for the moment I even don't know a workaround for this, except: - Try to configure your Systems in such a way that these TNS-12502 messages disappear - Probably there is a chance to direct these (kind) of error messages into a different logfile which will not be monitored with fetchlog Nevertheless, I filed a ticket for this. I think the solution would be an alternative regex engine for fetchlog. with best regards, Alexander |
From: Suny K. <Yn...@gm...> - 2012-02-08 11:27:14
|
Hi. I am struggling to teach fetchlog to find all error messages starting with "TSN-", but ignore "TNS-12502". For the first part, this works: fetchlog -f 1:80:1000:s logfile /tmp/x.pos 'TNS-' But how do i exclude the TNS-12502? With "and"? Thanks, Suny |
From: J K <jon...@ya...> - 2006-12-04 11:30:09
|
What is the required format of the bookmark file and is it an optional parameter? thanks JK --------------------------------- Have a burning question? Go to Yahoo! Answers and get answers from real people who know. |
From: Alexander H. <ale...@ch...> - 2005-10-17 13:28:59
|
Istv=E1n Szuk=E1cs schrieb: > i need a tool to generate snmp trap in case of special line in messages >=20 Well, with net-snmp (its in the FreeBSD ports-collection too) comes the=20 snmptrap commandlinetool to send out snmp-traps. The first example on=20 the fetchlog homepage shows how to setup something like this: you only=20 have to replace the Email command with net-snmps 'snmptrap' command. with best regards, Alexander Haderer > maybe >=20 > Oct 14 15:34:43 zen named[82827]: zone dirtybass.hu/IN: expired < > after this i need an smp trap > "Zone dirtybass.hu has expired. servername, time" >=20 > and i read something snmp and fetchlog. >=20 > maybe this is not for what i seek >=20 > thanks anyway >=20 > On 10/17/05, Alexander Haderer <ale...@ch...> wrote: >=20 >>Istv=E1n Szuk=E1cs schrieb: >> >>>[15:34:49] zen mrtg # fetchlog -F 1:100:1000: /var/log/messages >>>/tmp/msgbm 'named' >>>Oct 14 15:34:43 zen named[82827]: starting BIND 9.3.0 -u bind -t /var/= named >>>Oct 14 15:34:43 zen named[82827]: command channel listening on 127.0.0= .1#953 >>>Oct 14 15:34:43 zen named[82827]: command channel listening on ::1#953 >>>Oct 14 15:34:43 zen named[82827]: zone dirtybass.hu/IN: expired >>>Oct 14 15:34:43 zen named[82827]: zone electrobass.hu/IN: expired >>>[15:55:26] zen mrtg # tail -f /tmp/msgbm >>> >>> >>>>=B4OCT=B8^C >>> >>>[15:55:50] zen mrtg # >>> >> >>The idea of fetchlog is to collect all new messages of a logfile for >>further processing, like sending an email or triggering a monitoring sy= stem. >> >>What you want is: >> >> tail -f /var/log/messages | grep named >> >>or the "other example" from the fetchlog-homepage >>http://fetchlog.sourceforge.net. Maybe there are other tools for this >>purpose mentioned on the homepage. >> >>Alexander >> >>-- >>------------------------------------------------------------------ >>Alexander Haderer Charite >>------------------------------------------------------------------ >> >=20 >=20 >=20 > -- > the sun shines for all >=20 --=20 ------------------------------------------------------------------ Alexander Haderer Charite ------------------------------------------------------------------ |
From: Alexander H. <ale...@ch...> - 2005-10-17 11:05:09
|
Istv=E1n Szuk=E1cs schrieb: > [15:34:49] zen mrtg # fetchlog -F 1:100:1000: /var/log/messages > /tmp/msgbm 'named' > Oct 14 15:34:43 zen named[82827]: starting BIND 9.3.0 -u bind -t /var/n= amed > Oct 14 15:34:43 zen named[82827]: command channel listening on 127.0.0.= 1#953 > Oct 14 15:34:43 zen named[82827]: command channel listening on ::1#953 > Oct 14 15:34:43 zen named[82827]: zone dirtybass.hu/IN: expired > Oct 14 15:34:43 zen named[82827]: zone electrobass.hu/IN: expired > [15:55:26] zen mrtg # tail -f /tmp/msgbm >=20 >>=B4OCT=B8^C >=20 > [15:55:50] zen mrtg # >=20 The idea of fetchlog is to collect all new messages of a logfile for=20 further processing, like sending an email or triggering a monitoring syst= em. What you want is: tail -f /var/log/messages | grep named or the "other example" from the fetchlog-homepage http://fetchlog.sourceforge.net. Maybe there are other tools for this=20 purpose mentioned on the homepage. Alexander --=20 ------------------------------------------------------------------ Alexander Haderer Charite ------------------------------------------------------------------ |
From: <le...@gm...> - 2005-10-14 14:00:55
|
[15:34:49] zen mrtg # fetchlog -F 1:100:1000: /var/log/messages /tmp/msgbm 'named' Oct 14 15:34:43 zen named[82827]: starting BIND 9.3.0 -u bind -t /var/named Oct 14 15:34:43 zen named[82827]: command channel listening on 127.0.0.1#95= 3 Oct 14 15:34:43 zen named[82827]: command channel listening on ::1#953 Oct 14 15:34:43 zen named[82827]: zone dirtybass.hu/IN: expired Oct 14 15:34:43 zen named[82827]: zone electrobass.hu/IN: expired [15:55:26] zen mrtg # tail -f /tmp/msgbm >=B4OCT=B8^C [15:55:50] zen mrtg # [16:00:09] zen mrtg # uname -a FreeBSD zen 5.3-RELEASE-p15 FreeBSD 5.3-RELEASE-p15 #3: Sat Jun 4 14:27:43 CEST 2005 root@zen:/usr/obj/usr/src/sys/ZEN i386 ? -- the sun shines for all |
From: Alexander H. <ale...@ch...> - 2003-07-24 11:43:16
|
hi Jasmine, At 09:57 24.07.2003 +0800, Jasmine wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi > > >I have just started to discover fetchlog and found that it can be used >together with Nagios. Think that it would make a great tool! But, the problem >i faced is in writing a script to pass to Nagios, it seems that fetchlog does >not want to return any other codes other than 0 and 1. The fetchlog return codes are mentioned in the man page and are compatible with the Nagios plugin return codes: http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN100 >I understand the return codes generated by fetchlog but dont quite get >what it >mean specifically and cannot find any docs on them. What do you mean when you >had a "fetchlog error"? Can elaborate further please? Please read the fetchlog manpage. >I read the manual but I still don't understand exactly what you mean by >columns, chars and stuffs. Like I am just following the example given for my >script, which I don't want to. I want to be able to understand. The example script in the README show how to use fetchlog as a "standalone" tool without Nagios. If you want to integrate fetchlog into Nagios, please read README.Nagios (and README.SNMP if you want to monitor remote logfiles). To play around with fetchlog you can just monitor /var/log/messages and create new messages with the logger command (man logger). with best regards, Alexander Haderer -- ------------------------------------------------------------------ Alexander Haderer Charite Campus Virchow-Klinikum Tel. +49 30 - 450 557 182 Strahlenklinik und Poliklinik Fax. +49 30 - 450 557 117 Sekr. Prof. Felix Email ale...@ch... Augustenburger Platz 1 www http://www.charite.de/rv/str/ 13353 Berlin - Germany ------------------------------------------------------------------ |
From: Jasmine <jas...@se...> - 2003-07-24 01:58:43
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi I have just started to discover fetchlog and found that it can be used=20 together with Nagios. Think that it would make a great tool! But, the probl= em=20 i faced is in writing a script to pass to Nagios, it seems that fetchlog do= es=20 not want to return any other codes other than 0 and 1.=20 I understand the return codes generated by fetchlog but dont quite get what= it=20 mean specifically and cannot find any docs on them. What do you mean when y= ou=20 had a "fetchlog error"? Can elaborate further please?=20 I read the manual but I still don't understand exactly what you mean by=20 columns, chars and stuffs. Like I am just following the example given for m= y=20 script, which I don't want to. I want to be able to understand.=20 # 'check_fetchlog' script #!/bin/sh MSG=3D`/usr/bin/fetchlog -F 1:80:1000:s /var/log/messages /var/tmp/msgbm` if [ $? -ne 0 ]; then echo -e "OK: No new messages" exit $? else echo "$?" echo -e "DEBUG" echo -e "WARNING: Fetchlog error" exit $? fi Cheers Jasmine =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/Hz0fNgvTa7Hj2AURAhe2AJ9PyY2D8gd4kiqIVqTu6C/3RCUR4wCbBpGe ieRg7I0GELdh2skBG2cBBMk=3D =3DrdQ1 =2D----END PGP SIGNATURE----- |
From: Alexander H. <ale...@ch...> - 2002-07-15 13:48:55
|
here I am and wait and see... Alexander Haderer Charite Berlin - Germany |
From: Alexander H. <ale...@ch...> - 2002-07-15 11:51:12
|
This is a test. Can you hear me? ... ah ------------------------------------------------------------------ Alexander Haderer Charite Campus Virchow-Klinikum Tel. +49 30 - 450 557 182 Strahlenklinik und Poliklinik Fax. +49 30 - 450 557 117 Sekr. Prof. Felix Email ale...@ch... Augustenburger Platz 1 www http://www.charite.de/rv/str/ 13353 Berlin - Germany ------------------------------------------------------------------ |