Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: -- MARK -- in messages?
PostPosted: Tue Jan 02, 2007 4:55 pm 
Offline
Senior Newbie

Joined: Wed Feb 22, 2006 4:14 pm
Posts: 17
Sorry if this is obvious. I just switched from Gentoo on my linode to Ubuntu. I only have ssh and apache2 running with open ports. I don't have any cron jobs scheduled

# crontab -l
no crontab for ...

But, I get this in my /var/log/messages



Code:
:
Dec 23 05:06:56 www -- MARK --
Dec 23 05:26:56 www -- MARK --
Dec 23 05:46:56 www -- MARK --
Dec 23 06:06:56 www -- MARK --
Dec 23 06:27:13 www exiting on signal 15
Dec 23 06:27:16 www syslogd 1.4.1#17ubuntu7: restart.
Dec 23 06:47:15 www -- MARK --
Dec 23 07:07:15 www -- MARK --
Dec 23 07:27:15 www -- MARK --
Dec 23 07:47:16 www -- MARK --
:


May be it's an apache2 thing? Seems to happen every 20 mins, and then there's this sorta restart. There are 100's of lines of this sort in my messages log. Sorry if this is obvious, but I'm a bit stuck.


Top
   
PostPosted: Tue Jan 02, 2007 4:59 pm 
Offline
Junior Member

Joined: Sat Apr 30, 2005 3:38 am
Posts: 23
genode wrote:
Sorry if this is obvious. I just switched from Gentoo on my linode to Ubuntu. I only have ssh and apache2 running with open ports. I don't have any cron jobs scheduled

# crontab -l
no crontab for ...

But, I get this in my /var/log/messages



Code:
:
Dec 23 05:06:56 www -- MARK --
Dec 23 05:26:56 www -- MARK --
Dec 23 05:46:56 www -- MARK --
Dec 23 06:06:56 www -- MARK --
Dec 23 06:27:13 www exiting on signal 15
Dec 23 06:27:16 www syslogd 1.4.1#17ubuntu7: restart.
Dec 23 06:47:15 www -- MARK --
Dec 23 07:07:15 www -- MARK --
Dec 23 07:27:15 www -- MARK --
Dec 23 07:47:16 www -- MARK --
:


May be it's an apache2 thing? Seems to happen every 20 mins, and then there's this sorta restart. There are 100's of lines of this sort in my messages log. Sorry if this is obvious, but I'm a bit stuck.



# man syslogd
Quote:
-m interval
The syslogd logs a mark timestamp regularly. The default
interval between two -- MARK -- lines is 20 minutes. This can
be changed with this option. Setting the interval to zero
turns it off entirely.


Top
   
 Post subject:
PostPosted: Thu Jan 04, 2007 5:05 am 
Offline
Senior Newbie

Joined: Wed Feb 22, 2006 4:14 pm
Posts: 17
Duh, thanks. Just switched distro's and still getting used to the new one. I certainly didn't think that was coming from syslog. thanks.


Top
   
 Post subject:
PostPosted: Fri Jan 05, 2007 1:00 pm 
Offline
Senior Member

Joined: Fri Feb 13, 2004 11:30 am
Posts: 140
Location: England, UK
It's probably worth noting at this point that /var/log/messages is probably not the file you're looking for; Ubuntu is based on Debian, which doesn't log all messages to that file by default. Instead, you'll want to look in a few different files. I'm not sure how it is in Ubuntu, but on my Debian Linode, the files you want are:

/var/log/auth.log - stores messages about authentication, including opening of sessions, etc.
/var/log/daemon.log - Log file for daemons that use it; most often daemons will also log to another file too. Some (like Apache) don't seem to use it at all.
/var/log/kern.log - Kernel messages (including boot messages).
/var/log/lpr.log - I assume based on the filename that this relates to printer messages.
/var/log/mail.log - Messages relating to mail, etc. (also mail.info, mail.warn and mail.err)
/var/log/user.log - Not altogether sure what this is.
/var/log/uucp.log - This will probably be empty unless you're into using sz or anything like that. :P
/var/log/syslog - Stores all other messages. This will be where you'll find your cron jobs, unless Ubuntu does it differently - in which case you'll probably find it in /var/log/cron.log.

You can find these yourself in /etc/syslog.conf, in case Ubuntu differs in that regard.


Top
   
PostPosted: Sat Feb 10, 2007 7:53 pm 
Offline
Senior Member

Joined: Sat Feb 10, 2007 7:49 pm
Posts: 96
Website: http://www.arbitraryconstant.com/
genode wrote:
May be it's an apache2 thing? Seems to happen every 20 mins, and then there's this sorta restart. There are 100's of lines of this sort in my messages log. Sorry if this is obvious, but I'm a bit stuck.
It's so you can tell when a crash happened by looking for a gap in the messages. Sometimes there aren't enough normal messages generated to make that possible.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group