I'd like to submit the following patch, which allows cactid to query Net-SNMP socket transport hostnames like: TCP:127.0.0.1 This allows an easier monitoring servers with multiplexed NICs and/or in a heavily firewalled network.
As I only have recent Net-SNMP versions lying around, I didn't test backward (in-)compatibility with UCD-SNMP, the defines should although catch such hostnames and log an error.
If an additional port is specified, the code truncates it and uses the original value provided in the host definition, i.e. : TCP:1.2.3.4:161 Any value other than TCP is discarded and UDP used instead on the IP/host. Only snmpd.c is changed, no additional tweaks in the includes required.
I hope this is useful to someone else too
[PATCH] TCP support for cactid using Net-SNMP
Moderators: Developers, Moderators
[PATCH] TCP support for cactid using Net-SNMP
- Attachments
-
- cactid-0.6.8a-tcp.txt
- Patch against cactid 0.8.6a to provide TCP:1.2.3.4 hostnames
- (1.67 KiB) Downloaded 317 times
Who is online
Users browsing this forum: No registered users and 1 guest