custom SNMP arguments (to do snmpv3)

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
valen
Posts: 11
Joined: Fri Oct 11, 2002 8:44 am

custom SNMP arguments (to do snmpv3)

Post by valen »

I'm trying to use cacti to monitor a server that's in a public co-lo. I don't have a vpn to
it, so i'm using snmpv3 to access it.

For instance:

snmpget -v 3 -u snmpuser -l authPriv -a MD5 -A secret co_lo_host sysUpTime.0

gets the data for me. How do I get cacti/rrdtool to use snmp like that, instead of

snmpget co_lo_host secret

?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I can think of two options for you. The first (and better) option is to following the instructions and apply the patch in this post:

http://www.raxnet.net/board/viewtopic.php?t=770

It desribes how to add net-snmp 5.x support to cacti, this is really a good idea since you are using SNMP v3. The author added an 'SNMP Arguments' field to cacti's settings for this sort of thing.

Your other option is to modify the source in 'include/snmp_functions.php'. That is basically what the net-snmp patch is doing though, so that will save you time.

-Ian
valen
Posts: 11
Joined: Fri Oct 11, 2002 8:44 am

PHP SNMP v3 module

Post by valen »

Rax, I installed the php-snmp module, and it sped up my system hugely.

However, as you pointed out, that the patch for v3 support only works when you are using snmpgets.

http://www.simpleweb.org/software/packages/php-snmp-v3/

has a v3-aware php module...any chance you could look into making use of it, for cacti's SNMPv3 support ?

I'll try to hack my-site specific stuff in in the meantime.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests