[TNM] tnm setup

Wolf Schwurack wolf at uen.org
Mon Nov 12 21:09:30 UTC 2012


I have been trying to setup TnM but when I run a test I never get an email. I can send an email from the command line  $ sendmail -f root wolf at uen.org<mailto:wolf at uen.org>
I add an ERROR message to my log file then run
$ perl tail_n_mail tnm.config -debug

I get this:

  Log line prefix regex: (?-xism:^(()(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d \w\w\w\w?) )(.*))
  Log line prefix regex2: (?-xism:^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d \w\w\w\w? )
  Log line prefix regex3: (?-xism:^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d \w\w\w\w?)
Parsing file: /p04/postgres/pg_log/postgresql-2012-11-12.log
  File: /p04/postgres/pg_log/postgresql-2012-11-12.log Offset: 0 Size: 371 Maxsize: 80,000,000
  Adding inclusion: ERROR:
  Adding inclusion: FATAL:
  Adding inclusion: PANIC:
  Inclusion: (?-xism:ERROR:  )|(?-xism:FATAL:  )|(?-xism:PANIC:  )
  No new lines found in file /p04/postgres/pg_log/postgresql-2012-11-12.log
  Performing final cleanup
  Saving new config file

Here's tnm.config

## Config file for the tail_n_mail program
## This file is automatically updated
## Last updated: Mon Nov 12 14:03:34 2012
EMAIL: wolf at uen.org
MAILSUBJECT: pgtest-db Postgres errors UNIQUE : NUMBER

INCLUDE: ERROR:
INCLUDE: FATAL:
INCLUDE: PANIC:

FILE1: /p04/postgres/pg_log/postgresql-%Y-%m-%d.log
LASTFILE1: /p04/postgres/pg_log/postgresql-2012-11-12.log
OFFSET1: 371


      0___      Wolfgang Schwurack
     c/  /'_    DBA/SA
    (*)  \(*)   University of Utah/UEN
                Tel: (801) 587-9444
                email: wolf at uen.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.endcrypt.com/pipermail/tnm/attachments/20121112/5ff0f8f3/attachment.html>


More information about the TNM mailing list