Re: snmp.conf syntax

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/8/11 Michal Filka <[email protected]>:
> monitor -e <notif_event>  -r 60 "xxxx" myMIB::Value > 0
> monitor -e <notif_event>  -r 60 "xxxx" != myMIB::Value

Is the token "xxxx" the same for both lines?

>From snmpd.conf(5):

       monitor [OPTIONS] NAME EXPRESSION
              defines  a  MIB  object to monitor....
              .....  NAME is an administrative name for this
              expression, and is used for indexing  the  mteTriggerTable  (and
              related  tables).

Because the name is used as an index, then it must be unique.
If you use the same name for both lines, then adding the second entry
to the monitoring table will fail, and hence it will never be used.

Dave

------------------------------------------------------------------------------
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
_______________________________________________
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.