Hi Niels,

On March 11, 2014 02:07:02 AM IST, Niels Baggesen wrote:
> Den 03-03-2014 06:30, Mohan Gorai skrev:
>> But the actual output is like below.
>>> Host: ****hostname***  (UDP: [xx.xx.xx.xx]:xxx)
>>>     DISMAN-EVENT-MIB::sysUpTimeInstance  13:0:54:35.94
>>>               SNMPv2-MIB::snmpTrapOID.0
>>> SNMPv2-SMI::enterprises.42.99999.0.99
>>>      SNMPv2-SMI::enterprises.42.99999.1  "TestTrap"
>>>   SNMP-COMMUNITY-MIB::snmpTrapAddress.0  xx.xx.xx.xx
>>> SNMP-COMMUNITY-MIB::snmpTrapCommunity.0  "public"
>>>        SNMPv2-MIB::snmpTrapEnterprise.0
>>> SNMPv2-SMI::enterprises.42.99999
>
> This is actually the contents of a mail sent by traptoemail. The data
> passed to traptoemail would have been
>
> ****hostname***
> UDP: [xx.xx.xx.xx]:xxx
> DISMAN-EVENT-MIB::sysUpTimeInstance  13:0:54:35.94
> SNMPv2-MIB::snmpTrapOID.0 SNMPv2-SMI::enterprises.42.99999.0.99
> et.c.
>
> The format is configurable, using the "format execute string" config
> directive, the default being "format execute %B\n%b\n%V\n%v\n" (but if
> you change that, you should probably use something else than
> traptoemail to process it)

Oh, ok. But as this is the default behavior, we might as well have that 
documented.

>
> But there seems to need some docs for the format directive :-(

hmm.

>
> /Niels
>

Thanks!
-- Mohan.

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to