SPUG: /var/log/messages

Parr, Ryan Ryan.Parr at wwireless.com
Thu May 30 18:14:36 CDT 2002


http://search.cpan.org/doc/MHARNISCH/Syslog-0.97/Syslog.pm

Good stuff.

-- Ryan Parr

Common sense is the collection of prejudices acquired by age eighteen.
		-- Albert Einstein


-----Original Message-----
From: Mikel Tidwell [mailto:dragon at dreamhaven.net] 
Sent: Thursday, May 30, 2002 3:00 PM
To: spug-list at pm.org
Subject: SPUG: /var/log/messages


Hello,

I have a project where I want to write to /var/log/messages.  From what I've
read, this is not a recommended approach, but we already have software
monitoring messages for critical messages, and I'd like to use this system
already in place to flag a critical failure (not not normally logged).

The example I have is when the mysql watching script finds the service hung
(on a remote machine), it would write an error to /var/log/messages, and
then someone would get paged about the message.  This made more sense to me
than duplicating the process already in place.

So, how would all the gurus here recommend dealing with /var/log/messages?
Do I treat it like a typical file, use a call to syslog somehow, or is this
just a bad idea all together?  Thanks for your continued help. :>

 _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _
  -- Mikel Tidwell   President: RPGamer -- http://www.rpgamer.com/
   MSNM: FireMyst    Personal Home Page -- http://dragon.rpgamer.com/
 - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ - _ -


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org




More information about the spug-list mailing list