Robert Story
2015-07-16 01:23:11 UTC
On Fri, 29 May 2015 16:14:17 +0530 Ajit wrote:
AA> I have a application in C which receives snmp traps. There is a
AA> issue with v3 traps. Although I have done the necessary setup.
AA> I am able to receive v3 traps using the command "snmptrapd -Lo
AA> -n -f". But when I run my application , no traps are received.
AA>
AA> The reason may be that, my application is not reading a config
AA> file for snmp users and engineID unlike when I run snmptrapd
AA> which reads snmptrapd.conf.
[Note: CC/moving to coders list]
Hi Ajit,
Did you ever get this working? When you call init_snmp("myapp"),
the library should read myapp.conf and should generate an engineID.
You may need to set your persistent dir explicitly for the engineID
to be saved between runs (unless you're running as root). See
set_persistent_directory(const char *dir).
Robert
AA> I have a application in C which receives snmp traps. There is a
AA> issue with v3 traps. Although I have done the necessary setup.
AA> I am able to receive v3 traps using the command "snmptrapd -Lo
AA> -n -f". But when I run my application , no traps are received.
AA>
AA> The reason may be that, my application is not reading a config
AA> file for snmp users and engineID unlike when I run snmptrapd
AA> which reads snmptrapd.conf.
[Note: CC/moving to coders list]
Hi Ajit,
Did you ever get this working? When you call init_snmp("myapp"),
the library should read myapp.conf and should generate an engineID.
You may need to set your persistent dir explicitly for the engineID
to be saved between runs (unless you're running as root). See
set_persistent_directory(const char *dir).
Robert