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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2012, 07:15 PM   #1
jjrowan
Member
 
Registered: Sep 2001
Location: New Jersey
Distribution: Red Hat, SuSE, CentOS and Ubuntu
Posts: 50

Rep: Reputation: 16
Why does SNMPD restart


I have snmpd running on all the servers I support. I query these servers with snmpget -v 1 -c public IPADDRESS system.sysUpTime.0 to determine 1) if the server is up and 2) how long the server has been running (in theory). Some servers never reload the snmp deamon, others reload it at 4AM making me think the server rebooted due to a problem or power issue. Is there any way I can configure snmp to prevent it from reloading skewing the uptime value?
 
Old 04-22-2012, 07:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The usual suspect (from my perspective) would be logrotation ... what do
your cron entries for that time of day look like? =o)
 
Old 04-22-2012, 08:04 PM   #3
jjrowan
Member
 
Registered: Sep 2001
Location: New Jersey
Distribution: Red Hat, SuSE, CentOS and Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Tinkster View Post
The usual suspect (from my perspective) would be logrotation ... what do
your cron entries for that time of day look like? =o)
The log shows

Apr 22 04:02:27 tiny snmpd[21072]: Received TERM or STOP signal... shutting down...
 
Old 04-22-2012, 09:05 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And what about cron?
 
Old 04-23-2012, 07:12 AM   #5
jjrowan
Member
 
Registered: Sep 2001
Location: New Jersey
Distribution: Red Hat, SuSE, CentOS and Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 16
Nothing in cron.hourly, cron.daily, cron.weekly or cron.monthly. /var/log/cron has nothing about snmp, only recorded on /var/log/messages

Apr 22 04:02:27 tiny snmpd[21072]: Received TERM or STOP signal... shutting down...
 
Old 04-23-2012, 01:21 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And when is logrotate triggered by cron?
 
Old 04-23-2012, 02:08 PM   #7
jjrowan
Member
 
Registered: Sep 2001
Location: New Jersey
Distribution: Red Hat, SuSE, CentOS and Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 16
Logrotate is at 4AM Sunday EST which is when the SNMPD received a TERM or STOP signal.
It doesn't happen every Sunday. This is a random occurrence (if you can call Sunday at 4AM random).
 
Old 04-23-2012, 03:09 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And is logrotate set-up to rotate anything regarding snmp on that system?
Sounds to me like a weekly cron-job. So if snmpd were part of what logrotate
thinks needs watching during rotation that would explain it?
 
Old 04-23-2012, 03:29 PM   #9
jjrowan
Member
 
Registered: Sep 2001
Location: New Jersey
Distribution: Red Hat, SuSE, CentOS and Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Tinkster View Post
And is logrotate set-up to rotate anything regarding snmp on that system?
Sounds to me like a weekly cron-job. So if snmpd were part of what logrotate
thinks needs watching during rotation that would explain it?
No. It does NOT happen weekly, or monthly but randomly on Sundays at same time logs get rotated.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
doing /etc/init.d/snmpd status gives "snmpd dead but pid file exists" kaushal143 Linux - Newbie 2 07-10-2008 02:55 AM
snmpd: relocation error snmpd:undefined symbol: lastAddrAge Strike2000 Slackware 0 02-11-2008 04:45 AM
snmpd help ryanlum General 0 11-20-2007 07:20 AM
How do I set the regulatory daemon to restart when I restart the network service? zahadumy Linux - Networking 0 11-05-2006 11:24 AM
snmpd mdpniesta Linux - Networking 2 11-18-2004 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:10 AM.

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