Created
June 18, 2019 08:18
-
-
Save sujunmin/472d37e8cd82a32ecc0a6503e4580f9b to your computer and use it in GitHub Desktop.
simple snmpd proxy conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A -> B -> C | |
# -> D | |
# -> E | |
# -> ... | |
# ContextName 可以都用一樣的,也可以分開,記得對應就可以 | |
# Ref: http://www.net-snmp.org/wiki/index.php/Snmpd_proxy | |
# https://github.com/librenms/librenms/blob/master/doc/Extensions/SNMP-Proxy.md | |
# A 可以透過對 B Query 以自取的 Community Name 就能 Query 到 C/D/E... 其他機器 | |
view allview included .1 | |
group notConfigGroup v2c notConfigUser | |
com2sec -Cn <自取的 ContextName> notConfigUser default <從 B 要 Query C 自取的 Community Name> | |
com2sec -Cn <自取的 ContextName> notConfigUser default <從 B 要 Query D 自取的 Community Name> | |
com2sec -Cn <自取的 ContextName> notConfigUser default <從 B 要 Query E 自取的 Community Name> | |
... | |
access notConfigGroup <自取的 ContextName,記得對應> any noauth exact allview none none | |
... | |
proxy -Cn <自取的 ContextName,記得對應> -v 2c -c <原來 B 向 C Query 的 Community Name> <C 的 IP/Hostname> .1.3 | |
proxy -Cn <自取的 ContextName,記得對應> -v 2c -c <原來 B 向 D Query 的 Community Name> <D 的 IP/Hostname> .1.3 | |
proxy -Cn <自取的 ContextName,記得對應> -v 2c -c <原來 B 向 E Query 的 Community Name> <E 的 IP/Hostname> .1.3 | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment