Re: [PLUG] Determining Why Perl Script Fails [FIXED]

2014-08-09 Thread Rich Shepard
On Wed, 6 Aug 2014, Rich Shepard wrote: > Considering that logwatch.pl has run faithfully each day for years I > suspect that there's something in the upgrade to version 7.4.0 that is at > the root of the problem. Found and fixed the problem. When I upgraded postfix-2.11.0 to -2.11.1 I negle

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Ken Stephens
Rich Shepard wrote: # The 'Service' option expects either the name of a filter # (in/usr/share/logwatch/scripts/services/*) or 'All'. # The default service(s) to report on. This should be left as All for # most people. Service = All # You can also disable certain services (when specifying all) Se

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Rich Shepard
On Wed, 6 Aug 2014, Eric Wilhelm wrote: > If you're getting no error output and not the expected results, you might > look for unchecked exit code on system() or backtick/qx{}. Those bits > might also be in your strace output. `grep sendmail`? Eric, Nice thought. Here's what I find: $ grep s

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Eric Wilhelm
# from Rich Shepard on Wednesday 06 August 2014: > However, ... running 'logwatch.pl --output stdout' does display the >report on the console, so the problem seems to be back to an issue >with sendmail rather than logwatch.pl. Yet, a few days ago the >problem was the opposite: changing logwatch.c

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Fred James
Rich Shepard wrote: > On Wed, 6 Aug 2014, Dale Snell wrote: > >> ENOTTY is an error; one could translate it as "Error: No Terminal". At a >> guess, logwatch tried to open a device or file as a target to recieve its >> standard output, and failed. Why, I do not know. It's going to take some >> more

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Rich Shepard
On Wed, 6 Aug 2014, Michael Rasmussen wrote: > What are the parameters you normally call logwatch.pl with? It runs from /etc/cron.daily/0logwatch which is a soft link to /usr/share/logwatch/scripts/logwatch.pl. The configuration is in /usr/share/logwatch/default.conf/logwatch.conf: ##

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Michael Rasmussen
On Wed, Aug 06, 2014 at 11:44:19AM -0700, Rich Shepard wrote: > On Wed, 6 Aug 2014, Rich Shepard wrote: > > > With the debug option nothing indicative of a problem shows up. > >However, ... running 'logwatch.pl --output stdout' does display the report > on the console, What are the parame

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Rich Shepard
On Wed, 6 Aug 2014, Dale Snell wrote: > ENOTTY is an error; one could translate it as "Error: No Terminal". At a > guess, logwatch tried to open a device or file as a target to recieve its > standard output, and failed. Why, I do not know. It's going to take some > more troubleshooting, I'm afraid

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Dale Snell
On Wed, 6 Aug 2014 11:35:27 -0700 (PDT) Rich Shepard wrote: > On Wed, 6 Aug 2014, Dale Snell wrote: > > > Try running the strace output file through grep, looking for the > > string "ERR" or "ENO". It's a long shot, but it can't hurt to > > try. > > Dale, > >No errors, but some ENOTTY; do

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Rich Shepard
On Wed, 6 Aug 2014, Rich Shepard wrote: > With the debug option nothing indicative of a problem shows up. However, ... running 'logwatch.pl --output stdout' does display the report on the console, so the problem seems to be back to an issue with sendmail rather than logwatch.pl. Yet, a few d

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Rich Shepard
On Wed, 6 Aug 2014, Dale Snell wrote: > Try running the strace output file through grep, looking for the > string "ERR" or "ENO". It's a long shot, but it can't hurt to > try. Dale, No errors, but some ENOTTY; don't know if those are new or were always there. > What options did you specify

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Dale Snell
On Wed, 6 Aug 2014 07:39:16 -0700 (PDT) Rich Shepard wrote: >After changing logwatch.pl to send its reports by mail the script > worked for a few days. Today it failed completely. That is, running > from the command line produces no output in the virtual terminal so > apparently there's nothi

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Rich Shepard
On Wed, 6 Aug 2014, Michael Rasmussen wrote: Michael, > use strict; Yes. > use warnings; No. > If not add them and forward the output after you run it again. No output to console or mail. > And forward a copy to me off list. logwatch-strace.log sent separately and gzipped. Tha

Re: [PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Michael Rasmussen
are: use strict; use warnings; at the top? If not add them and forward the output after you run it again. And forward a copy to me off list. On Wed, Aug 06, 2014 at 07:39:16AM -0700, Rich Shepard wrote: >After changing logwatch.pl to send its reports by mail the script worked > for a few da

[PLUG] Determining Why Perl Script Fails

2014-08-06 Thread Rich Shepard
After changing logwatch.pl to send its reports by mail the script worked for a few days. Today it failed completely. That is, running from the command line produces no output in the virtual terminal so apparently there's nothing to report via mail either. Running logwatch.pl via strace produ