logstash-integration-snmp 4.0.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (324) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +23 -0
  3. data/CONTRIBUTORS +20 -0
  4. data/Gemfile +11 -0
  5. data/LICENSE +202 -0
  6. data/README.md +89 -0
  7. data/VERSION +1 -0
  8. data/docs/index.asciidoc +202 -0
  9. data/docs/input-snmp.asciidoc +524 -0
  10. data/docs/input-snmptrap.asciidoc +392 -0
  11. data/lib/logstash/inputs/snmp.rb +369 -0
  12. data/lib/logstash/inputs/snmptrap.rb +190 -0
  13. data/lib/logstash/plugin_mixins/snmp/common.rb +197 -0
  14. data/lib/logstash-integration-snmp_jars.rb +6 -0
  15. data/lib/mibs/ietf/ACCOUNTING-CONTROL-MIB.dic +1316 -0
  16. data/lib/mibs/ietf/ADSL-LINE-EXT-MIB.dic +1724 -0
  17. data/lib/mibs/ietf/ADSL-LINE-MIB.dic +7297 -0
  18. data/lib/mibs/ietf/ADSL-TC-MIB.dic +160 -0
  19. data/lib/mibs/ietf/ADSL2-LINE-MIB.dic +8663 -0
  20. data/lib/mibs/ietf/ADSL2-LINE-TC-MIB.dic +1462 -0
  21. data/lib/mibs/ietf/AGENTX-MIB.dic +817 -0
  22. data/lib/mibs/ietf/AGGREGATE-MIB.dic +708 -0
  23. data/lib/mibs/ietf/ALARM-MIB.dic +1734 -0
  24. data/lib/mibs/ietf/APM-MIB.dic +2870 -0
  25. data/lib/mibs/ietf/APPC-MIB.dic +8687 -0
  26. data/lib/mibs/ietf/APPLETALK-MIB.dic +4399 -0
  27. data/lib/mibs/ietf/APPLICATION-MIB.dic +3750 -0
  28. data/lib/mibs/ietf/APPN-DLUR-MIB.dic +972 -0
  29. data/lib/mibs/ietf/APPN-MIB.dic +9364 -0
  30. data/lib/mibs/ietf/APPN-TRAP-MIB.dic +664 -0
  31. data/lib/mibs/ietf/APS-MIB.dic +2430 -0
  32. data/lib/mibs/ietf/ARC-MIB.dic +552 -0
  33. data/lib/mibs/ietf/ATM-ACCOUNTING-INFORMATION-MIB.dic +816 -0
  34. data/lib/mibs/ietf/ATM-MIB.dic +4104 -0
  35. data/lib/mibs/ietf/ATM-TC-MIB.dic +914 -0
  36. data/lib/mibs/ietf/ATM2-MIB.dic +4715 -0
  37. data/lib/mibs/ietf/BFD-STD-MIB.dic +2367 -0
  38. data/lib/mibs/ietf/BFD-TC-STD-MIB.dic +202 -0
  39. data/lib/mibs/ietf/BGP4-MIB.dic +1931 -0
  40. data/lib/mibs/ietf/BLDG-HVAC-MIB.dic +812 -0
  41. data/lib/mibs/ietf/BRIDGE-MIB.dic +2257 -0
  42. data/lib/mibs/ietf/CAPWAP-BASE-MIB.dic +4128 -0
  43. data/lib/mibs/ietf/CAPWAP-DOT11-MIB.dic +482 -0
  44. data/lib/mibs/ietf/CHARACTER-MIB.dic +1140 -0
  45. data/lib/mibs/ietf/CIRCUIT-IF-MIB.dic +493 -0
  46. data/lib/mibs/ietf/CLNS-MIB.dic +1702 -0
  47. data/lib/mibs/ietf/COFFEE-POT-MIB.dic +282 -0
  48. data/lib/mibs/ietf/COPS-CLIENT-MIB.dic +1270 -0
  49. data/lib/mibs/ietf/DECNET-PHIV-MIB.dic +5837 -0
  50. data/lib/mibs/ietf/DIAL-CONTROL-MIB.dic +2139 -0
  51. data/lib/mibs/ietf/DIFFSERV-CONFIG-MIB.dic +378 -0
  52. data/lib/mibs/ietf/DIFFSERV-MIB.dic +5073 -0
  53. data/lib/mibs/ietf/DIRECTORY-SERVER-MIB.dic +1041 -0
  54. data/lib/mibs/ietf/DISMAN-EVENT-MIB.dic +3151 -0
  55. data/lib/mibs/ietf/DISMAN-EXPRESSION-MIB.dic +1716 -0
  56. data/lib/mibs/ietf/DISMAN-NSLOOKUP-MIB.dic +698 -0
  57. data/lib/mibs/ietf/DISMAN-PING-MIB.dic +2635 -0
  58. data/lib/mibs/ietf/DISMAN-SCHEDULE-MIB.dic +1744 -0
  59. data/lib/mibs/ietf/DISMAN-SCRIPT-MIB.dic +2820 -0
  60. data/lib/mibs/ietf/DISMAN-TRACEROUTE-MIB.dic +3239 -0
  61. data/lib/mibs/ietf/DLSW-MIB.dic +5635 -0
  62. data/lib/mibs/ietf/DNS-RESOLVER-MIB.dic +1765 -0
  63. data/lib/mibs/ietf/DNS-SERVER-MIB.dic +1593 -0
  64. data/lib/mibs/ietf/DOCS-BPI-MIB.dic +2634 -0
  65. data/lib/mibs/ietf/DOCS-CABLE-DEVICE-MIB.dic +5042 -0
  66. data/lib/mibs/ietf/DOCS-IETF-BPI2-MIB.dic +5478 -0
  67. data/lib/mibs/ietf/DOCS-IETF-CABLE-DEVICE-NOTIFICATION-MIB.dic +2447 -0
  68. data/lib/mibs/ietf/DOCS-IETF-QOS-MIB.dic +4886 -0
  69. data/lib/mibs/ietf/DOCS-IETF-SUBMGT-MIB.dic +1331 -0
  70. data/lib/mibs/ietf/DOCS-IF-MIB.dic +7980 -0
  71. data/lib/mibs/ietf/DOT12-IF-MIB.dic +1066 -0
  72. data/lib/mibs/ietf/DOT12-RPTR-MIB.dic +2669 -0
  73. data/lib/mibs/ietf/DOT3-EPON-MIB.dic +3297 -0
  74. data/lib/mibs/ietf/DOT3-OAM-MIB.dic +2830 -0
  75. data/lib/mibs/ietf/DS0-MIB.dic +466 -0
  76. data/lib/mibs/ietf/DS0BUNDLE-MIB.dic +468 -0
  77. data/lib/mibs/ietf/DS1-MIB.dic +4890 -0
  78. data/lib/mibs/ietf/DS3-MIB.dic +2719 -0
  79. data/lib/mibs/ietf/DSA-MIB.dic +888 -0
  80. data/lib/mibs/ietf/DSMON-MIB.dic +6177 -0
  81. data/lib/mibs/ietf/DVB-RCS-MIB.dic +5764 -0
  82. data/lib/mibs/ietf/EBN-MIB.dic +1026 -0
  83. data/lib/mibs/ietf/EFM-CU-MIB.dic +4335 -0
  84. data/lib/mibs/ietf/ENTITY-MIB.dic +2235 -0
  85. data/lib/mibs/ietf/ENTITY-SENSOR-MIB.dic +653 -0
  86. data/lib/mibs/ietf/ENTITY-STATE-MIB.dic +457 -0
  87. data/lib/mibs/ietf/ENTITY-STATE-TC-MIB.dic +260 -0
  88. data/lib/mibs/ietf/ETHER-CHIPSET-MIB.dic +787 -0
  89. data/lib/mibs/ietf/EtherLike-MIB.dic +2548 -0
  90. data/lib/mibs/ietf/FC-MGMT-MIB.dic +3465 -0
  91. data/lib/mibs/ietf/FCIP-MGMT-MIB.dic +1596 -0
  92. data/lib/mibs/ietf/FDDI-SMT73-MIB.dic +3378 -0
  93. data/lib/mibs/ietf/FIBRE-CHANNEL-FE-MIB.dic +2504 -0
  94. data/lib/mibs/ietf/FLOAT-TC-MIB.dic +128 -0
  95. data/lib/mibs/ietf/FLOW-METER-MIB.dic +3201 -0
  96. data/lib/mibs/ietf/FORCES-MIB.dic +598 -0
  97. data/lib/mibs/ietf/FR-ATM-PVC-SERVICE-IWF-MIB.dic +1601 -0
  98. data/lib/mibs/ietf/FR-MFR-MIB.dic +1351 -0
  99. data/lib/mibs/ietf/FRAME-RELAY-DTE-MIB.dic +1688 -0
  100. data/lib/mibs/ietf/FRNETSERV-MIB.dic +3940 -0
  101. data/lib/mibs/ietf/FRSLD-MIB.dic +2580 -0
  102. data/lib/mibs/ietf/Finisher-MIB.dic +1416 -0
  103. data/lib/mibs/ietf/GMPLS-LABEL-STD-MIB.dic +965 -0
  104. data/lib/mibs/ietf/GMPLS-LSR-STD-MIB.dic +693 -0
  105. data/lib/mibs/ietf/GMPLS-TC-STD-MIB.dic +180 -0
  106. data/lib/mibs/ietf/GMPLS-TE-STD-MIB.dic +2542 -0
  107. data/lib/mibs/ietf/GSMP-MIB.dic +2468 -0
  108. data/lib/mibs/ietf/HC-ALARM-MIB.dic +1050 -0
  109. data/lib/mibs/ietf/HC-PerfHist-TC-MIB.dic +310 -0
  110. data/lib/mibs/ietf/HC-RMON-MIB.dic +4456 -0
  111. data/lib/mibs/ietf/HDSL2-SHDSL-LINE-MIB.dic +3955 -0
  112. data/lib/mibs/ietf/HOST-RESOURCES-MIB.dic +2453 -0
  113. data/lib/mibs/ietf/HPR-IP-MIB.dic +640 -0
  114. data/lib/mibs/ietf/HPR-MIB.dic +1959 -0
  115. data/lib/mibs/ietf/IANA-ITU-ALARM-TC-MIB.dic +936 -0
  116. data/lib/mibs/ietf/IF-CAP-STACK-MIB.dic +356 -0
  117. data/lib/mibs/ietf/IF-INVERTED-STACK-MIB.dic +220 -0
  118. data/lib/mibs/ietf/IF-MIB.dic +2753 -0
  119. data/lib/mibs/ietf/IFCP-MGMT-MIB.dic +1717 -0
  120. data/lib/mibs/ietf/IGMP-STD-MIB.dic +809 -0
  121. data/lib/mibs/ietf/INET-ADDRESS-MIB.dic +570 -0
  122. data/lib/mibs/ietf/INTEGRATED-SERVICES-GUARANTEED-MIB.dic +319 -0
  123. data/lib/mibs/ietf/INTEGRATED-SERVICES-MIB.dic +1196 -0
  124. data/lib/mibs/ietf/INTERFACETOPN-MIB.dic +1705 -0
  125. data/lib/mibs/ietf/IP-FORWARD-MIB.dic +1853 -0
  126. data/lib/mibs/ietf/IP-MIB.dic +7064 -0
  127. data/lib/mibs/ietf/IPATM-IPMC-MIB.dic +4830 -0
  128. data/lib/mibs/ietf/IPFIX-MIB.dic +2334 -0
  129. data/lib/mibs/ietf/IPFIX-SELECTOR-MIB.dic +215 -0
  130. data/lib/mibs/ietf/IPMCAST-MIB.dic +3390 -0
  131. data/lib/mibs/ietf/IPMROUTE-STD-MIB.dic +1246 -0
  132. data/lib/mibs/ietf/IPOA-MIB.dic +2372 -0
  133. data/lib/mibs/ietf/IPS-AUTH-MIB.dic +1609 -0
  134. data/lib/mibs/ietf/IPSEC-SPD-MIB.dic +3989 -0
  135. data/lib/mibs/ietf/IPV6-FLOW-LABEL-MIB.dic +110 -0
  136. data/lib/mibs/ietf/IPV6-ICMP-MIB.dic +748 -0
  137. data/lib/mibs/ietf/IPV6-MIB.dic +2028 -0
  138. data/lib/mibs/ietf/IPV6-MLD-MIB.dic +659 -0
  139. data/lib/mibs/ietf/IPV6-TCP-MIB.dic +332 -0
  140. data/lib/mibs/ietf/IPV6-UDP-MIB.dic +209 -0
  141. data/lib/mibs/ietf/ISCSI-MIB.dic +4613 -0
  142. data/lib/mibs/ietf/ISDN-MIB.dic +1796 -0
  143. data/lib/mibs/ietf/ISIS-MIB.dic +6215 -0
  144. data/lib/mibs/ietf/ISNS-MIB.dic +6578 -0
  145. data/lib/mibs/ietf/ITU-ALARM-MIB.dic +665 -0
  146. data/lib/mibs/ietf/ITU-ALARM-TC-MIB.dic +137 -0
  147. data/lib/mibs/ietf/Job-Monitoring-MIB.dic +2519 -0
  148. data/lib/mibs/ietf/L2TP-MIB.dic +4050 -0
  149. data/lib/mibs/ietf/LANGTAG-TC-MIB.dic +104 -0
  150. data/lib/mibs/ietf/LISP-MIB.dic +4067 -0
  151. data/lib/mibs/ietf/LMP-MIB.dic +5166 -0
  152. data/lib/mibs/ietf/MALLOC-MIB.dic +2156 -0
  153. data/lib/mibs/ietf/MAU-MIB.dic +2619 -0
  154. data/lib/mibs/ietf/MIDCOM-MIB.dic +2856 -0
  155. data/lib/mibs/ietf/MIOX25-MIB.dic +828 -0
  156. data/lib/mibs/ietf/MIP-MIB.dic +3473 -0
  157. data/lib/mibs/ietf/MOBILEIPV6-MIB.dic +5228 -0
  158. data/lib/mibs/ietf/MPLS-FTN-STD-MIB.dic +1594 -0
  159. data/lib/mibs/ietf/MPLS-L3VPN-STD-MIB.dic +2548 -0
  160. data/lib/mibs/ietf/MPLS-LC-ATM-STD-MIB.dic +491 -0
  161. data/lib/mibs/ietf/MPLS-LC-FR-STD-MIB.dic +395 -0
  162. data/lib/mibs/ietf/MPLS-LDP-ATM-STD-MIB.dic +1019 -0
  163. data/lib/mibs/ietf/MPLS-LDP-FRAME-RELAY-STD-MIB.dic +862 -0
  164. data/lib/mibs/ietf/MPLS-LDP-GENERIC-STD-MIB.dic +445 -0
  165. data/lib/mibs/ietf/MPLS-LDP-STD-MIB.dic +3657 -0
  166. data/lib/mibs/ietf/MPLS-LSR-STD-MIB.dic +3103 -0
  167. data/lib/mibs/ietf/MPLS-TC-STD-MIB.dic +911 -0
  168. data/lib/mibs/ietf/MPLS-TE-STD-MIB.dic +3673 -0
  169. data/lib/mibs/ietf/MSDP-MIB.dic +1893 -0
  170. data/lib/mibs/ietf/MTA-MIB.dic +1898 -0
  171. data/lib/mibs/ietf/Modem-MIB.dic +2054 -0
  172. data/lib/mibs/ietf/NAT-MIB.dic +3866 -0
  173. data/lib/mibs/ietf/NETWORK-SERVICES-MIB.dic +1034 -0
  174. data/lib/mibs/ietf/NHDP-MIB.dic +3005 -0
  175. data/lib/mibs/ietf/NHRP-MIB.dic +3660 -0
  176. data/lib/mibs/ietf/NOTIFICATION-LOG-MIB.dic +1156 -0
  177. data/lib/mibs/ietf/NTPv4-MIB.dic +1535 -0
  178. data/lib/mibs/ietf/OPT-IF-MIB.dic +8972 -0
  179. data/lib/mibs/ietf/OSPF-MIB.dic +5963 -0
  180. data/lib/mibs/ietf/OSPF-TRAP-MIB.dic +1190 -0
  181. data/lib/mibs/ietf/OSPFV3-MIB.dic +5708 -0
  182. data/lib/mibs/ietf/P-BRIDGE-MIB.dic +1499 -0
  183. data/lib/mibs/ietf/PARALLEL-MIB.dic +476 -0
  184. data/lib/mibs/ietf/PIM-MIB.dic +1393 -0
  185. data/lib/mibs/ietf/PIM-STD-MIB.dic +6819 -0
  186. data/lib/mibs/ietf/PINT-MIB.dic +830 -0
  187. data/lib/mibs/ietf/PKTC-IETF-MTA-MIB.dic +3191 -0
  188. data/lib/mibs/ietf/PKTC-IETF-SIG-MIB.dic +4713 -0
  189. data/lib/mibs/ietf/PMIPV6-MIB.dic +3010 -0
  190. data/lib/mibs/ietf/PMIPV6-TC-MIB.dic +293 -0
  191. data/lib/mibs/ietf/POLICY-BASED-MANAGEMENT-MIB.dic +3316 -0
  192. data/lib/mibs/ietf/POWER-ETHERNET-MIB.dic +959 -0
  193. data/lib/mibs/ietf/PPP-BRIDGE-NCP-MIB.dic +587 -0
  194. data/lib/mibs/ietf/PPP-IP-NCP-MIB.dic +269 -0
  195. data/lib/mibs/ietf/PPP-LCP-MIB.dic +994 -0
  196. data/lib/mibs/ietf/PPP-SEC-MIB.dic +411 -0
  197. data/lib/mibs/ietf/PSAMP-MIB.dic +998 -0
  198. data/lib/mibs/ietf/PTOPO-MIB.dic +1135 -0
  199. data/lib/mibs/ietf/PW-ATM-MIB.dic +1642 -0
  200. data/lib/mibs/ietf/PW-CEP-STD-MIB.dic +3661 -0
  201. data/lib/mibs/ietf/PW-STD-MIB.dic +3592 -0
  202. data/lib/mibs/ietf/PW-TC-STD-MIB.dic +437 -0
  203. data/lib/mibs/ietf/PW-TDM-MIB.dic +1896 -0
  204. data/lib/mibs/ietf/PerfHist-TC-MIB.dic +152 -0
  205. data/lib/mibs/ietf/Printer-MIB.dic +6665 -0
  206. data/lib/mibs/ietf/Q-BRIDGE-MIB.dic +3115 -0
  207. data/lib/mibs/ietf/RADIUS-ACC-CLIENT-MIB.dic +991 -0
  208. data/lib/mibs/ietf/RADIUS-ACC-SERVER-MIB.dic +1183 -0
  209. data/lib/mibs/ietf/RADIUS-AUTH-CLIENT-MIB.dic +1073 -0
  210. data/lib/mibs/ietf/RADIUS-AUTH-SERVER-MIB.dic +1251 -0
  211. data/lib/mibs/ietf/RADIUS-DYNAUTH-CLIENT-MIB.dic +1116 -0
  212. data/lib/mibs/ietf/RADIUS-DYNAUTH-SERVER-MIB.dic +1003 -0
  213. data/lib/mibs/ietf/RAQMON-MIB.dic +2695 -0
  214. data/lib/mibs/ietf/RBRIDGE-MIB.dic +2981 -0
  215. data/lib/mibs/ietf/RDBMS-MIB.dic +1935 -0
  216. data/lib/mibs/ietf/RFC1065-SMI.dic +108 -0
  217. data/lib/mibs/ietf/RFC1155-SMI.dic +118 -0
  218. data/lib/mibs/ietf/RFC1158-MIB.dic +2440 -0
  219. data/lib/mibs/ietf/RFC1213-MIB.dic +3434 -0
  220. data/lib/mibs/ietf/RFC1269-MIB.dic +557 -0
  221. data/lib/mibs/ietf/RFC1271-MIB.dic +4135 -0
  222. data/lib/mibs/ietf/RFC1285-MIB.dic +2842 -0
  223. data/lib/mibs/ietf/RFC1316-MIB.dic +800 -0
  224. data/lib/mibs/ietf/RFC1381-MIB.dic +1347 -0
  225. data/lib/mibs/ietf/RFC1382-MIB.dic +3820 -0
  226. data/lib/mibs/ietf/RFC1414-MIB.dic +214 -0
  227. data/lib/mibs/ietf/RIPv2-MIB.dic +773 -0
  228. data/lib/mibs/ietf/RMON-MIB.dic +5551 -0
  229. data/lib/mibs/ietf/RMON2-MIB.dic +8224 -0
  230. data/lib/mibs/ietf/ROHC-MIB.dic +1613 -0
  231. data/lib/mibs/ietf/ROHC-RTP-MIB.dic +859 -0
  232. data/lib/mibs/ietf/ROHC-UNCOMPRESSED-MIB.dic +267 -0
  233. data/lib/mibs/ietf/RPKI-ROUTER-MIB.dic +1363 -0
  234. data/lib/mibs/ietf/RS-232-MIB.dic +1335 -0
  235. data/lib/mibs/ietf/RSERPOOL-MIB.dic +2501 -0
  236. data/lib/mibs/ietf/RSTP-MIB.dic +427 -0
  237. data/lib/mibs/ietf/RSVP-MIB.dic +4135 -0
  238. data/lib/mibs/ietf/RTP-MIB.dic +1376 -0
  239. data/lib/mibs/ietf/SCSI-MIB.dic +3804 -0
  240. data/lib/mibs/ietf/SCTP-MIB.dic +1924 -0
  241. data/lib/mibs/ietf/SFLOW-MIB.dic +568 -0
  242. data/lib/mibs/ietf/SIP-COMMON-MIB.dic +2769 -0
  243. data/lib/mibs/ietf/SIP-MIB.dic +1438 -0
  244. data/lib/mibs/ietf/SIP-SERVER-MIB.dic +1150 -0
  245. data/lib/mibs/ietf/SIP-TC-MIB.dic +257 -0
  246. data/lib/mibs/ietf/SIP-UA-MIB.dic +268 -0
  247. data/lib/mibs/ietf/SLAPM-MIB.dic +4527 -0
  248. data/lib/mibs/ietf/SMON-MIB.dic +1758 -0
  249. data/lib/mibs/ietf/SNA-NAU-MIB.dic +4042 -0
  250. data/lib/mibs/ietf/SNA-SDLC-MIB.dic +3858 -0
  251. data/lib/mibs/ietf/SNMP-COMMUNITY-MIB.dic +715 -0
  252. data/lib/mibs/ietf/SNMP-FRAMEWORK-MIB.dic +709 -0
  253. data/lib/mibs/ietf/SNMP-MPD-MIB.dic +230 -0
  254. data/lib/mibs/ietf/SNMP-NOTIFICATION-MIB.dic +859 -0
  255. data/lib/mibs/ietf/SNMP-PROXY-MIB.dic +414 -0
  256. data/lib/mibs/ietf/SNMP-REPEATER-MIB.dic +4335 -0
  257. data/lib/mibs/ietf/SNMP-SSH-TM-MIB.dic +447 -0
  258. data/lib/mibs/ietf/SNMP-TARGET-MIB.dic +924 -0
  259. data/lib/mibs/ietf/SNMP-TLS-TM-MIB.dic +1449 -0
  260. data/lib/mibs/ietf/SNMP-TSM-MIB.dic +315 -0
  261. data/lib/mibs/ietf/SNMP-USER-BASED-SM-MIB.dic +1164 -0
  262. data/lib/mibs/ietf/SNMP-USM-AES-MIB.dic +95 -0
  263. data/lib/mibs/ietf/SNMP-USM-DH-OBJECTS-MIB.dic +653 -0
  264. data/lib/mibs/ietf/SNMP-VIEW-BASED-ACM-MIB.dic +1202 -0
  265. data/lib/mibs/ietf/SNMPv2-MIB.dic +1382 -0
  266. data/lib/mibs/ietf/SNMPv2-SMI.dic +223 -0
  267. data/lib/mibs/ietf/SNMPv2-USEC-MIB.dic +405 -0
  268. data/lib/mibs/ietf/SONET-MIB.dic +3308 -0
  269. data/lib/mibs/ietf/SOURCE-ROUTING-MIB.dic +542 -0
  270. data/lib/mibs/ietf/SSPM-MIB.dic +1530 -0
  271. data/lib/mibs/ietf/SYSAPPL-MIB.dic +2092 -0
  272. data/lib/mibs/ietf/T11-FC-FABRIC-ADDR-MGR-MIB.dic +1779 -0
  273. data/lib/mibs/ietf/T11-FC-FABRIC-CONFIG-SERVER-MIB.dic +2822 -0
  274. data/lib/mibs/ietf/T11-FC-FABRIC-LOCK-MIB.dic +700 -0
  275. data/lib/mibs/ietf/T11-FC-FSPF-MIB.dic +1889 -0
  276. data/lib/mibs/ietf/T11-FC-NAME-SERVER-MIB.dic +1775 -0
  277. data/lib/mibs/ietf/T11-FC-ROUTE-MIB.dic +655 -0
  278. data/lib/mibs/ietf/T11-FC-RSCN-MIB.dic +1110 -0
  279. data/lib/mibs/ietf/T11-FC-VIRTUAL-FABRIC-MIB.dic +770 -0
  280. data/lib/mibs/ietf/T11-FC-ZONE-SERVER-MIB.dic +3886 -0
  281. data/lib/mibs/ietf/T11-TC-MIB.dic +110 -0
  282. data/lib/mibs/ietf/TCP-ESTATS-MIB.dic +3926 -0
  283. data/lib/mibs/ietf/TCP-MIB.dic +1319 -0
  284. data/lib/mibs/ietf/TCPIPX-MIB.dic +457 -0
  285. data/lib/mibs/ietf/TE-LINK-STD-MIB.dic +2876 -0
  286. data/lib/mibs/ietf/TE-MIB.dic +2924 -0
  287. data/lib/mibs/ietf/TED-MIB.dic +1749 -0
  288. data/lib/mibs/ietf/TIME-AGGREGATE-MIB.dic +550 -0
  289. data/lib/mibs/ietf/TN3270E-MIB.dic +2785 -0
  290. data/lib/mibs/ietf/TN3270E-RT-MIB.dic +1317 -0
  291. data/lib/mibs/ietf/TOKEN-RING-RMON-MIB.dic +2820 -0
  292. data/lib/mibs/ietf/TOKENRING-MIB.dic +1184 -0
  293. data/lib/mibs/ietf/TOKENRING-STATION-SR-MIB.dic +292 -0
  294. data/lib/mibs/ietf/TRANSPORT-ADDRESS-MIB.dic +610 -0
  295. data/lib/mibs/ietf/TRIP-MIB.dic +3159 -0
  296. data/lib/mibs/ietf/TRIP-TC-MIB.dic +241 -0
  297. data/lib/mibs/ietf/TUNNEL-MIB.dic +1095 -0
  298. data/lib/mibs/ietf/UDP-MIB.dic +751 -0
  299. data/lib/mibs/ietf/UDPLITE-MIB.dic +704 -0
  300. data/lib/mibs/ietf/UPS-MIB.dic +3088 -0
  301. data/lib/mibs/ietf/URI-TC-MIB.dic +193 -0
  302. data/lib/mibs/ietf/UUID-TC-MIB.dic +135 -0
  303. data/lib/mibs/ietf/VDSL-LINE-EXT-MCM-MIB.dic +989 -0
  304. data/lib/mibs/ietf/VDSL-LINE-EXT-SCM-MIB.dic +605 -0
  305. data/lib/mibs/ietf/VDSL-LINE-MIB.dic +4518 -0
  306. data/lib/mibs/ietf/VDSL2-LINE-MIB.dic +11029 -0
  307. data/lib/mibs/ietf/VDSL2-LINE-TC-MIB.dic +3152 -0
  308. data/lib/mibs/ietf/VPN-TC-STD-MIB.dic +121 -0
  309. data/lib/mibs/ietf/VRRP-MIB.dic +1163 -0
  310. data/lib/mibs/ietf/VRRPV3-MIB.dic +1403 -0
  311. data/lib/mibs/ietf/WWW-MIB.dic +1810 -0
  312. data/lib/mibs/logstash/iso.dic +18 -0
  313. data/logstash-integration-snmp.gemspec +40 -0
  314. data/spec/fixtures/RFC1213-MIB.dic +3445 -0
  315. data/spec/fixtures/collision.dic +25 -0
  316. data/spec/integration/inputs/snmp_spec.rb +443 -0
  317. data/spec/integration/inputs/snmptrap_spec.rb +383 -0
  318. data/spec/unit/inputs/common_spec.rb +264 -0
  319. data/spec/unit/inputs/snmp_spec.rb +510 -0
  320. data/spec/unit/inputs/snmptrap_spec.rb +141 -0
  321. data/vendor/jar-dependencies/org/logstash/integrations/plugin/4.0.0/plugin-4.0.0.jar +0 -0
  322. data/vendor/jar-dependencies/org/snakeyaml/snakeyaml-engine/2.7/snakeyaml-engine-2.7.jar +0 -0
  323. data/vendor/jar-dependencies/org/snmp4j/snmp4j/3.8.0/snmp4j-3.8.0.jar +0 -0
  324. metadata +523 -0
@@ -0,0 +1,524 @@
1
+ :integration: snmp
2
+ :plugin: snmp
3
+ :type: input
4
+ :no_codec:
5
+
6
+ ///////////////////////////////////////////
7
+ START - GENERATED VARIABLES, DO NOT EDIT!
8
+ ///////////////////////////////////////////
9
+ :version: %VERSION%
10
+ :release_date: %RELEASE_DATE%
11
+ :changelog_url: %CHANGELOG_URL%
12
+ :include_path: ../../../../logstash/docs/include
13
+ ///////////////////////////////////////////
14
+ END - GENERATED VARIABLES, DO NOT EDIT!
15
+ ///////////////////////////////////////////
16
+
17
+ [id="plugins-{type}s-{plugin}"]
18
+
19
+ === SNMP input plugin
20
+
21
+ // Uncomment after generated the initial versions of the target file
22
+ // include::{include_path}/plugin_header-integration.asciidoc[]
23
+
24
+ ==== Description
25
+
26
+ The SNMP input polls network devices using Simple Network Management Protocol (SNMP)
27
+ to gather information related to the current state of the devices operation.
28
+
29
+ The SNMP input plugin supports SNMP v1, v2c, and v3 over UDP and TCP transport protocols.
30
+
31
+ .Migrating to `logstash-integration-snmp` from stand-alone `input-snmp`
32
+ ****
33
+ The `logstash-input-snmp` plugin is now a component of the `logstash-integration-snmp` plugin.
34
+ This integrated plugin package provides better alignment in snmp processing, better resource management,
35
+ easier package maintenance, and a smaller installation footprint.
36
+
37
+ For migration information and guidelines, check out the migration guide.
38
+ ****
39
+
40
+ // TODO: Add link to migration topic in the integration index.
41
+
42
+ [id="plugins-{type}s-{plugin}-ecs"]
43
+ ==== Compatibility with the Elastic Common Schema (ECS)
44
+
45
+ Because SNMP data has specific field names based on OIDs, we recommend setting a <<plugins-{type}s-{plugin}-target>>.
46
+ Metadata fields follow a specific naming convention when <<plugins-{type}s-{plugin}-ecs_compatibility,ECS compatibility mode>> is enabled.
47
+
48
+ [cols="<l,<l,e,<e"]
49
+ |=======================================================================
50
+ |ECS disabled |ECS v1, v8 |Description
51
+ |[@metadata][host_protocol] |[@metadata][input][snmp][host][protocol] |The protocol used to retrieve data e.g. "udp"
52
+ |[@metadata][host_address] |[@metadata][input][snmp][host][address] |The host IP e.g. "192.168.1.1"
53
+ |[@metadata][host_port] |[@metadata][input][snmp][host][port] |The host's port e.g. "161"
54
+ |[@metadata][host_community] |[@metadata][input][snmp][host][community] |The configured community e.g. "public"
55
+ |[host] |[host][ip] |Same as `[@metadata][host_address]`, host's IP address
56
+ |=======================================================================
57
+
58
+ [id="plugins-{type}s-{plugin}-import-mibs"]
59
+ ==== Importing MIBs
60
+
61
+ This plugin already includes the IETF MIBs (management information bases), and you do not need to import them.
62
+ If you need additional MIBs, you need to important them.
63
+ Check out "Importing MIBs" for instructions.
64
+
65
+ // ToDo: Add link to MIBs content after generated file exists.
66
+
67
+ [id="plugins-{type}s-{plugin}-options"]
68
+ ==== SNMP Input Configuration Options
69
+
70
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
71
+
72
+ [cols="<,<,<",options="header",]
73
+ |=======================================================================
74
+ |Setting |Input type|Required
75
+ | <<plugins-{type}s-{plugin}-ecs_compatibility>> |<<string,string>>|No
76
+ | <<plugins-{type}s-{plugin}-get>> |<<array,array>>|No
77
+ | <<plugins-{type}s-{plugin}-hosts>> |<<array,array>>|No
78
+ | <<plugins-{type}s-{plugin}-interval>> |<<number,number>>|No
79
+ | <<plugins-{type}s-{plugin}-local_engine_id>> |<<string,string>>|No
80
+ | <<plugins-{type}s-{plugin}-mib_paths>> |<<path,path>>|No
81
+ | <<plugins-{type}s-{plugin}-oid_mapping_format>> |<<string,string>>, one of `["default", "ruby_snmp", "dotted_string"]`|No
82
+ | <<plugins-{type}s-{plugin}-oid_map_field_values>> |<<boolean,boolean>>|No
83
+ | <<plugins-{type}s-{plugin}-oid_path_length>> |<<number,number>>|No
84
+ | <<plugins-{type}s-{plugin}-oid_root_skip>> |<<number,number>>|No
85
+ | <<plugins-{type}s-{plugin}-poll_hosts_timeout>> |<<number,number>>|No
86
+ | <<plugins-{type}s-{plugin}-walk>> |<<array,array>>|No
87
+ | <<plugins-{type}s-{plugin}-tables>> |<<array,array>>|No
88
+ | <<plugins-{type}s-{plugin}-target>> |<<string,string>>|No
89
+ | <<plugins-{type}s-{plugin}-threads>> |<<number,number>>|No
90
+ | <<plugins-{type}s-{plugin}-use_provided_mibs>> |<<boolean,boolean>>|No
91
+ |=======================================================================
92
+
93
+ ==== SNMPv3 Authentication Options
94
+
95
+ This plugin supports the following SNMPv3 authentication options.
96
+
97
+ [cols="<,<,<",options="header",]
98
+ |=======================================================================
99
+ |Setting |Input type|Required
100
+ | <<plugins-{type}s-{plugin}-auth_pass>> |<<password,password>>|No
101
+ | <<plugins-{type}s-{plugin}-auth_protocol>> |<<string,string>>, one of `["md5", "sha", "sha2", "hmac128sha224", "hmac192sha256", "hmac256sha384", "hmac384sha512"]`|No
102
+ | <<plugins-{type}s-{plugin}-priv_pass>> |<<password,password>>|No
103
+ | <<plugins-{type}s-{plugin}-priv_protocol>> |<<string,string>>, one of `["des", "3des", "aes", "aes128", "aes192", "aes256"]`|No
104
+ | <<plugins-{type}s-{plugin}-security_level>> |<<string,string>>, one of `["noAuthNoPriv", "authNoPriv", "authPriv"]`|No
105
+ | <<plugins-{type}s-{plugin}-security_name>> |<<string,string>>|No
106
+ |=======================================================================
107
+
108
+ ==== SNMP Input Configuration Options
109
+
110
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
111
+ input plugins.
112
+
113
+ [id="plugins-{type}s-{plugin}-ecs_compatibility"]
114
+ ===== `ecs_compatibility`
115
+
116
+ * Value type is <<string,string>>
117
+ * Supported values are:
118
+ ** `disabled`: does not use ECS-compatible field names (fields might be set at the root of the event)
119
+ ** `v1`, `v8`: avoids field names that might conflict with Elastic Common Schema (for example, the `host` field)
120
+ * Default value depends on which version of Logstash is running:
121
+ ** When Logstash provides a `pipeline.ecs_compatibility` setting, its value is used as the default
122
+ ** Otherwise, the default value is `disabled`.
123
+
124
+ Controls this plugin's compatibility with the {ecs-ref}[Elastic Common Schema (ECS)].
125
+
126
+ [id="plugins-{type}s-{plugin}-get"]
127
+ ===== `get`
128
+
129
+ * Value type is <<array,array>>
130
+ * There is no default value for this setting
131
+
132
+ Use the `get` option to query for scalar values for the given OID(s).
133
+ One or more OID(s) are specified as an array of strings of OID(s).
134
+
135
+ Example
136
+ [source,ruby]
137
+ -----
138
+ input {
139
+ snmp {
140
+ get => ["1.3.6.1.2.1.1.1.0", "1.3.6.1.2.1.1.3.0", "1.3.6.1.2.1.1.5.0"]
141
+ hosts => [{host => "udp:127.0.0.1/161" community => "public"}]
142
+ }
143
+ }
144
+ -----
145
+
146
+ [id="plugins-{type}s-{plugin}-hosts"]
147
+ ===== `hosts`
148
+
149
+ * Value type is <<array,array>>
150
+ * There is no default value for this setting
151
+
152
+ The `hosts` option specifies the list of hosts to query the configured `get` and `walk` options.
153
+
154
+ Each host definition is a hash and must define the `host` key and value.
155
+ `host` must use the format `{tcp|udp}:{ip address}/{port}`, for example `host => "udp:127.0.0.1/161"`
156
+
157
+ Each host definition can optionally include the following keys and values:
158
+
159
+ * `community` the community string, default is `public`.
160
+ * `version` `1`, `2c` or `3`, default is `2c`.
161
+ * `retries` is the number of retries in case of failure, default is `2`.
162
+ * `timeout` is the timeout in milliseconds with a default value of `1000`.
163
+
164
+ *Specifying all hosts options*
165
+
166
+ [source,ruby]
167
+ -----
168
+ input {
169
+ snmp {
170
+ get => ["1.3.6.1.2.1.1.1.0"]
171
+ hosts => [{host => "udp:127.0.0.1/161" community => "public" version => "2c" retries => 2 timeout => 1000}]
172
+ }
173
+ }
174
+ -----
175
+
176
+ *Specifying multiple hosts*
177
+
178
+ [source,ruby]
179
+ -----
180
+ input {
181
+ snmp {
182
+ get => ["1.3.6.1.2.1.1.1.0"]
183
+ hosts => [{host => "udp:127.0.0.1/161" community => "public"}, {host => "udp:192.168.0.1/161" community => "private"}]
184
+ }
185
+ }
186
+ -----
187
+
188
+ *Specifying IPv6 hosts*
189
+
190
+ [source,ruby]
191
+ -----
192
+ input {
193
+ snmp {
194
+ get => ["1.3.6.1.2.1.1.1.0"]
195
+ hosts => [{host => "udp:[::1]/161" community => "public"}, {host => "udp:[2001:db8::2:1]/161" community => "private"}]
196
+ }
197
+ }
198
+ -----
199
+
200
+ [id="plugins-{type}s-{plugin}-interval"]
201
+ ===== `interval`
202
+
203
+ * Value type is <<number,number>>
204
+ * Default value is `30`
205
+
206
+ The `interval` option specifies the polling interval in seconds.
207
+ If polling all configured hosts takes longer than this interval, a warning will be emitted to the logs.
208
+
209
+ [id="plugins-{type}s-{plugin}-local_engine_id"]
210
+ ===== `local_engine_id`
211
+
212
+ * Value type is <<string,string>>
213
+ * There is no default value for this setting
214
+
215
+ The SNMPv3 local engine ID. Its length must be greater or equal than 5 and less or equal than 32.
216
+ If not provided, a default ID is generated based on the local IP address and additional four random bytes.
217
+
218
+ [id="plugins-{type}s-{plugin}-mib_paths"]
219
+ ===== `mib_paths`
220
+
221
+ * Value type is <<path,path>>
222
+ * There is no default value for this setting
223
+
224
+ The `mib_paths` option specifies the location of one or more imported MIB files.
225
+ The value can be either a dir path containing the imported MIB (`.dic`, `.yaml`) files, or a
226
+ file path to a single MIB file.
227
+
228
+ This plugin includes the IETF MIBs.
229
+ If you require other MIBs, you need to import them. See <<plugins-{type}s-{plugin}-import-mibs>>.
230
+
231
+ [id="plugins-{type}s-{plugin}-oid_mapping_format"]
232
+ ===== `oid_mapping_format`
233
+
234
+ * Value can be any of: `default`, `ruby_snmp`, `dotted_string`
235
+ * Default value is `"default"`
236
+
237
+ Defines the mapping textual representation of an OID in the Logstash event:
238
+
239
+ * `default` translates every identifier, using the MIBs resolved names, separated by dots. Example:
240
+ `1.3.6.1.2.1.1.2.0` is mapped as `iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0`
241
+ * `ruby_snmp` produces field names prefixed by the MIBs module name, followed by the latest resolved identifier name and unknowns values. Example:
242
+ `1.3.6.1.2.1.1.2.0` is mapped as `SNMPv2-MIB::sysObjectID.0`.
243
+ * `dotted_string` maps fields using the standard dotted string representation, Example:
244
+ `1.3.6.1.2.1.1.2.0` is mapped as `1.3.6.1.2.1.1.2.0`
245
+
246
+ [id="plugins-{type}s-{plugin}-oid_map_field_values"]
247
+ ===== `oid_map_field_values`
248
+
249
+ * Value type is <<boolean,boolean>>
250
+ * Default value is `false`
251
+
252
+ Defines if the Logstash event fields values, which types are `OID`, are mapped using the configured OID textual representation
253
+ set on the <<plugins-{type}s-{plugin}-oid_mapping_format>> option.
254
+
255
+ [id="plugins-{type}s-{plugin}-oid_root_skip"]
256
+ ===== `oid_root_skip`
257
+
258
+ * Value type is <<number,number>>
259
+ * Default value is `0`
260
+
261
+ The `oid_root_skip` option specifies the number of OID root digits to ignore in the event field name.
262
+ For example, in a numeric OID like "1.3.6.1.2.1.1.1.0" the first 5 digits could be ignored by setting `oid_root_skip => 5`
263
+ which would result in a field name "1.1.1.0". Similarly when a MIB is used an OID such
264
+ "1.3.6.1.2.mib-2.system.sysDescr.0" would become "mib-2.system.sysDescr.0"
265
+
266
+ [NOTE]
267
+ * You can use this setting or <<plugins-{type}s-{plugin}-oid_path_length>>, but not both at the same time.
268
+ * Use this setting only if <<plugins-{type}s-{plugin}-oid_mapping_format>> is set to `default`.
269
+
270
+ [id="plugins-{type}s-{plugin}-oid_path_length"]
271
+ ===== `oid_path_length`
272
+
273
+ * Value type is <<number,number>>
274
+ * Default value is `0`
275
+
276
+ The `oid_path_length` option specifies the number of OID root digits to retain in the event field name.
277
+ For example, in a numeric OID like "1.3.6.1.2.1.1.1.0" the last 2 digits could be retained by setting `oid_path_length => 2`
278
+ which would result in a field name "1.0". Similarly when a MIB is used an OID such
279
+ "1.3.6.1.2.mib-2.system.sysDescr.0" would become "sysDescr.0"
280
+
281
+ [NOTE]
282
+ * You can use this setting or <<plugins-{type}s-{plugin}-oid_root_skip>>, but not both at the same time.
283
+ * This setting can be used only if <<plugins-{type}s-{plugin}-oid_mapping_format>> is set to `default`.
284
+
285
+ [id="plugins-{type}s-{plugin}-poll_hosts_timeout"]
286
+ ===== `poll_hosts_timeout`
287
+
288
+ * Value type is <<number,number>>
289
+ * There is no default value for this setting
290
+
291
+ Specifies the maximum amount of time in milliseconds the polling client will wait for all <<plugins-{type}s-{plugin}-hosts>> responses.
292
+ If all responses are not received before the timeout elapses, the client will fail and some hosts might not get polled during the current cycle.
293
+
294
+ By default, it uses the highest value between `1 hour`, the maximum <<plugins-{type}s-{plugin}-hosts>> configured `timeout`,
295
+ and the <<plugins-{type}s-{plugin}-interval>> value.
296
+
297
+ [id="plugins-{type}s-{plugin}-walk"]
298
+ ===== `walk`
299
+
300
+ * Value type is <<array,array>>
301
+ * There is no default value for this setting
302
+
303
+ Use the `walk` option to retrieve the subtree of information for the given OID(s).
304
+ One or more OID(s) are specified as an array of strings of OID(s).
305
+
306
+ Queries the subtree of information starting at the given OID(s).
307
+
308
+ Example
309
+ [source,ruby]
310
+ -----
311
+ snmp {
312
+ walk => ["1.3.6.1.2.1.1"]
313
+ hosts => [{host => "udp:127.0.0.1/161" community => "public"}]
314
+ }
315
+ }
316
+ -----
317
+
318
+ [id="plugins-{type}s-{plugin}-tables"]
319
+ ===== `tables`
320
+
321
+ * Value type is <<array,array>>
322
+ * There is no default value for this setting
323
+ * Results are returned under a field using the table name
324
+
325
+ The `tables` option is used to query for tabular values for the given column OID(s).
326
+
327
+ Each table definition is a hash and must define the name key and value and the columns to return.
328
+
329
+ *Specifying a single table*
330
+
331
+ [source,ruby]
332
+ -----
333
+ input {
334
+ snmp {
335
+ hosts => [{host => "udp:127.0.0.1/161" community => "public" version => "2c" retries => 2 timeout => 1000}]
336
+ tables => [ {"name" => "interfaces" "columns" => ["1.3.6.1.2.1.2.2.1.1", "1.3.6.1.2.1.2.2.1.2", "1.3.6.1.2.1.2.2.1.5"]} ]
337
+ }
338
+ }
339
+ -----
340
+
341
+ *Specifying multiple tables*
342
+
343
+ [source,ruby]
344
+ -----
345
+ input {
346
+ snmp {
347
+ get => ["1.3.6.1.2.1.1.1.0"]
348
+ tables => [ {"name" => "interfaces" "columns" => ["1.3.6.1.2.1.2.2.1.1", "1.3.6.1.2.1.2.2.1.2", "1.3.6.1.2.1.2.2.1.5"]}, {"name" => "ltmPoolStatTable" "columns" => ["1.3.6.1.4.1.3375.2.2.5.2.3.1.1", "1.3.6.1.4.1.3375.2.2.5.2.3.1.6"]} ]
349
+ }
350
+ }
351
+ -----
352
+
353
+ [id="plugins-{type}s-{plugin}-target"]
354
+ ===== `target`
355
+
356
+ * Value type is <<string,string>>
357
+ * There is no default value for this setting
358
+
359
+ The name of the field under which SNMP payloads are assigned.
360
+ If not specified data will be stored in the root of the event.
361
+
362
+ Setting a target is recommended when <<plugins-{type}s-{plugin}-ecs_compatibility>> is enabled.
363
+
364
+ [id="plugins-{type}s-{plugin}-threads"]
365
+ ===== `threads`
366
+
367
+ * Value type is <<number,number>>
368
+ * Default value is the number of CPU cores
369
+
370
+ The number of threads to use for executing the hosts SNMP requests.
371
+
372
+ [id="plugins-{type}s-{plugin}-use_provided_mibs"]
373
+ ===== `use_provided_mibs`
374
+
375
+ * Value type is <<boolean,boolean>>
376
+ * Default value is `true`
377
+
378
+ This plugin provides all IETF MIBs (management information bases), publicly available in the https://www.ibr.cs.tu-bs.de/projects/libsmi[libsmi] version `0.5.0`.
379
+ When enabled, it automatically loads the bundled MIBs and provides mapping of the numeric OIDs to MIB field names in the resulting event.
380
+
381
+ ==== SNMPv3 Authentication Options
382
+
383
+ A **single user** can be configured and will be used for all defined SNMPv3 hosts.
384
+ Multiple snmp input declarations will be needed if multiple SNMPv3 users are required.
385
+ These options are required only if you are using SNMPv3.
386
+
387
+ [id="plugins-{type}s-{plugin}-auth_pass"]
388
+ ===== `auth_pass`
389
+
390
+ * Value type is <<password,password>>
391
+ * There is no default value for this setting
392
+
393
+ The `auth_pass` option specifies the SNMPv3 authentication passphrase or password.
394
+
395
+ [id="plugins-{type}s-{plugin}-auth_protocol"]
396
+ ===== `auth_protocol`
397
+
398
+ The `auth_protocol` option specifies the SNMPv3 authentication protocol or type
399
+
400
+ * Value can be any of: `md5`, `sha`, `sha2`, `hmac128sha224`, `hmac192sha256`, `hmac256sha384`, `hmac384sha512`
401
+ * Note that `sha2` and `hmac192sha256` are equivalent
402
+ * There is no default value for this setting
403
+
404
+ [id="plugins-{type}s-{plugin}-priv_pass"]
405
+ ===== `priv_pass`
406
+
407
+ * Value type is <<password,password>>
408
+ * There is no default value for this setting
409
+
410
+ The `priv_pass` option specifies the SNMPv3 encryption password.
411
+
412
+ [id="plugins-{type}s-{plugin}-priv_protocol"]
413
+ ===== `priv_protocol`
414
+
415
+ * Value can be any of: `des`, `3des`, `aes`, `aes128`, `aes192`, `aes256`
416
+ * Note that `aes` and `aes128` are equivalent
417
+ * There is no default value for this setting
418
+
419
+ The `priv_protocol` option specifies the SNMPv3 privacy/encryption protocol.
420
+
421
+ [id="plugins-{type}s-{plugin}-security_level"]
422
+ ===== `security_level`
423
+
424
+ * Value can be any of: `noAuthNoPriv`, `authNoPriv`, `authPriv`
425
+ * There is no default value for this setting
426
+
427
+ The `security_level` option specifies the SNMPv3 security level between
428
+ Authentication, No Privacy; Authentication, Privacy; or no Authentication, no Privacy.
429
+
430
+ [id="plugins-{type}s-{plugin}-security_name"]
431
+ ===== `security_name`
432
+
433
+ * Value type is <<string,string>>
434
+ * There is no default value for this setting
435
+
436
+ The `security_name` option specifies the SNMPv3 security name or user name.
437
+
438
+ [id="plugins-{type}s-{plugin}-examples"]
439
+ ==== Configuration examples
440
+
441
+ *Specifying SNMPv3 settings*
442
+
443
+ [source,ruby]
444
+ -----
445
+ input {
446
+ snmp {
447
+ hosts => [{host => "udp:127.0.0.1/161" version => "3"}]
448
+ get => ["1.3.6.1.2.1.1.1.0"]
449
+ security_name => "mySecurityName"
450
+ auth_protocol => "sha"
451
+ auth_pass => "ShaPassword"
452
+ priv_protocol => "aes"
453
+ priv_pass => "AesPasword"
454
+ security_level => "authPriv"
455
+ }
456
+ }
457
+
458
+ -----
459
+
460
+ *Using both `get` and `walk` in the same poll cycle for each host(s)*
461
+
462
+ [source,ruby]
463
+ -----
464
+ input {
465
+ snmp {
466
+ get => ["1.3.6.1.2.1.1.1.0", "1.3.6.1.2.1.1.3.0", "1.3.6.1.2.1.1.5.0"]
467
+ walk => ["1.3.6.1.2.1.1"]
468
+ hosts => [{host => "udp:127.0.0.1/161" community => "public"}]
469
+ }
470
+ }
471
+ -----
472
+
473
+ *Specifying all global options*
474
+
475
+ [source,ruby]
476
+ -----
477
+ input {
478
+ snmp {
479
+ get => ["1.3.6.1.2.1.1.1.0"]
480
+ hosts => [{host => "udp:127.0.0.1/161"}]
481
+
482
+ mib_paths => ["path/to/converted/mibfile.dic"]
483
+ oid_root_skip => 0
484
+ interval => 30
485
+ }
486
+ }
487
+ -----
488
+
489
+ ==== Polled host information
490
+
491
+ All the polled host information is stored in the event `@metadata`:
492
+
493
+ * `[@metadata][host_protocol]` : `udp` or `tcp`
494
+ * `[@metadata][host_address]` : host address for example `127.0.0.1`
495
+ * `[@metadata][host_port]` : host port (for example `161`)
496
+ * `[@metadata][host_community]` : community string for example `public`
497
+
498
+
499
+ By default, a `host` field is added to the event with the `[@metadata][host_address]` value.
500
+
501
+ [source,ruby]
502
+ -----
503
+ config :add_field, :validate => :hash, :default => { "host" => "%{[@metadata][host_address]}" }
504
+ -----
505
+
506
+ You can customize the format and content of the `host` field by specifying an alternate `add_field`.
507
+
508
+ Example
509
+ [source,ruby]
510
+ -----
511
+ input {
512
+ snmp {
513
+ get => ["1.3.6.1.2.1.1.1.0"]
514
+ hosts => [{host => "udp:127.0.0.1/161"}]
515
+
516
+ add_field => {host => "%{[@metadata][host_protocol]}:%{[@metadata][host_address]}/%{[@metadata][host_port]},%{[@metadata][host_community]}"}
517
+ }
518
+ }
519
+ -----
520
+
521
+ [id="plugins-{type}s-{plugin}-common-options"]
522
+ include::{include_path}/{type}.asciidoc[]
523
+
524
+ :no_codec!: