Page 4 of 5
Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 11:15 am
by rseiwert
benhank wrote:the end result I am lookin for is to have the results that are displayed show in regular english instead nof the oid and the code number.
whould you happen to have that "health plugin available?
oh here is the one you cant find.
Talking about check_ups_apc.pl here.
Looking for the other one BBS mentioned.
That one is not the one he mentions. I tried it out but it errors out on my older units. The error is "WARNING - SNMP OID OUTPUT CURRENT does not exist". Searching the code linked it turns out this value is neither tested nor included in performance counters. Commenting out the OID does not exit check for Current and editing the hardcoded temp tests made it useful but it not the same one BBS mentioned.
Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 11:22 am
by BanditBBS
rseiwert wrote:benhank wrote:the end result I am lookin for is to have the results that are displayed show in regular english instead nof the oid and the code number.
whould you happen to have that "health plugin available?
oh here is the one you cant find.
Talking about check_ups_apc.pl here.
Looking for the other one BBS mentioned.
That one is not the one he mentions. I tried it out but it errors out on my older units. The error is "WARNING - SNMP OID OUTPUT CURRENT does not exist". Searching the code linked it turns out this value is neither tested nor included in performance counters. Commenting out the OID does not exit check for Current and editing the hardcoded temp tests made it useful but it not the same one BBS mentioned.
This is the one I was referring to:
check_snmp_apcups.pl
Ben already has it and tested it. His bosses do not want all the extra information when doing the health check unfortunately, or this would work great for him.
Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 11:24 am
by rseiwert
I'm looking for me. Think I found it but thanks a lot for posting yours.
https://www.monitoringexchange.org/inve ... monitoring
Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 11:26 am
by BanditBBS
rseiwert wrote:I'm looking for me.
I don't know why, but that really made me LOL.
Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 2:27 pm
by benhank
I nstand befor you. Hands crampted, eyes bloodshot, i just ate my last sunflower seed, glaucoma actin up and no help for it until I get home and hit up one of the sons,i have tried but cant figure this the heck out...
@ the command line:
Code: Select all
snmpwalk -v2c -c public 172.22.77.4 .1.3.6.1.4.1.318.1.1.1.3.2.5.0 -m +APC-MIB -Oq
APC-MIB::upsAdvInputLineFailCause.0 smallMomentarySpike
[root@Lkennagiosp02 ~]#
FAntastic!
after I creat the command :
Code: Select all
$USER1$/check_snmp -H $HOSTADDRESS$ -C -o . .1.3.6.1.4.1.318.1.1.1.3.2.5.0 -m +APC-MIB -Oq
\nagios says and I quote:
Code: Select all
MMAND: /usr/local/nagios/libexec/check_snmp -H 172.22.77.4 -C -o . .1.3.6.1.4.1.318.1.1.1.3.2.5.0 -m +APC-MIB -Oq
OUTPUT: Usage:check_snmp -H -o [-w warn_range] [-c crit_range]
[-C community] [-s string] [-r regex] [-R regexi] [-t timeout] [-e retries]
[-l label] [-u units] [-p port-number] [-d delimiter] [-D output-delimiter]
[-m miblist] [-P snmp version] [-L seclevel] [-U secname] [-a authproto]
[-A authpasswd] [-X privpasswd]
What am I missing here?
Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 2:56 pm
by benhank
WHOOOOOOooooooOOOOOO0O0O0O0O0O0O0O0O0O0O0O hoooOOOO0000!
its alive! it works!
THANK YOU GUYS!
F5PM9I5F4ULN87C.MEDIUM.jpg
Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 3:30 pm
by abrist
Awesome work guys!
Hey Ben, are you coming to the world conference this fall?
Do we have to send a permission slip for the field trip to your boss?
Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 4:50 pm
by benhank
we are trying to figure out how to use all of your names for the discounts =D
but seriously I hope so.
you can lock it up
WAIT.
the Command that I used was
Code: Select all
/usr/local/nagios/libexec/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.4.1.318.1.1.1.3.2.5.0 -m +APC-MIB
\
anyone of yall who sends me thier addy (pm)
i'm gonna surprise you with pizza in the next two weeks.
Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 4:53 pm
by slansing
I mean you can try using "andysamtrevorspenserludmilscott."

Re: apc ups snmp check question
Posted: Tue Apr 22, 2014 4:56 pm
by benhank
oh and the type of pizza of course