Centos 6.8 snmp wont start on boot
by fusion1275 from LinuxQuestions.org on (#53A5Z)
Hi all,
So for the past 3 days I have been trying to get snmpd to auto start at boot time on an old centos machine.
I installed it and added the following line to the bottom of /etc/snmp/snmpd.conf
Quote:
I then restarted the daemon
Quote:
Added the service to start at boot and confirmed by listing it
Quote:
Quote:
This shows that runlevel 2,3,4,5 are on
I then ran the snmpwalk test
Quote:
This then gives me pages and pages of info
I know that snmp is working as I've also got another server which runs Zabbix 4.4 and this host is configured on it and is monitoring perfectly.
But I just cannot get the service to auto start??? It is killing.
Any ideas please? What other steps have I missed out here? I know I could try creating my own startup script but it already has all start and kill scripts in the rc.d dir.
Thanks for any help you can provide.


So for the past 3 days I have been trying to get snmpd to auto start at boot time on an old centos machine.
I installed it and added the following line to the bottom of /etc/snmp/snmpd.conf
Quote:
rocommunity public |
Quote:
service snmpd restart |
Quote:
chkconfig snmpd on |
chkconfig --list |grep snmpd |
I then ran the snmpwalk test
Quote:
snmpwalk -c public -v2c <MY MACHINE IP ADDR> |
I know that snmp is working as I've also got another server which runs Zabbix 4.4 and this host is configured on it and is monitoring perfectly.
But I just cannot get the service to auto start??? It is killing.
Any ideas please? What other steps have I missed out here? I know I could try creating my own startup script but it already has all start and kill scripts in the rc.d dir.
Thanks for any help you can provide.