LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ipvsadm --stats and number representation

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ipvsadm --stats and number representation
From: Horms <horms@xxxxxxxxxxxx>
Date: Fri, 13 May 2005 16:35:01 +0900
On Fri, May 13, 2005 at 04:16:51PM +1000, Guy Waugh wrote:
> Hi folks,
> 
> I'm currently running IPVS 1.0.9 and ipvsadm 1.21 (compiled with popt 
> and IPVS 1.0.9). I plan to upgrade before the year is out. All my 
> services use LVS-NAT.
> 
> I'm writing a Nagios plugin to check details about an LVSed service and 
> return information to the monitoring host. I started trying to get the 
> statistics with SNMP, but I couldn't get the LVS-MIB to work (quickly). 
> Looking at /proc/net/ip_vs_stats, it seems to be overall stats for the 
> director, not per service. So I thought I'd parse the output of 
> 'ipvsadm' to get the statistics.
> 
> I'm having a problem, however. The counters for InPkts, OutPkts, InBytes 
> and OutBytes are often returned by ipvsadm with a K, M, G, or T suffix 
> (e.g. numbers are in kilobytes, megabytes etc.). Unfortunately, this is 
> not granular enough for running checks every 5 minutes - the counters do 
> not update in that time, so it appears there is no traffic going through 
> for that service.
> 
> Can anyone suggest how I might get the stats values in bytes? Is there 
> something in /proc for IPVS 1.0.9 that I can use, or does a later 
> version of IPVS have more detailed stats somewhere?

I don't think you are in luck, however, ipdating ipvsadm to 
give extra stats should be pretty easy. Can you give some more
deatils of what you are after?

-- 
Horms

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