1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

In need of a logwatch how-to

Discussion in 'Plesk for Linux - 8.x and Older' started by criticman, Jan 2, 2006.

  1. criticman

    criticman Guest

    0
     
    So logwatch is installed properly already with the OS I guess since I know I didn't install it and running a yum update logwatch shows it is up to date.

    Well, how the heck do I use it? I configured the logwatch.conf file to have my email address and I confirmed it had valid log file paths.

    I tried running "example" commands from the MAN on logwatch.org and nothing happens, it just pauses for a second then goes back to command prompt. I even specified --print to output anything for me to see but nope, nothing.

    Any pointers to a better config would be great!
     
  2. Who-m3

    Who-m3 Guest

    0
     
    Ok, I've run into this problem myself. The easy fix for me was as follows..

    Create a forwarding domain for the box (i.e. if your box name is "my.box.name", you create the standard-redirect website for my.box.name to go to your website. Configure the e-mail. Any unknown e-mail, forward to your@website.com. This will send any e-mail sent to *@my.box.name to your@website.com. (This will help with cronjobs and e-mails for them)...

    Next, this is important.. Remove the e-mail address you added to logwatch. It doesn't do any good there. It's still going to send to the same place when run from cron...root@my.box.name. (Again, this is why you set up the above standard-redirect).

    Now, my reasons for saying use a standard redirect are as follows: Keeps your traffic to the right place, gives you options for e-mail, (i.e. accounts at my.box.name.).

    Anyway, I hope this helps with what you were trying to do. Let me know if you need anything else.

    -John
     
  3. criticman

    criticman Guest

    0
     
    Without actually doing anything else, I saw this morning that I had an e-mail from LogWatch. So, just by putting my email in the config, it worked.
     
Loading...