[Logwatch-Devel] logwatch-zz-network-0.10.tar.gz

laurent.dufour at havas.com laurent.dufour at havas.com
Wed Mar 30 08:00:08 MST 2005






Hi guys,

I'm just sending you a network filter written in perl to put in /etc/log.d
Hope you may find it useful, even if it's still early dev
I wrote it with logwatch-6.0.1

Bye.

Here what it shows under a Linux Box for instance

[root at syslog services]# /etc/log.d/logwatch --print --service zz-network

 ################### LogWatch 6.0.1 (02/24/05) ####################
        Processing Initiated: Wed Mar 30 17:22:20 2005
        Date Range Processed: yesterday
      Detail Level of Output: 10
              Type of Output: unformatted
           Logfiles for Host: syslog.eurorscg.fr
  ##################################################################

 --------------------- Network Report Begin ------------------------

 ------------- Network Interfaces ---------------

 Ethernet : 2
 Other    : 1
 Total    : 3


 ------------- Ethernet -------------------------

 dummy0    Link encap:Ethernet  HWaddr 22:E4:95:DB:07:AB
 eth0      Link encap:Ethernet  HWaddr 00:80:5F:ED:DE:F7


 ------------- Other ----------------------------

 lo        Link encap:Local Loopback


 ------------- Network Interfaces ---------------




 ------------- Network statistics ---------------

 dummy0    Link encap:Ethernet  HWaddr 22:E4:95:DB:07:AB
           BROADCAST NOARP  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

 eth0      Link encap:Ethernet  HWaddr 00:80:5F:ED:DE:F7
           inet addr:172.19.22.110  Bcast:172.19.22.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:579879364 errors:0 dropped:0 overruns:0 frame:0
           TX packets:355727529 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:322333931 (307.4 Mb)  TX bytes:3115515353 (2971.1 Mb)
           Interrupt:5 Base address:0x6000

 lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:22 errors:0 dropped:0 overruns:0 frame:0
           TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:1924 (1.8 Kb)  TX bytes:1924 (1.8 Kb)


 Iface     MTU RX-ERR TX-ERR
 eth0     1500      0      0
 lo      16436      0      0


 ------------- Network statistics ---------------




 ------------- Routing states ---------------

 net.ipv4.ip_forward = 0


 ------------- Routing states ---------------




 ------------- Routing capabilities----------

 zebra                  0:off   1:off   2:off   3:off   4:off   5:off
6:off
 ripd                   0:off   1:off   2:off   3:off   4:off   5:off
6:off
 ripngd                 0:off   1:off   2:off   3:off   4:off   5:off
6:off
 ospfd                  0:off   1:off   2:off   3:off   4:off   5:off
6:off
 ospf6d                 0:off   1:off   2:off   3:off   4:off   5:off
6:off
 bgpd                   0:off   1:off   2:off   3:off   4:off   5:off
6:off

 Zebra 0.92a (i386-redhat-linux).
 Copyright 1996-2001, Kunihiro Ishiguro.


 ------------- Routing capabilities----------




 ------------- Network routes ---------------

 Kernel IP routing table
 Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
 172.19.22.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
 127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo
 0.0.0.0         172.19.22.1     0.0.0.0         UG        0 0          0
eth0


 ------------- Network routes ---------------



 ---------------------- Network Report End -------------------------


 ###################### LogWatch End #########################


And on a HPUX 11 box

# /etc/log.d/logwatch --print --service zz-network

 ################### LogWatch 6.0.1 (02/24/05) ####################
        Processing Initiated: Wed Mar 30 16:50:03 2005
        Date Range Processed: yesterday
      Detail Level of Output: 10
              Type of Output: unformatted
           Logfiles for Host: it2000
  ##################################################################

 --------------------- Network Report Begin ------------------------

 ------------- Network Interfaces ---------------

 Ethernet : 1
 Other    : 1
 Total    : 2


 ------------- Ethernet -------------------------

 lan0: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
        inet 193.57.13.43 netmask ffffff00 broadcast 193.57.13.255



 ------------- Other ----------------------------

 lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST>
        inet 127.0.0.1 netmask ff000000



 ------------- Network Interfaces ---------------




 ------------- Network statistics ---------------

 Name           Mtu Network            Address                 Ipkts
Opkts
 lan0          1500 193.57.13.0        it2000              358801684
371738728
 lo0           4136 127.0.0.0          localhost                2245
2245


 ------------- Network statistics ---------------




 ------------- Routing states ---------------

 Unable to find routing information in your system.


 ------------- Routing states ---------------




 ------------- Routing capabilities----------

 /usr/sbin/gated


 ------------- Routing capabilities----------




 ------------- Network routes ---------------

 Routing tables
 Dest/Netmask          Gateway            Flags  Refs       Use  Interface
Pmtu
 127.0.0.1             127.0.0.1          UH       0       2245  lo0
4136
 193.57.13.43          193.57.13.43       UH       0  267241933  lan0
4136
 193.57.13.0           193.57.13.43       U        2          0  lan0
1500
 127.0.0.0             127.0.0.1          U        0          0  lo0
4136
 default               193.57.13.1        UG       0          0  lan0
1500


 ------------- Network routes ---------------



 ---------------------- Network Report End -------------------------


 ###################### LogWatch End #########################


Bye.

(See attached file: logwatch-zz-network-0.10.tar.gz)
----------------------------------------------------------------------------------------

Laurent DUFOUR - HAVAS IT
Vice Chief Technical Officer - Directeur Technique Adjoint
2 Allée de Longchamp - 92281 - Suresnes - France
tel: +33 (0)158478830 - fax: +33 (0)1 58478815
mailto:laurent.dufour at havas.com
http://www.havas.com
----------------------------------------------------------------------------------------

Ce message et, le cas échéant, les pièces jointes sont strictement
confidentiels et destinés à l'usage exclusif de leur destinataire. Il est
interdit à toute personne autre que leur destinataire de les lire, copier,
dupliquer et/ou communiquer à tout tiers quelconque. Si vous recevez ce
message par erreur, merci de le détruire et d'en aviser immédiatement
l'expéditeur par e-mail.

This message and any attachment are confidential and transmitted for the
exclusive use of the intended recipient. It is prohibited for anyone other
than the recipient to read, copy, duplicate and/or disclose the content to
any third-person. Should you receive this message by mistake, please delete
it and contact the sender by return e-mail.

Este mensaje y, cuando proceda, los documentos adjuntos son estrictamente
confidenciales y destinados a el uso exclusivo de su destinatario. Está
prohibido a toda persona otro que su destinatario de leerlos, copiar,
duplicar y/o comunicar a todo tercero cualquiera. Si recibe este mensaje
por error, gracias de destruirlo y de informar inmediatamente el remitente
por correo electrónico.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?ISO-8859-1?Q?logwatch-zz-network-0=2E10=2Etar=2Egz?=
Type: application/octet-stream
Size: 2483 bytes
Desc: not available
Url : http://list.kaybee.org/pipermail/logwatch-devel/attachments/20050330/111a1d2d/ISO-8859-1Qlogwatch-zz-network-02E102Etar2Egz.obj


More information about the Logwatch-Devel mailing list