Re: option -i for monitor?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Mon, 2005-10-17 at 10:18 +0200, Loic Domaigne wrote:
> Enclosed the entries in the mteEventTable and
> mteNotificationEventTable as you asked.


> > What's the output from
> > 
> > 	snmpwalk   mteEventTable
> 
> Before killing prg2: 
> 
> DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_mteTriggerFailure' = STRING: 
> DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_mteTriggerFalling' = STRING: 
> DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_mteTriggerFired' = STRING: 
> DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_mteTriggerRising' = STRING: 
		[SNIP]

So the standard entries have been registered properly - good.


> > 	snmpwalk   mteNotificationEventTable
> 
> before killing prg2:
> 
> mteNotificationEventTable: Unknown Object Identifier
>       (Sub-id not found: (top) -> mteNotificationEventTable)

<Sigh>
My mistake - that should be "mteEventNotificationTable".
Sorry about that.

It would also be useful to see a walk of the mteTriggerBooleanEvent
and mteTriggerBooleanEventOwner objects.  It looks suspiciously as
if the events are set up OK, but the monitor isn't actually looking
for them properly.


Hmmmm....  I wonder....
Please try the following patch:

--- mteTriggerConf.c    7 Oct 2005 14:14:43 -0000       1.10
+++ mteTriggerConf.c    17 Oct 2005 08:50:26 -0000
@@ -176,6 +176,7 @@
      */
     memset( buf,   0, sizeof(buf));
     memset( tname, 0, sizeof(tname));
+    memset( ename, 0, sizeof(ename));
     for (cp = copy_nword(line, buf, SPRINT_MAX_LEN);
          ;
          cp = copy_nword(cp,   buf, SPRINT_MAX_LEN)) {


[applied to agent/mibgroup/disman/event/mteTriggerConf.c]

Does that make any difference?

Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.