Home > Operating Systems > Linux

LVS Monitoring

Author: slerena Create in: 08/14/2009 Update in: 08/14/2009
Rating: Status:
Module type : Local module

Monitoring of LVS load balancing system from Linux

Module data

Get conections per second for node "nido-1"

module_begin
module_name Nido1 CPS
module_exec ipvsadm -L | grep -i nido-1 | awk "{ print $5 }"
module_description Nido1 connections per second
module_type generic_data
module_end

Get inactive connections for node "nido-2"

module_begin
module_name Nido2 CIPS
module_exec ipvsadm -L | grep -i nido-2 | awk "{ print $6 }"
module_description Nido2 inactive connections per second
module_type generic_data
module_end

Get status of "nido-2" in the cluster (alive/not alive)

module_begin
module_name Nido-2_Status
module_exec ipvsadm -L | grep -i nido-2 | awk "{print $2}" |wc -l
module_description Nido-2
module_type generic_proc
module_end