• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#windowsobjective-ccocoaqtpython誰得phprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiónc6e305c47b2de1d502eeb7256c308723b7a6e7fb (tree)
Tiempo2014-08-25 20:34:10
AutorTatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Merge branch 'master' into debian

Cambiar Resumen

  • delete: README => README.asciidoc

Diferencia incremental

--- a/README
+++ b/README.asciidoc
@@ -1,33 +1,57 @@
1+net-snmp-lvs-module
2+===================
3+
14 GENERAL
5+-------
26
3-net-snmpd-lvs-module is a dynamicaly loadable shared object to get the
7+net-snmp-lvs-module is a dynamicaly loadable shared object to get the
48 configuration and some statistical information from the Linux kernel
59 with IP virtual server support (also known as Linux Virtual Server).
610
711 INSTALLATION
12+------------
13+
14+Build
15+~~~~~
816
917 Install net-snmp and its development headers and libraries.
1018 Install netlink and its development headers and libraries.
1119 Invoke 'make', this should build 'lvs.so'.
1220
21+Install MIBs
22+~~~~~~~~~~~~
23+
1324 Copy LVS-MIB.txt and OC.txt to /usr/share/snmp/mibs/
1425 Check that the new MIB is visible by invoking
1526
16-shell> snmptranslate -m LVS-MIB -On -IR lvsServiceEntry,
27+--------------------------------------------------------
28+shell> snmptranslate -m LVS-MIB -On -IR lvsServiceEntry
29+--------------------------------------------------------
30+
31+This should return .1.3.6.1.4.1.8225.4711.18.1.
32+
1733
18-this should return .1.3.6.1.4.1.8225.4711.18.1
34+Configure snmpd
35+~~~~~~~~~~~~~~~
1936
2037 Copy lvs.so to /usr/lib/libnetsnmplvs.so and add the following line to
21-/etc/snmp/snmpd.conf:
38+/etc/snmp/snmpd.conf and restart your snmpd.
39+
2240 ---------------------------------------
2341 dlmod lvs /usr/lib/libnetsnmplvs.so
2442 ---------------------------------------
25-Restart your snmpd.
2643
27-Note: You need to run snmpd as root to get ipvs information.
44+[NOTE]
45+=================================================================
46+You may need to change to run snmpd as root to get ipvs information.
47+=================================================================
48+
49+Test
50+~~~~
2851
2952 Try if everything works invoking:
3053
54+--------------------------------------------------------
3155 shell> snmpwalk -c public -v 2c -m LVS-MIB localhost 1.3.6.1.4.1.8225.4711
3256
3357 LVS-MIB::lvsVersion.0 = STRING: "1.2.0"
@@ -38,20 +62,26 @@ LVS-MIB::lvsTcpFinTimeOut.0 = INTEGER: 120
3862 LVS-MIB::lvsUdpTimeOut.0 = INTEGER: 300
3963 LVS-MIB::lvsDaemonState.0 = INTEGER: none(0)
4064 ...
65+--------------------------------------------------------
4166
4267 In case you want to add additional snmp-values to your MIB:
4368 Set export MIBS=ALL and create skeleton with
4469
70+--------------------------------------------------------
4571 shell> mib2c -c mib2c.interate.conf lvsRealTable
72+--------------------------------------------------------
4673
4774 or
4875
76+--------------------------------------------------------
4977 shell> mib2c -c mib2c.interate.conf lvsServiceTable
78+--------------------------------------------------------
5079
5180 this should create a file lvsRealTable.c and/or lvsServiceTable.c.
5281 Use the generated code as a template for lvs.c and populate the missing parts.
5382
54-CREDITS
83+CREDITS / HISTORY
84+-----------------
5585
5686 The code for this module is based on ucd-snmpd-lvs written by Romeo Benzoni in
5787 2002 and never modified since. As that code did not compile with the newer
@@ -61,11 +91,18 @@ parts from the ucd-snmpd-lvs project are LVS-MIB.txt and OC.txt.
6191 On 2014, updates for 64bit environments, ipvsadm 1.26 (nl-3 patched) and
6292 net-snmp 5.7.2 by Tatsuk Sugiura.
6393
94+You can get original source code from LVS wiki;
95+http://kb.linuxvirtualserver.org/wiki/Net-SNMP-LVS-Module
96+
6497 AUTHOR
65-Jacob Rief <jacob.rief@tiscover.com> Jan, 2nd 2006
66-Tatsuki Sugiura <sugi@nemui.org> Aug 2014
98+------
99+
100+ * Jacob Rief <jacob.rief@tiscover.com> Jan, 2nd 2006
101+ * Tatsuki Sugiura <sugi@nemui.org> Aug 2014
67102
68103 LICENSE
104+-------
105+
69106 This program is free software; you can redistribute it and/or modify
70107 it under the terms of the GNU General Public License as published by
71108 the Free Software Foundation; either version 2 of the License, or
@@ -74,4 +111,4 @@ the Free Software Foundation; either version 2 of the License, or
74111 This program is distributed in the hope that it will be useful,
75112 but WITHOUT ANY WARRANTY; without even the implied warranty of
76113 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
77-GNU General Public License for more details.
114+GNU General Public License for more details.
\ No newline at end of file