snmptrapd is not receiving generated traps in centos 5.7

If it doesn't fit in another category, ask it here.
Post Reply
sharath
Posts: 3
Joined: 2014/04/18 12:33:18

snmptrapd is not receiving generated traps in centos 5.7

Post by sharath » 2014/04/22 12:46:32

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.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: snmptrapd is not receiving generated traps in centos 5.7

Post by gerald_clark » 2014/04/22 12:50:58

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.

User avatar
TrevorH
Forum Moderator
Posts: 26915
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: snmptrapd is not receiving generated traps in centos 5.7

Post by TrevorH » 2014/04/22 12:57:41

The CentOS snmptrapd is supplied by net-snmp and resides in /usr/sbin/snmptrapd
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

sharath
Posts: 3
Joined: 2014/04/18 12:33:18

Re: snmptrapd is not receiving generated traps in centos 5.7

Post by sharath » 2014/04/22 13:15:36

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.

Post Reply

Return to “CentOS 5 - Miscellaneous Questions”