[PATCH] TCP support for cactid using Net-SNMP

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
steve
Posts: 1
Joined: Thu Oct 07, 2004 8:54 am

[PATCH] TCP support for cactid using Net-SNMP

Post by steve »

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
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
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Hi Steve,

which net-snmp is supporting your patch ?

Do have also tested this script with Cacti 0.8.6.b ?


Pumpi
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest