<?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=Gam3</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=Gam3"/>
		<link rel="alternate" type="text/html" href="https://kb.linuxvirtualserver.org/wiki/Special:Contributions/Gam3"/>
		<updated>2026-04-30T09:53:19Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://kb.linuxvirtualserver.org/wiki?title=Net-SNMP-LVS-Module&amp;diff=5815</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=5815"/>
				<updated>2010-01-20T21:13:09Z</updated>
		
		<summary type="html">&lt;p&gt;Gam3: extra comma&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>Gam3</name></author>	</entry>

	<entry>
		<id>https://kb.linuxvirtualserver.org/wiki?title=User:Gam3&amp;diff=5772</id>
		<title>User:Gam3</title>
		<link rel="alternate" type="text/html" href="https://kb.linuxvirtualserver.org/wiki?title=User:Gam3&amp;diff=5772"/>
				<updated>2008-05-12T16:19:49Z</updated>
		
		<summary type="html">&lt;p&gt;Gam3: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;G. Allen Morris III&lt;br /&gt;
&lt;br /&gt;
[http://heavener.gam3.net/ heavener]&lt;/div&gt;</summary>
		<author><name>Gam3</name></author>	</entry>

	<entry>
		<id>https://kb.linuxvirtualserver.org/wiki?title=Troubleshooting&amp;diff=596</id>
		<title>Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://kb.linuxvirtualserver.org/wiki?title=Troubleshooting&amp;diff=596"/>
				<updated>2006-02-28T23:13:56Z</updated>
		
		<summary type="html">&lt;p&gt;Gam3: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
In order to make troubleshooting easier, we need to understand the IP load balancing technology that we are using now in the cluster, and know the whole packet flow, such as how packets are received and sent out at the [[load balancer]], and how packets are handled at real servers and sent out back to the clients.&lt;br /&gt;
&lt;br /&gt;
To know more information about IP load balacing technologies implemented in the IPVS, check&lt;br /&gt;
* [[LVS/NAT | Virtual Server via Network Address Transaltion]]&lt;br /&gt;
* [[LVS/TUN | Virtual Server via IP Tunneling]]&lt;br /&gt;
* [[LVS/DR | Virtual Server via Direct Routing]]&lt;br /&gt;
&lt;br /&gt;
Then, we can use some packet capture tools, such as [[ethereal]] and [[tcpdump]], to do troubleshooting at our cluster system. First, we can capture the load balanced traffic at both [[load balancer]] and real servers, in order to make sure that basic load balancing system works; Second, we can also capture packets of service monitoring among load balancers and real servers, to verify that cluster monitoring and high availability works as expected.&lt;br /&gt;
&lt;br /&gt;
== Load Balancer ==&lt;br /&gt;
&lt;br /&gt;
== Real Server ==&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Examples ==&lt;br /&gt;
&lt;br /&gt;
While LVS provides basic means for load-balancing, [[lvs-kiss]] provides some more sophisticated possibilities.&lt;br /&gt;
&lt;br /&gt;
Basically [[lvs-kiss]] is just a peace of pearl that sits on top of LVS.&lt;br /&gt;
&lt;br /&gt;
[[lvs-kiss]] features configurable means of measuring node &amp;quot;load&amp;quot;. This can be anything - from using the average load to an snmp-get (any thing you can imagine doing at the command-line of an lvs-server which gives a numerical response).&lt;br /&gt;
&lt;br /&gt;
Trouble-shooting load-balancing can be tricky, when you encounter web-caches etc. I tend to use the good old &amp;quot;telnet VIP PORT&amp;quot; to check the result of load-balancing. For tests, you may even use dummy results with [[lvs-kiss]] (just do &amp;quot;echo NUMBER&amp;quot; as method for getting the load...).&lt;br /&gt;
&lt;br /&gt;
== Traps ==&lt;br /&gt;
&lt;br /&gt;
If you compile linux without the CONFIG_IP_VS_PROTO_TCP configure option, ipvsadm does not give any error messages, but does not grab incoming connections.&lt;/div&gt;</summary>
		<author><name>Gam3</name></author>	</entry>

	<entry>
		<id>https://kb.linuxvirtualserver.org/wiki?title=User:Gam3&amp;diff=2689</id>
		<title>User:Gam3</title>
		<link rel="alternate" type="text/html" href="https://kb.linuxvirtualserver.org/wiki?title=User:Gam3&amp;diff=2689"/>
				<updated>2006-02-28T00:22:26Z</updated>
		
		<summary type="html">&lt;p&gt;Gam3: G. Allen Morris III&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;G. Allen Morris III&lt;/div&gt;</summary>
		<author><name>Gam3</name></author>	</entry>

	<entry>
		<id>https://kb.linuxvirtualserver.org/wiki?title=IPVS_Wish_List&amp;diff=2570</id>
		<title>IPVS Wish List</title>
		<link rel="alternate" type="text/html" href="https://kb.linuxvirtualserver.org/wiki?title=IPVS_Wish_List&amp;diff=2570"/>
				<updated>2006-02-28T00:21:13Z</updated>
		
		<summary type="html">&lt;p&gt;Gam3: /* Feature List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is to write all the wishes for [[IPVS]] development.&lt;br /&gt;
&lt;br /&gt;
'''Remember''': you can ask for features as long as you want, but that won't make such features appear magically. :) Basically, you have these options:&lt;br /&gt;
* get your hands dirty, program and submit code to LVS&lt;br /&gt;
* convince other programmers that your wanted feature is valuable to them so that the programmers do it for you (and the rest of the community)&lt;br /&gt;
* put some bounty on a feature development and wait until someone wants to earn some money&lt;br /&gt;
&lt;br /&gt;
== Feature List ==&lt;br /&gt;
&lt;br /&gt;
* [[SCTP load balancing]] support&lt;br /&gt;
* connection synchronization improvement&lt;br /&gt;
* ip_gre tunnel&lt;br /&gt;
&lt;br /&gt;
[[Category:IPVS]]&lt;/div&gt;</summary>
		<author><name>Gam3</name></author>	</entry>

	</feed>