- 论坛徽章:
- 0
|
一台centos7要安装snmp服务,操作过程如下:
# yum -y install net-snmp net-snmp-utils php-snmp net-snmp-libs
然后编辑配置文件
[root@cacti-server ~]# vim /etc/snmp/snmpd.conf
41行 com2sec notConfigUser 127.0.0.1 public
62 行 access notConfigGroup "" any noauth exact all none none
85 行 view all included .1 80
再次运行snmpd
[root@localhost src]# systemctl restart snmpd.service
Job for snmpd.service failed because the control process exited with error code. See "systemctl status snmpd.service" and "journalctl -xe" for details.
失败。查看状态:
#systemctl status snmpd.service
● snmpd.service - Simple Network Management Protocol (SNMP) Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 五 2018-03-30 18:41:11 CST; 1min 20s ago
Process: 16257 ExecStart=/usr/sbin/snmpd $OPTIONS -f (code=exited, status=1/FAILURE)
Main PID: 16257 (code=exited, status=1/FAILURE)
3月 30 18:41:11 localhost.localdomain systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon....
3月 30 18:41:11 localhost.localdomain snmpd[16257]: Error opening specified endpoint ""
3月 30 18:41:11 localhost.localdomain snmpd[16257]: Server Exiting with code 1
3月 30 18:41:11 localhost.localdomain systemd[1]: snmpd.service: main process exited, code=exited, status=1/FAILURE
3月 30 18:41:11 localhost.localdomain systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Daemon..
3月 30 18:41:11 localhost.localdomain systemd[1]: Unit snmpd.service entered failed state.
3月 30 18:41:11 localhost.localdomain systemd[1]: snmpd.service failed.
请问这是什么原因?要怎样才能正常启动snmpd,拜求指教!
|
|