apc ups snmp check question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Re: apc ups snmp check question

Post 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.
Grumpy Olde IT Guy
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: apc ups snmp check question

Post 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.
You do not have the required permissions to view the files attached to this post.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Re: apc ups snmp check question

Post by rseiwert »

I'm looking for me. Think I found it but thanks a lot for posting yours.

https://www.monitoringexchange.org/inve ... monitoring
Grumpy Olde IT Guy
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: apc ups snmp check question

Post by BanditBBS »

rseiwert wrote:I'm looking for me.
I don't know why, but that really made me LOL.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: apc ups snmp check question

Post 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?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: apc ups snmp check question

Post by benhank »

WHOOOOOOooooooOOOOOO0O0O0O0O0O0O0O0O0O0O0O hoooOOOO0000!
its alive! it works!

THANK YOU GUYS!
F5PM9I5F4ULN87C.MEDIUM.jpg
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: apc ups snmp check question

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: apc ups snmp check question

Post 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.
Last edited by benhank on Tue Apr 22, 2014 4:55 pm, edited 1 time in total.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: apc ups snmp check question

Post by slansing »

I mean you can try using "andysamtrevorspenserludmilscott." :lol:
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: apc ups snmp check question

Post by benhank »

oh and the type of pizza of course
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked