[lvs-users] Weird values for lvsServiceStatsInBytes

Laurentiu C. Badea (L.C.) lc at waat.com
Tue Oct 7 18:31:31 BST 2008


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




More information about the lvs-users mailing list