monitoring dhcp

C. Bensend benny at bennyvision.com
Tue Jan 24 15:47:25 CET 2012


> I don't think you'll have much trouble getting this via SNMP. It is
> defined in the MIB on a per-scope basis, suggest you go a snmpwalk on
> the OID I gave earlier and see what you get.
>
> MIB excerpt:
>
>            scopeTable OBJECT-TYPE
>                SYNTAX  SEQUENCE OF ScopeTableEntry
>                ACCESS  read-only
>                STATUS  mandatory
>                DESCRIPTION
>                        "A list of subnets maintained by the server"
>                ::= { dhcpScope 1 }
>
>            scopeTableEntry  OBJECT-TYPE
>                SYNTAX  ScopeTableEntry
>                ACCESS  read-only
>                STATUS  mandatory
>                DESCRIPTION
> 			"This is the row corresponding to a subnet"
> 	      INDEX   { subnetAdd }
>                ::= { scopeTable 1 }
>
> 	  ScopeTableEntry ::= SEQUENCE {
> 		subnetAdd
> 			IpAddress,
>
> 		noAddInUse
> 			Counter,
>
> 		noAddFree
> 			Counter,
>
> 		noPendingOffers
> 			Counter
>
> 		}
>            subnetAdd  OBJECT-TYPE
>                SYNTAX  IpAddress
>                ACCESS  read-only
>                STATUS  mandatory
>                DESCRIPTION
> 			"This is the subnet address "
>                ::= { scopeTableEntry 1 }
>
>
>            noAddInUse  OBJECT-TYPE
>      	  SYNTAX  Counter
>      	  ACCESS  read-only
>      	  STATUS  mandatory
>            DESCRIPTION
> 		   "This is the no. of addresses in use"
>      		::= { scopeTableEntry 2 }
>
>            noAddFree  OBJECT-TYPE
>      	  SYNTAX  Counter
>      	  ACCESS  read-only
>      	  STATUS  mandatory
>            DESCRIPTION
> 		   "This is the no. of addresses that are free "
>      		::= { scopeTableEntry 3 }
>
>            noPendingOffers  OBJECT-TYPE
>      	  SYNTAX  Counter
>      	  ACCESS  read-only
>      	  STATUS  mandatory
>            DESCRIPTION
> 		   "This is the no. of addresses that are currently in the offer
> 		   state"
>      		::= { scopeTableEntry 4 }
>
>            END

Thank you, Giles!  This doesn't help me (I don't have SNMP enabled
on my hosts and don't plan on doing so), but it's good to know
for the future...

That's certainly better than what is exposed elsewhere...

Benny


-- 
"Cats land on their feet. Toast lands peanut butter side down. A cat
with toast strapped to its back will hover above the ground in a state
of quantum indecision."           -- Unknown


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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