Centos 6.8 snmp wont start on boot

General support questions
Post Reply
liwifexu
Posts: 1
Joined: 2020/05/12 02:57:09

Centos 6.8 snmp wont start on boot

Post by liwifexu » 2020/05/12 03:26:22

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

Code: Select all

rocommunity public
I then restarted the daemon

Code: Select all

service snmpd restart
Added the service to start at boot and confirmed by listing it

Code: Select all

chkconfig snmpd on

Code: Select all

chkconfig --list |grep snmpd
This shows that runlevel 2,3,4,5 are on
I then ran the snmpwalk test

Code: Select all

snmpwalk -c public -v2c <MY MACHINE IP ADDR>
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.
https://gotgaytubeporn.com/en/
my favorite gay porn tube

User avatar
TrevorH
Forum Moderator
Posts: 29438
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6.8 snmp wont start on boot

Post by TrevorH » 2020/05/12 03:38:43

Are there any entries in the output from aureport -a with timestamps around the time of the last reboot? If so, take the number from the right hand end of each line in that output and feed it into ausearch -a nnnn and see if it helps.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”