snmp サービスが動作する Debian 8 でサーバーを実行しています。ただし、snmpd のステータスを取得すると、実行中だがエラーが発生していると表示されます。
service snmpd status
:
snmpd[30734]: Cannot statfs /sys/kernel/security
: Permission denied
snmpd[30734]: Cannot statfs /sys/kernel/config
: Permission denied
このサーバーを Zabbix で監視するために必要です
アップデート:
/etc/default/snmpd の SNMPDOTS:
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
更新:これは私が得ているエラーメッセージです(完全):
root@ns3726041:~# service snmpd status
● snmpd.service - LSB: SNMP agents
Loaded: loaded (/etc/init.d/snmpd)
Active: active (running) since Wed 2017-09-20 16:58:03 CEST; 18min ago
Process: 9221 ExecStop=/etc/init.d/snmpd stop (code=exited, status=0/SUCCESS)
Process: 9227 ExecStart=/etc/init.d/snmpd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/snmpd.service
└─9233 /usr/sbin/snmpd -Ls3d -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf
Sep 20 17:16:40 ns3726041.ip-149-202-220.eu snmpd[9233]: Cannot statfs /sys/kernel/config
: Permission denied
Sep 20 17:16:40 ns3726041.ip-149-202-220.eu snmpd[9233]: Connection from UDP: [10.0.1.30]:64202->[11.11.150.101]:161
Sep 20 17:16:40 ns3726041.ip-149-202-220.eu snmpd[9233]: Connection from UDP: [10.0.1.30]:64203->[11.11.150.101]:161
Sep 20 17:16:40 ns3726041.ip-149-202-220.eu snmpd[9233]: Connection from UDP: [10.0.1.30]:64205->[11.11.150.101]:161
Sep 20 17:16:40 ns3726041.ip-149-202-220.eu snmpd[9233]: Connection from UDP: [10.0.1.30]:64208->[11.11.150.101]:161
Sep 20 17:16:49 ns3726041.ip-149-202-220.eu snmpd[9233]: Connection from UDP: [10.0.1.30]:64255->[11.11.150.101]:161
Sep 20 17:16:49 ns3726041.ip-149-202-220.eu snmpd[9233]: Connection from UDP: [10.0.1.30]:64256->[11.11.150.101]:161
Sep 20 17:16:49 ns3726041.ip-149-202-220.eu snmpd[9233]: Connection from UDP: [10.0.1.30]:64257->[11.11.150.101]:161
Sep 20 17:16:49 ns3726041.ip-149-202-220.eu snmpd[9233]: Cannot statfs /sys/kernel/security
: Permission denied
Sep 20 17:16:49 ns3726041.ip-149-202-220.eu snmpd[9233]: Cannot statfs /sys/kernel/config
: Permission denied
/proc/mounts:
root@sva2:~# cat /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /dev devtmpfs rw,relatime,size=1977892k,nr_inodes=494473,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/sda1 / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /var/run tmpfs rw,nosuid,relatime,mode=755 0 0
none /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
none /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
/dev/sdb1 /home ext4 rw,relatime,barrier=1,data=ordered 0 0
11.11.150.70:/storage/nfs/eco-visio /home/www2 nfs rw,noatime,nodiratime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=11.11.150.70,mountvers=3,mountproto=tcp,addr=11.11.150.70 0 0