Ad Widget

Collapse

error when configuring traps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xyue
    Member
    • Jan 2016
    • 93

    #1

    error when configuring traps

    Hi guys,

    I am configuring traps by following below link.
    Join the friendly and open Zabbix community on our forums and social media platforms.


    when i try to run below command, i have error message as shown below.
    Command
    snmptrap -v 1 -c public 127.0.0.1 '.1.3.6.1.6.3.1.1.5.4' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.4 s "eth0"

    Error Message
    No log handling enabled - turning on stderr logging
    Cannot rename /var/lib/net-snmp/snmpapp.conf to /var/lib/net-snmp/snmpapp.0.conf
    Cannot unlink /var/lib/net-snmp/snmpapp.conf
    read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
    read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
    read_config_store open failure on /var/lib/net-snmp/snmpapp.conf

    I check the location /var/lib/net-snmp/ and notice there is no snmpapp.conf.
    Does anyone encounter this before ? If yes, kindly advise what cause this message.

    Thank you very much.
  • Firm
    Senior Member
    • Dec 2009
    • 342

    #2
    Check write permissions on /var/lib/net-snmp.

    Comment

    • Xyue
      Member
      • Jan 2016
      • 93

      #3
      Hi,

      Thanks, just check every file that are related and notice most of them are belong to other owner and permission was not set. Has change the owner and permission and works after that.

      Thank you very much for your help

      Comment

      • Xyue
        Member
        • Jan 2016
        • 93

        #4
        Hi,

        I have some problem and required your help again.

        Now the snmptraps works and it was able to save the file to the log file.

        /etc/zabbix/zabbix_server.conf:
        #SNMP Trapper
        StartSNMPTrapper=1
        SNMPTrapperFile=/var/log/zabbix/zabbin_traps.log

        /etc/snmp/snmptrapd.conf
        authCommunity log,execute zabbix
        perl do "/usr/bin/zabbix_trap_receiver.pl";

        I would like to show the traps on the web interface and I found below document to let snmpd work with snmptt

        Join the friendly and open Zabbix community on our forums and social media platforms.


        After i install snmptt, i was unable to find the snmptt.conf.
        I'm not sure why the snmptt.conf is not in my directory

        Can anyone advise me how to deal with this problem ?
        Thank you very much.

        Comment

        Working...