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
?
custom SNMP arguments (to do snmpv3)
Moderators: Developers, Moderators
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
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
PHP SNMP v3 module
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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests