execute_format via config rather than source compile?
Gareth Llewellyn <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAM8M=kjh_Lp8usvpMcjiRcO2V5GuTeUWVuGi9kp3jEoKESJpww@mail.gmail.com> |
Hello, I'm experimenting with classifying traps by the community string but so far I haven't been able to work out a way to use the format specifications to get the community as part of the payload passed to the script. Looking at the source I can see on line 784 of snmptrapd_handlers.c the following format is specified; #define EXECUTE_FORMAT "%B\n%b\n%V\n%v\n" I've confirmed that if I suffix %P to that I get the community string as part of the payload to the script but the comment within the function source indicates that a custom format string can be registered for this trap. Try as I might I can't find how to pass a custom format string to an execute script in either the command line options or the snmptrapd.conf and I'd rather not have to custom compile just for one format variable. Could someone point me in the right direction / docs please? Gareth ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ 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