Re: [newbie] Blank LogDrake Mail Alerts SOLVED

2004-07-20 Thread Jerry Cornelius
On Monday 19 July 2004 08:39 pm, Jerry Cornelius wrote:
 On Monday 19 July 2004 01:35 pm, Ronald J. Hall wrote:
  -I asked about this 3 days ago and got one response which didn't help.
   Every -hour, about 24 times a day (though some are skipped), I'm
  getting an email -which says it's a logDrake Mail Alert in the subject. 
  The body of the email -has the date and time.  There is no other
  information. - -Is it trying to tell me something?  If not, how do I
  disable this?  Isn't -there supposed to be some text telling what the
  alert is about?
 
  Sounds like something from /etc/cron.hourly. I'd go in there and check
  out what is setup.

Got this fixed, it seems, as there's been no hourly email at 0700 this 
morning.  Ron correctly led me to /etc/cron.hourly where there was a 
scripty-thing that would send an email with an error message if one of 3 
conditions were met, and (strangely) send an email with no error no 
conditions were met.

Thinking about it a bit before-shower I decided to jump into Logdrake and use 
the wizard there to remake that file.  I did.  The emails stopped.  I checked 
the file and it now has only one condition (load3) and that seems to be 
conditional.

My sincere thanks to Ron, the only response I received.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Blank LogDrake Mail Alerts

2004-07-19 Thread Ronald J. Hall
On Monday 19 July 2004 01:55 am, Jerry Cornelius wrote:
-I asked about this 3 days ago and got one response which didn't help. 
 Every -hour, about 24 times a day (though some are skipped), I'm getting an
 email -which says it's a logDrake Mail Alert in the subject.  The body of
 the email -has the date and time.  There is no other information.
-
-Is it trying to tell me something?  If not, how do I disable this?  Isn't
-there supposed to be some text telling what the alert is about?
-
-Here was the latest:
-
-=-=-=
-
-*** Sun Jul 18 22:01:00 PDT 2004 ***
-
-=-=-=
-
-As someone else pointed out, I already have a clock on my screen, so I
 don't -need an email bulletin of the time.

Sounds like something from /etc/cron.hourly. I'd go in there and check out 
what is setup.

-- 

   /\
 Dark Lord
   \/



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Blank LogDrake Mail Alerts

2004-07-19 Thread Jerry Cornelius
On Monday 19 July 2004 01:35 pm, Ronald J. Hall wrote:

 -I asked about this 3 days ago and got one response which didn't help.
  Every -hour, about 24 times a day (though some are skipped), I'm getting
 an email -which says it's a logDrake Mail Alert in the subject.  The body
 of the email -has the date and time.  There is no other information. -
 -Is it trying to tell me something?  If not, how do I disable this?  Isn't
 -there supposed to be some text telling what the alert is about?

 Sounds like something from /etc/cron.hourly. I'd go in there and check out
 what is setup.

Ron, I was doubtful, but here's my logdrake_service and it DOES look like it's 
set up to send a blank email every hour!  I know nothing about scripting, is 
there an if/then statement missing?  I certainly didn't change anything, any 
ideas how this happened?

Any advice appreciated -- another 24 blank emails today. grin

=-=-=
[EMAIL PROTECTED] cron.hourly]$ cat logdrake_service
#!/usr/bin/perl
# generated by logdrake
use MDK::Common;
my $r = ***  . chomp_(`date`) .  ***\n;

#- check services
$r .= Service postfix (Postfix Mail Server is not running)\n unless -e 
/var/lock/subsys/postfix;
$r .= Service xinetd (Xinetd Service is not running)\n unless -e 
/var/lock/subsys/xinetd;
#- load
my ($load) = split ' ', first(cat_(/proc/loadavg));
$r .= Load is huge: $load\n if $load  3;

#- report it

my $email = '[EMAIL PROTECTED]';

local *F;
open F, '|/usr/sbin/sendmail -oi -t';
print F q(Subject: logdrake Mail Alert
From: [EMAIL PROTECTED]
To: ), $email\n;
print F $r;

[EMAIL PROTECTED] cron.hourly]


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com