On Fri, 2005-06-17 at 23:19, George, Geo wrote:
> I need to monitor a user selected SNMP OID periodically.

Have you considered using the DISMAN-EVENT-MIB, which is
specifically designed for this very purpose?
  It's already implemented in the Net-SNMP agent.  See the
snmpd.conf(5) man page, under
      DISMAN-EVENT-MIB SUPPORT

>                                                 So when the
> user inputs an OID ....... I need to check whether the
> OID is valid (i.e. whether the agent can read it).

How would you handle monitoring an initially valid OID that was
subsequently deleted?   Or creating the value being monitored as
part of the same request as the monitoring entry?

The DisMan approach is to allow the creation of a monitoring entry
for such a "missing" value, but have a suitable status column
in the table.   That provides a somewhat more flexible mechanism,
and removes this sort of validation problem.

Dave



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to