<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://kb.linuxvirtualserver.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ntavares</id>
		<title>LVSKB - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://kb.linuxvirtualserver.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ntavares"/>
		<link rel="alternate" type="text/html" href="https://kb.linuxvirtualserver.org/wiki/Special:Contributions/Ntavares"/>
		<updated>2026-05-01T14:17:50Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://kb.linuxvirtualserver.org/wiki?title=User_talk:Galbum&amp;diff=5809</id>
		<title>User talk:Galbum</title>
		<link rel="alternate" type="text/html" href="https://kb.linuxvirtualserver.org/wiki?title=User_talk:Galbum&amp;diff=5809"/>
				<updated>2009-04-04T15:15:50Z</updated>
		
		<summary type="html">&lt;p&gt;Ntavares: New page: Galbum, regarding [http://kb.linuxvirtualserver.org/wiki?title=Net-SNMP-LVS-Module&amp;amp;diff=5803&amp;amp;oldid=5778 this edit of yours], I can't reach you by any other way than this. I'd like to excha...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Galbum, regarding [http://kb.linuxvirtualserver.org/wiki?title=Net-SNMP-LVS-Module&amp;amp;diff=5803&amp;amp;oldid=5778 this edit of yours], I can't reach you by any other way than this. I'd like to exchange some thoughts, specially if you are indeed Jacob Rief. Briefly, I can quickly setup a sourceforge.net to &amp;quot;save&amp;quot; the code in a better place. I can also provide a fixed (-fPIC) SRPM and x86_64.RPM for CentOS/RHEL 5. Please reply to nuno.tavares(at)dri.pt. Best wished, [[User:Ntavares|Ntavares]] 23:15, 4 April 2009 (CST)&lt;/div&gt;</summary>
		<author><name>Ntavares</name></author>	</entry>

	<entry>
		<id>https://kb.linuxvirtualserver.org/wiki?title=Net-SNMP-LVS-Module&amp;diff=5808</id>
		<title>Net-SNMP-LVS-Module</title>
		<link rel="alternate" type="text/html" href="https://kb.linuxvirtualserver.org/wiki?title=Net-SNMP-LVS-Module&amp;diff=5808"/>
				<updated>2009-04-04T14:11:56Z</updated>
		
		<summary type="html">&lt;p&gt;Ntavares: /* CREDITS */&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 source for this module ([[media:Net-snmp-lvs-module-0.0.4.tar.gz|local copy]] or [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;
== Troubleshooting ==&lt;br /&gt;
If you find an output for &amp;lt;tt&amp;gt;&amp;lt;/tt&amp;gt; like this:&lt;br /&gt;
 [root@machine ~]# snmpwalk -c public -v 2c -m LVS-MIB localhost 1.3.6.1.4.1.8225.4711&lt;br /&gt;
 LVS-MIB::lvs = No more variables left in this MIB View (It is past the end of the MIB tree)&lt;br /&gt;
&lt;br /&gt;
I found the solution to be [quite] less conservative with &amp;lt;tt&amp;gt;snmpd.conf&amp;lt;/tt&amp;gt; [http://www.esn.ae.krakow.pl/~mike/Other/lvs-snmp/ here]:&lt;br /&gt;
&lt;br /&gt;
«''You can add following lines to snmpd.conf ('+' marks which line was added). This is an example and you should be very careful in granting access to your snmp coz potentially it can be a security issue:''»&lt;br /&gt;
&lt;br /&gt;
 +view all    included  .1&lt;br /&gt;
 view    systemview    included   .1.3.6.1.2.1.1&lt;br /&gt;
&lt;br /&gt;
 +access  notConfigGroup &amp;quot;&amp;quot;      any       noauth    exact  all none none&lt;br /&gt;
 access  notConfigGroup &amp;quot;&amp;quot;      any       noauth    exact  systemview none none&lt;br /&gt;
&lt;br /&gt;
This was verified in CentOS 5.2.&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;
The official site does not exist any more, since I left that company.&lt;br /&gt;
If somebody gives me access to the repository, I will maintain the module there, otherwise I will have to create one at Google-code.&lt;br /&gt;
&lt;br /&gt;
[[Category:LVS Software]]&lt;/div&gt;</summary>
		<author><name>Ntavares</name></author>	</entry>

	</feed>