riskersen / Monitoring

Monitoring plugins wich are Nagios/icinga compatible
65 stars 113 forks source link

check_ups_apc.pl support SNMP ver 3 #2

Closed SuperGoodMike closed 9 years ago

SuperGoodMike commented 9 years ago

Thank you Oliver for this ups check script, work like a charm. I was wondering if you have check_ups_apc.pl that supports SNMP ver 3 ?

riskersen commented 9 years ago

Hi Mike, by now there is no v3 support, maybe you take a look? :)

If not ill have a look in January

Greetings Oliver Am 19.12.2014 14:30 schrieb "SuperGoodMike" notifications@github.com:

Thank you Oliver for this ups check script, work like a charm. I was wondering if you have check_ups_apc.pl that supports SNMP ver 3 ?

Reply to this email directly or view it on GitHub https://github.com/riskersen/Monitoring/issues/2.

riskersen commented 9 years ago

Hi Mike,

would you mind to test snmp v3 support? Usage has to be updated.

Commit: https://github.com/riskersen/Monitoring/commit/600dae27d91c700343ec7d7d6f0edb5ca940735f

Very important when using APC Management cards and SNMPv3: These cards seem to have problems with time synchronization (section 4 of RFC 3414) so you have to patch your Net::SNMP Module (Net/SNMP.pm) at line 2620:

if (($this->{_security}->discovered()) &&

($this->{_error} =~ /usmStatsNotInTimeWindows/))

if ($this->{_security}->discovered())

Settings (at APC Web-Management): Administration -> Network -> SNMPv3

Sample usage (switches are like snmpwalk!): ./check_ups_apc.pl -H 10.1.1.1 -v 3 -U username -a sha -A thisisyourauthstring -x aes -X thisisyourprivstring

-a and -x switches are optional and default to sha/aes

SuperGoodMike commented 9 years ago

Thank you !