RE: netsnmp && self_monitoring
"Aggarwal , Ajay" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <6FF58CD33A029D458692432F07B85AB7063437DB@newmail.crossbeamsys.com> |
Does anybody know if this change went into both ucd-snmp and net-snmp? I am looking for specific release/version it was added both for 4.x and 5.x, since I use both. Thanks for your help in advance. -Ajay -----Original Message----- From: Dave Shield [mailto:[email protected]] Sent: Wednesday, April 14, 2004 5:31 AM To: Roderick Groesbeek Cc: [email protected] Subject: Re: netsnmp && self_monitoring > I was wondering how self_monitoring is working on net-snmp. > Is it possible to just monitor 1 OID instead of a whole table? It would certainly be possible to do this by setting up the 'mteTriggerTable' entries manually (i.e. via SNMP SET requests). But a quick look at the code seems to indicate that this isn't currently possible using the "monitor" directive, which hardcodes a wild-card style monitoring entry. Try the following patch: --- mibgroup/disman/mteTriggerTable.c.cln 2004-04-12 11:26:55.000000000 +0100 +++ mibgroup/disman/mteTriggerTable.c 2004-04-12 11:21:28.000000000 +0100 @@ -407,12 +407,6 @@ */ StorageNew->mteTriggerTest[0] = MTETRIGGERTEST_THRESHOLD; break; + case 'i': + /* + * Single instance + */ + StorageNew->mteTriggerValueIDWildcard = MTETRIGGERVALUEIDWILDCARD_FALSE; + break; case 'r': if (cp) { cp = copy_nword(cp, buf, sizeof(buf)); That should allow you to specify a single instance using a monitor entry of the form: monitor -i -r 1 -u me -o dskPath.1 -o diskAvail.1 "root" .1.3.6.1.4.1.2021.9.1.7.1 < 1000 Obviously, that option isn't supported in any of the released versions, but I'll add it to the CVS tree ready for 5.2. [Qn: What do people feel about me adding this to the 5.1.x line?] Dave ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users