<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://kb.linux-vs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jjneely</id>
		<title>LVSKB - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://kb.linux-vs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jjneely"/>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki/Special:Contributions/Jjneely"/>
		<updated>2026-04-30T07:32:41Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=Net-SNMP-LVS-Module&amp;diff=5776</id>
		<title>Net-SNMP-LVS-Module</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=Net-SNMP-LVS-Module&amp;diff=5776"/>
				<updated>2008-09-30T14:30:22Z</updated>
		
		<summary type="html">&lt;p&gt;Jjneely: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== GENERAL ==&lt;br /&gt;
net-snmpd-lvs-module is a dynamicaly loadable shared object for SNMP to get the configuration and some statistical information from the Linux kernel with [[IPVS|IP virtual server]] support.&lt;br /&gt;
&lt;br /&gt;
== INSTALLATION ==&lt;br /&gt;
Get the [http://homes.tiscover.com/jrief/net-snmp-lvs-module/net-snmp-lvs-module-0.0.4.tar.gz source] (note: as of 13 July 2008 this URL returns 404) for this module. [http://www.loadbalancer.org/download/SNMP/net-snmp-lvs-module-0.0.4.tar.gz Alternate source location]. From http://www.linuxvirtualserver.org/software/ipvs.html download the the correct version of ipvsadm, for kernel 2.6 use ipvsadm-1.24 or later, for kernel 2.4 use ipvsadm-1.21. Extract '''ipvsadm-''version''.tar.gz''', build the library and copy the subtree '''libipvs''' into the module's working directory.&lt;br /&gt;
&lt;br /&gt;
Check that the Linux kernel is available under '''/usr/src/linux'''. Install net-snmp and its development headers and libraries. Invoke '''make''', this should build '''lvs.so'''. Copy LVS-MIB.txt and OC-MIB.txt to '''/usr/share/snmp/mibs/'''.&lt;br /&gt;
&lt;br /&gt;
Check that the new MIB is visible by invoking&lt;br /&gt;
 shell&amp;gt; snmptranslate -m LVS-MIB -On -IR lvsServiceEntry,&lt;br /&gt;
this should return '''.1.3.6.1.4.1.8225.4711.18.1'''&lt;br /&gt;
Copy '''lvs.so''' to '''/usr/lib/libnetsnmplvs.so''' and add the following line to&lt;br /&gt;
'''/etc/snmp/snmpd.conf''':&lt;br /&gt;
 dlmod lvs /usr/lib/libnetsnmplvs.so&lt;br /&gt;
Restart your snmpd.&lt;br /&gt;
&lt;br /&gt;
Try if everything works invoking:&lt;br /&gt;
 shell&amp;gt; snmpwalk -c public -v 2c -m LVS-MIB localhost 1.3.6.1.4.1.8225.4711&lt;br /&gt;
 LVS-MIB::lvsVersion.0 = STRING: &amp;quot;1.2.0&amp;quot;&lt;br /&gt;
 LVS-MIB::lvsNumServices.0 = INTEGER: 2&lt;br /&gt;
 LVS-MIB::lvsHashTableSize.0 = INTEGER: 4096&lt;br /&gt;
 LVS-MIB::lvsTcpTimeOut.0 = INTEGER: 900&lt;br /&gt;
 LVS-MIB::lvsTcpFinTimeOut.0 = INTEGER: 120&lt;br /&gt;
 LVS-MIB::lvsUdpTimeOut.0 = INTEGER: 300&lt;br /&gt;
 LVS-MIB::lvsDaemonState.0 = INTEGER: none(0)&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
In case you want to add additional snmp-values to your MIB:&lt;br /&gt;
Set export MIBS=ALL and create skeleton with&lt;br /&gt;
 shell&amp;gt; mib2c -c mib2c.interate.conf lvsRealTable&lt;br /&gt;
or&lt;br /&gt;
 shell&amp;gt; mib2c -c mib2c.interate.conf lvsServiceTable&lt;br /&gt;
this should create a file '''lvsRealTable.c''' and/or '''lvsServiceTable.c'''.&lt;br /&gt;
Use the generated code as a template for '''lvs.c''' and populate the missing parts.&lt;br /&gt;
&lt;br /&gt;
== CREDITS ==&lt;br /&gt;
The code for this module currently is maintained by Jacob Rief. This code is based on ucd-snmpd-lvs written by Romeo Benzoni in 2002 and never modified since. As that code did not compile with the newer net-snmp headers, I decided to rewrite the complete code. The only unchanged parts from the ucd-snmpd-lvs project are LVS-MIB.txt and OC-MIB.txt.&lt;br /&gt;
&lt;br /&gt;
== Extrenal Links ==&lt;br /&gt;
Official site: http://homes.tiscover.com/jrief/net-snmp-lvs-module/  (unavailable as of13 July 2008)&lt;br /&gt;
&lt;br /&gt;
[[Category:LVS Software]]&lt;/div&gt;</summary>
		<author><name>Jjneely</name></author>	</entry>

	</feed>