LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS stats/monitoring

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: LVS stats/monitoring
From: "Alexandre CASSEN" <alexandre.cassen@xxxxxxxxxxxxxx>
Date: Mon, 30 Jul 2001 15:25:02 +0100
Hi,

MRTG can be very usefull with LVS. you can use it with scripting to keep
trace on connection table for example. For example the following mrtg
config :


Target[LVS]: `/usr/local/bin/lvscontrack.sh`
Directory[LVS]: LVS
MaxBytes[LVS]: 150
Options[LVS]: gauge
Title[LVS]: LVS connection tracking
PageTop[LVS]: <H1>LVS connection tracking</H1>
XSize[LVS]: 225
YSize[LVS]: 100
WithPeak[LVS]: dwmy
YLegend[LVS]: nb connections
ShortLegend[LVS]: nb con


Where lvscontrack.sh is a simple shell script parsing the ActiveConn &
InActConn from the ipvsadm output. It just sum all the ActiveConn &
InActConn to display it to the std output. If you run it manually it looks
like :

[root@lvs1 /usr/local/bin]# ./lvscontrack.sh
116
68
time
[root@lvs1 /usr/local/bin]#

116 is the sum of the ActiveConn from the ipvsadm output for a specific VS
(68 is the InActConn).

You obtain nice MRTG graph that gave you the ability to keep eye on the
connection. You must param the XSize and YSize to your specifics range. You
can easy extend this technic to other values...


Best regards,
Alexandre



<Prev in Thread] Current Thread [Next in Thread>