Hi,
Getting "cannot create trap2sink" error (for unix socket), during snmpd
initialization.
Following is the /etc/snmp/snmpd.conf file content.
489
490 master agentx
491 AgentXSocket tcp:localhost:705,/var/agentx/master
492
493
494 trap2sink /var/run/svtrapsink public
495 trap2sink 127.0.0.1 public
Jul 20 11:20:10 pts snmpd[22756]: NET-SNMP version 5.7.2 restarted
Jul 20 11:20:10 pts snmpd[22756]: Turning on AgentX master support.
Jul 20 11:20:10 pts snmpd[22756]: snmpd: create_trap_session:
Jul 20 11:20:10 pts snmpd[22756]: /etc/snmp/snmpd.conf: line 494: Error: cannot
create trap2sink: /var/run/svtrapsink
Jul 20 11:20:10 pts systemd: Reloaded Simple Network Management Protocol (SNMP)
Daemon..
Jul 20 11:20:10 pts snmpd[22756]: net-snmp: 1 error(s) in config file(s)
Jul 20 11:20:12 pts su: (to root) sandvine on none
Jul 20 11:20:12 pts su: (to root) sandvine on none
Jul 20 11:20:13 pts su: (to root) sandvine on none
Jul 20 11:20:13 pts su: (to root) sandvine on none
Jul 20 11:20:13 pts su: (to root) sandvine on none
There is no permission issue for this particular socket on few setups only and
there is no difference in installed software on both the setups.
And this issue we are seeing in only cloud environment.
[root@pts varun]# ls -ltr /var/run
lrwxrwxrwx. 1 root root 6 Jul 3 14:43 /var/run -> ../run
[root@pts varun]# ls -ltr /var/run/svtrapsink
srwxr-xr-x. 1 root root 0 Jul 20 11:20 /var/run/svtrapsink
[root@pts sandvine]# cat /etc/*-release
CentOS Linux release 7.3.1611 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.3.1611 (Core)
CentOS Linux release 7.3.1611 (Core)
I'm able to create unix socket with the same name. Tested it using simple unix
socket client/server application.
Any pointers to debug this? What could be the issue here?
Regards,
Varun
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders