SPUG: /var/log/messages

Dan Ebert mathin at mathin.com
Thu May 30 17:56:43 CDT 2002


I haven't done that, exactly, but have messed with a script I wanted to
use syslog to log errors, etc.

There is a module Net::Syslog which might be useful.  You may need to
look-at/play-with your /etc/syslog.conf file to get it to do what you
want.

Dan.

On Thu, 2002-05-30 at 14:59, Mikel Tidwell wrote:
> 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
> 
-- 
Dan Ebert      <mathin at mathin.com>
----------------------------------------------------------
 "Entropy isn't what it used to be."


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     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