LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install SNMP trap Reciever (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-snmp-trap-reciever-4175462257/)

mula 05-16-2013 02:45 PM

How to install SNMP trap Reciever
 
Hi Folks,

I've been trying to install snmpd on my Ubuntu 12.04 all day however i can't suceed. I'm quite new to linux and what I would like to achieve is that the PC is able to recieve SNMP traps from inside the netowkr. I've installed snmpd and followed some guides found on google however i cant make it work.

Can someone please provide me with some more information or a simple how-to please ?

Regards
Mula

gdizzle 05-17-2013 12:24 AM

So you tried something like this:

http://www.ehow.com/how_8676050_setu...ap-ubuntu.html

Did you ? :

Code:

tail -f /var/log/syslog

What results do you have?

mula 05-17-2013 04:41 AM

Hi gdizzle,

Thanks for your reply. Yep i tried that, i've appended the log file and this is what i got :

/etc/snmp/snmptrapd.conf: line 18: Error: Blank line following TRAPDRUN=yes token.
net-snmp: 1 error(s) in config file(s)
/etc/snmp/snmptrapd.conf: line 18: Error: Blank line following TRAPDRUN=yes token.
net-snmp: 1 error(s) in config file(s)
NET-SNMP version 5.4.3 AgentX subagent connected
Warning: no access control information configured.
(Config search path: /etc/snmp:/usr/share/snmp:/usr/lib/snmp:/home/host1/.snmp)
This receiver will *NOT* accept any incoming notifications.
NET-SNMP version 5.4.3
No access configuration - dropping trap.
No access configuration - dropping trap.
No access configuration - dropping trap.
No access configuration - dropping trap.

So traps are being recieved infact i was able to see them in wireshark however got the error after TRAPDRUN , what i should write after it ? and also have the other error :/

gdizzle 05-18-2013 10:11 PM

Post your

Code:

/etc/snmp/snmptrapd.conf
Also checkout line 18 like the error specifies.


All times are GMT -5. The time now is 09:07 AM.