LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Weird values for lvsServiceStatsInBytes

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Weird values for lvsServiceStatsInBytes
From: "Laurentiu C. Badea (L.C.)" <lc@xxxxxxxx>
Date: Tue, 07 Oct 2008 10:31:31 -0700
Great! I would also create the necessary config and reload snmpd on 
install and uninstall, so it will "just work" immediately after install, 
something like this.

mkdir -p $RPM_BUILD_ROOT/etc/snmp
echo "dlmod lvs /usr/lib/libnetsnmplvs.so" > 
$RPM_BUILD_ROOT/etc/snmp/snmpd.local.conf

%files
...
%config(noreplace) /etc/snmp/snmpd.local.conf

%post
test $1 = 1 && chkconfig snmpd && service snmpd reload || true;

%postun
test $1 = 0 && chkconfig snmpd && service snmpd reload || true;

Jack Neely wrote:
> And for interested folks, a src.rpm:
> 
>     
> http://install.linux.ncsu.edu/pub/yum/CLS/CLSTools.EL4/srpms/net-snmp-lvs-module-0.0.4-2.EL4.src.rpm
> 
> Jack Neely


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