rayholtz / PublicRepo

A Public repository where I can put scripts and things that I want other people to see
1 stars 2 forks source link

error on snmp #1

Closed fromanm1 closed 3 years ago

fromanm1 commented 4 years ago

Im using a tipplite smartin 3000vs

snmp works fine. but when I run the script I get this.

perl check_tlups_battstatus.pl -H MY_IP -C public ERROR: netsnmp : Received noSuchName(2) error-status at error-index 1.

also the oid aims to .1.3.6.1.4.1.850.1.1.3.1.3.1.1.1.1.1 but it doesn't exist. I guess the right one is .1.3.6.1.4.1.850.10.2.3.2.1.5.1 (from snmpwalk)

rayholtz commented 4 years ago

I'm sorry its not working for you, but thank you for trying it out. You might need to change the oid depending on your specific version of UPS/webcard. This is what worked for me in my environment then. Unfortunately, I don't have access to Nagios or TrippLite UPSes anymore since I changed jobs, so I can't test this.

The error might be because of the difference in oid. Try to change the OID within the perl code, and see if that helps you.