Results 1 to 5 of 5

Thread: Logwatch not working properly

  1. #1
    Join Date
    Jul 2010
    Posts
    30

    Logwatch not working properly

    I struggle for days with a Logwatch problem. Among the details: OS: CentOS 5.5, logwatch Version: 7.3.6.

    Code:
    logwatch - service sshd - range yesterday
    The above email address is of course fake. I got the following error messages:
    print () on unopened filehandle OUTFILE at / usr / sbin / logwatch line 1295
    print () on unopened filehandle OUTFILE at / usr / sbin / logwatch line 1296
    print () on unopened filehandle OUTFILE at / usr / sbin / logwatch line 1298
    print () on unopened filehandle OUTFILE at / usr / sbin / logwatch line 1,301
    I compared the file with the original file from logwatch-Project and can find no error. I would be grateful for any tip. :

  2. #2
    Join Date
    Apr 2009
    Posts
    65

    Re: Logwatch not working properly

    I'm not sure how strict perl handles validity range, but the script OUTFILE shall, within the functions init print, and I suspect that it is thus to a print outside of init not known. I had thought that 'use strict' warns against non-declared variables, but that does not seem to be the case with you. If it is not lying on the validity range, then probably that, in the whole if-clauses in init print the combination of options that allow you to call the script, and so is not covered with OUTFILE has not just opened.

  3. #3
    Join Date
    Jul 2010
    Posts
    30

    Re: Logwatch not working properly

    Thank you for your tips! I have now tested the following times: from a second server running logwatch Version 7.3 is intact, I copied the directory and re-tested the Shell call, and he brought here, the same error messages. A syntax check with the option:
    Code:
    # / Usr / bin / perl-c
    logwatch.pl the script did nothing. The fault seems to lie at the Perl interpreter. Please tell me if anyone knows about it.

  4. #4
    Join Date
    Dec 2008
    Posts
    87

    Re: Logwatch not working properly

    Then try but sometimes, the script of the problem on the server where it runs out. Maybe there are differences in the script (yes you can with 'diff' study without being forced to execute the script). My friend was also having the similar issue. The host where it works, has installed centos 5.5 x86_64, Perl 5.8.8 with Logwatch 7.3, the problem host has installed centos 5.5 i386, Perl 5.8.8 and 7.3.6 Logwatch. Those two are up on the same architecture. I've also the CPAN module perl (Date:: Manip) perl (Exporter), perl (File:: Temp) perl (Getopt:: Long) reviewed and perl (Date:: Manip) updated (was an old version). It was of nothing. Must be some way to give it yet ...

  5. #5
    Join Date
    Apr 2009
    Posts
    37

    Re: Logwatch not working properly

    'Range', if I understand things correctly, processed in the script from line 851. At least in the version that you sent, there is something like the word 'yesterday' is not provided. It seems to me more so than one would have to specify the time in seconds, but I completely understand the script is not there. Maybe you should the problem but at times logwatch@logwatch.org send, as is proposed in the header, because at least I unfortunately can not further penetrate the matter in.

Similar Threads

  1. Tab key is not working properly.
    By Fadheela in forum Operating Systems
    Replies: 4
    Last Post: 01-06-2011, 09:58 PM
  2. GPS not Working properly In Nokia N86
    By winni in forum Portable Devices
    Replies: 4
    Last Post: 10-02-2011, 09:12 PM
  3. Avg not working Properly
    By Tiger Memon in forum Networking & Security
    Replies: 4
    Last Post: 23-10-2010, 04:46 AM
  4. GTX 460 is not working properly
    By Talish in forum Monitor & Video Cards
    Replies: 3
    Last Post: 13-10-2010, 06:15 AM
  5. Web UI not working properly
    By Tamila in forum Technology & Internet
    Replies: 6
    Last Post: 25-06-2010, 12:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •