help with check snmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

help with check snmp

Post by benhank »

I am trying to use check_snmp to poll an apcups device.
I have loaded the powernet mib onto my server.
I can use the ireasoning mib browser to communicate with the sdevice an pull its oids.

but when I try to use check_snmp

Code: Select all

$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o $ARG2$
Capture.PNG
When I use the run check command to test, I get:

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 172.22.193.70 -C public -o .1.3.6.1.4.1.318.1.1.12.1.1
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 172.22.193.70:161  .1.3.6.1.4.1.318.1.1.12.1.1
what do I need to do tho get this to work?
Thanks in advance!
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: help with check snmp

Post by scottwilkerson »

The fact that you are getting

Code: Select all

No data received from host
Tells me either the host isn't listening for SNMP request, OR public isn't a valid community string on the APC, OR you need to be specific on the version of SNMP your unit is listening on

Code: Select all

 -P, --protocol=[1|2c|3]
    SNMP protocol version
, Or lastly, it doesn't have that OID
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: help with check snmp

Post by benhank »

ok thanks ill check what you suggested and let you know how it goes! wooOO000!
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: help with check snmp

Post by benhank »

so uh (apologies its been awhile) how would that command look when I add the -p parameter?
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: help with check snmp

Post by scottwilkerson »

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 172.22.193.70 -C public -P 2c -o .1.3.6.1.4.1.318.1.1.12.1.1
This would be for 2c. Note: it is a capital P
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: help with check snmp

Post by benhank »

thanks man. like I said its been a while.
wait a minute! Hey Scot! didnt see it was you!
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: help with check snmp

Post by scottwilkerson »

benhank wrote:thanks man. like I said its been a while.
wait a minute! Hey Scot! didnt see it was you!
Good to see you still around! I'm making a forum comeback :lol:

Can we lock this up Ben?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: help with check snmp

Post by benhank »

yes sir you can
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: help with check snmp

Post by scottwilkerson »

Sounds good... Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked