help with snmp =D

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 snmp =D

Post by benhank »

Hey guys I need a little help constructing a check command usingg snmp v3. I was given a laundry list of oids to monitor on the target system(s) included in the attachment.
I am trying to poll an Ubuntu Vidyo server.
When I run the following from the cli

Code: Select all

snmpwalk -u Nagios7 -A passscrubbed -a SHA -l authnoPriv 172.30.1.225 -v3
I get

Code: Select all

SNMPv2-MIB::sysDescr.0 = STRING: Linux vidyogw1 3.13.0-62-generic #102-Ubuntu SMP Tue Aug 11 14:29:36 UTC 2015 x86_64
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (232655361) 26 days, 22:15:53.6                                        1
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /opt/vidyo/conf/snmp/snmpd.conf)
SNMPv2-MIB::sysName.0 = STRING: vidyogw1
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (configure /opt/vidyo/conf/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
 
and more. So I know I can poll successfully.

how do I create a command that will:
1. Properly connect to the server with the credentials supplied
2. Since I have so many items to poll I figure that I should iether
A. create a few checks that will break up the list using the 8 $ARG$ fields in the ccm
or
B. create a check for each oid seperately and pop them into a template
Iether way I dont know how to do anyof this and I welcome any help you guys can give me =D
Thanks in advance!
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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: help with snmp =D

Post by avandemore »

Custom check development is not supported however I can give you a few pointers.

https://mathias-kettner.de/checkmk_localchecks.html
https://exchange.nagios.org/directory/T ... pt/details
http://nagios.manubulon.com/snmp_storage.html

1. check can have credentials hardcoded or passed via arguments.
2. B in general is probably a better route but it depends.

We do offer custom development for a fee, but there are lots of examples on the Internet. Depending on your resources you may want to try there first. If you are interested in custom development, please contact [email protected]
Previous Nagios employee
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: help with snmp =D

Post by benhank »

Hey thanks man! those links are far better than what I have found so far! appreciate it!
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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: help with snmp =D

Post by avandemore »

Glad it helped. Important points are basically the check return code and if perf data is gathered. Are we good to lock this thread?
Previous Nagios employee
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: help with snmp =D

Post by benhank »

yeah I guess so. the hard part is properly constructing the command to poll the server. ill figure it out. lock er up bro! and happy thanksgiving!
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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: help with snmp =D

Post by avandemore »

Methodology can vary a lot depending on things, the iReasoning MIB browser is recommended by some Nagios users.

Enjoy your Thanksgiving as well.
Previous Nagios employee
Locked