Page 1 of 1

snmptrapd is not receiving generated traps in centos 5.7

Posted: 2014/04/22 12:46:32
by sharath
Hi,

I tried to run snmptrapd from my customized service in centos 5.7 machine... the command used to start snmptrapd is ....

/opt/snmpdemo/bin/snmptrapd -Le -c /opt/snmpdemo/etc/snmp/snmptrapd.conf -n -C -t -m ""

And tried to trigger a trap... Trap got triggered but snmptrapd didn't receive it.... All the libraries are linked correctly....

is my command correct ? is snmptrapd got started ? or is there any other issue ?

Regards,
Sharath.

Re: snmptrapd is not receiving generated traps in centos 5.7

Posted: 2014/04/22 12:50:58
by gerald_clark
1. 5.7 is old, insecure, and not supported. You should update to 5.10
2. CentOS installs nothing in /opt. When you have problems with programs not supplied by CentOS you should go to their source for help.

Re: snmptrapd is not receiving generated traps in centos 5.7

Posted: 2014/04/22 12:57:41
by TrevorH
The CentOS snmptrapd is supplied by net-snmp and resides in /usr/sbin/snmptrapd

Re: snmptrapd is not receiving generated traps in centos 5.7

Posted: 2014/04/22 13:15:36
by sharath
hi,

tks for ur reply...

i am not directly using snmptrap in centos... i have installed a customized package(rpm) in which snmp is also included... and when the rpm is installed it automatically creates a folder in /opt and copies all the items there including all the snmp related files and my .ini file starts the snmptrap using the command mentioned earlier...

Regards,
sharath.