SNMP Checks

Marc Powell marc at ena.com
Thu Aug 13 22:07:28 CEST 2009


On Aug 13, 2009, at 2:42 PM, Joseph L. Casale wrote:

> Is there any way to get an snmp check to query multiple oids

If you're talking about generic SNMP oids, certainly you can create a  
custom plugin to do this pretty easily. I've done it for some router  
checks; hunting for an interface description with a particular tag and  
then probing several other OIDs specific to that interface number.

check_snmp in the plugins package has the ability to check multiple  
OID's in one call but I believe that they all need to be of the same  
type. I'm not aware of any other general snmp plugins that allow you  
to do that but my memory is getting long here as I don't usually need  
much beyond the capabilities of check_snmp. It also sounds like you  
may be looking for snmpwalk capabilities as well. That a bit of a  
different beast than GETs of specific OID's.

> like.1.3.6.1.4.1.2021.9 and return the *.7 for my seventh disc, maybe
> cat a few values together actually so it queries for the name, mount
> point, free space etc in one check so it occupies only one line on
> the host screen?

For disks in particular, this might be useful to you -- http://nagios.manubulon.com/snmp_storage.html

--
Marc


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list