Re: snmptrap Tru64 V4.0F

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/2/27 Hoyle, Steven <[email protected]>:
> I can also send a trap as below:
> # snmptrap –c public xx.xx.xx.xx “” “” 6 99 “”
> And receive the Specific Trap on the monitoring host

Good.
Altough that particular command does assume you have
defined an enterprise-specific trap #99.

> but when I try to add a message at the end it doesn’t work...
> all I want is:
> # snmptrap –c public xx.xx.xx.xx “” “” “” “/ is 98% full please contact another” “”

SNMP notifications don't work that way.

All information is transported as "varbinds" - an (OID,type,value) triplet.
You can't simply shove in a text string, and expect the trap receiver
to understand what to do with it.

   You need to add a suitable varbind to the end of the trap command:

# snmptrap –c public xx.xx.xx.xx “” “” 6 99 “”
               someOID s "/ is 98% full please contact another”

(where you have defined the someOID object in an appropriate MIB)


> Hopefully there is an easy solution and any assistance would be appreciated.

The easy solution is probably to use the DISMAN-EVENT-MIB, which was
designed to handle just this sort of monitoring, and includes a dedicated
notification for reporting a threshold being exceeded.

See 'snmpd.conf(5)' under "DisMan Event MIB"

Dave

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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.