LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-11-2020, 05:54 AM   #1
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Rep: Reputation: 36
Centos 6.8 snmp wont start on boot


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:
rocommunity public
I then restarted the daemon

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

Quote:
chkconfig snmpd on
Quote:
chkconfig --list |grep snmpd
This shows that runlevel 2,3,4,5 are on

I then ran the snmpwalk test

Quote:
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.
 
Old 05-11-2020, 07:10 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by fusion1275 View Post
But I just cannot get the service to auto start??? It is killing.
To identify why the service is getting killed, you should look at
/var/log/messages

There should be another log specific to snmp under:
/var/log/

Look at dmesg.
 
Old 05-11-2020, 07:14 AM   #3
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
Unfortunately the specific machine has it's system messages disabled (the customer has turned it off for their reasons)

I have raised the logging level to 7 on snmp and monitored /var/log/snmp.log but nothing is outputted.

dmesg shows nothing with regards to snmp. Not even an attempt to start it and fail which is very weird also.
 
Old 05-11-2020, 07:53 AM   #4
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Hmm; what version of snmp is installed?
Code:
rpm -qa | grep -i snmp
And, did I understand correctly that it fails to start at boot, but once the OS is up and running, and you manually start it, it works?
 
Old 05-11-2020, 07:53 AM   #5
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
I have now redirected all the snmpd logs to /var/log/snmpd.log and can see the udp connections to Zabbix. So functionally it is working as designed. But it just wont start as a service.

Totally baffled
 
Old 05-11-2020, 07:54 AM   #6
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 310

Original Poster
Rep: Reputation: 36
snmp version 5.5

and yes I can start manually and all is good. It just wont start as a service.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SNMP Configuration problem - able to snmp outbound, unable to snmp inbound. sumncguy Linux - Desktop 2 04-28-2015 09:26 AM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
NET-SNMP vs UCD-SNMP nitind Red Hat 1 05-20-2005 06:08 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration