Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2016-05-17 15:26:59 +02:00
# SNMP Proxy
2019-09-09 05:48:35 -05:00
If you have machines that you want to monitor but are not reachable
directly, you can use [SNMPD
Proxy](http://www.net-snmp.org/wiki/index.php/Snmpd_proxy). This will
use the reachable SNMPD to proxy requests to the unreachable SNMPD.
2016-05-17 15:26:59 +02:00
## Example configuration
2019-09-09 05:48:35 -05:00
We want to poll 'unreachable.example.com' via
'hereweare.example.com'. Use the following config:
On 'hereweare.example.com':
2016-05-17 15:26:59 +02:00
```
view all included .1
com2sec -Cn ctx_unreachable readonly <poller-ip> unreachable
access MyROGroup ctx_unreachable any noauth prefix all none none
proxy -Cn ctx_unreachable -v 2c -c private unreachable.example.com .1.3
```
2019-09-09 05:48:35 -05:00
On 'unreachable.example.com':
2016-05-17 15:26:59 +02:00
```
view all included .1 80
com2sec readonly <hereweare.example.com ip address> private
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
access MyROGroup "" any noauth exact all none none
```
2019-09-09 05:48:35 -05:00
You can now poll community 'private' on
'unreachable.example.com' via community 'unreachable' on host
'hereweare.example.com'. Please note that requests on
'unreachable.example.com' will be coming from
'hereweare.example.com', not your poller.