[smokeping-users] Re: Smokeping result howto
Edwards, Thomas W.
TWEdwards at cimplify.net
Mon Aug 2 18:44:09 MEST 2004
I got this error when doing the --morning Can't call method "mail" on an
undefined value at /usr/local/smokeping/tsmoke/tsmoke.pl line 80.
Any thoughts?
Tsmoke.pl
sub sendmail ($$$$){
my $from = shift;
my $to = shift;
my $subject = shift;
my $body = shift;
if ($cfg->{General}{mailhost}){
my $smtp = Net::SMTP->new($cfg->{General}{mailhost});
$smtp->mail($from); ##<--line 80
$smtp->to($to);
$smtp->data();
$smtp->datasend("Subject: $subject\n");
$smtp->datasend("To: $to\n");
$smtp->datasend($body);
$smtp->dataend();
$smtp->quit;
} elsif ($cfg->{General}{sendmail} or -f "/usr/lib/sendmail"){
open (M, "|-") || exec (($cfg->{General}{sendmail} ||
"/usr/lib/sendmail"),"-f",$from,$to);
print M "Subject: $subject\n";
print M $body;
close M;
}
}
-----Original Message-----
From: smokeping-users-bounce at list.ee.ethz.ch
[mailto:smokeping-users-bounce at list.ee.ethz.ch] On Behalf Of
mesbah at link3.net
Sent: Saturday, July 31, 2004 4:30 PM
To: smokeping-users at list.ee.ethz.ch
Subject: [smokeping-users] Re: Smokeping result howto
Thanks Arnold.
tSmoke --morning option working fine but when i am running tSmoke
--weekly
getting error "ERROR: can't read"
Quoting Arnold Nipper <arnold at nipper.de>:
> On 31.07.2004 18:14 mesbah at link3.net wrote:
> > Hi,
> >
> > I am using smokeping (probe- FPing) to monitor 10 website and submit
report
> to
> > authority of Avg. RTT and Avg. Packet Loss of last 24 hours. Is
there any
> > sript, which will calculate Avg. RTT and Avg. Packet Loss of last 24
hours
> and
> > will mail to a address daily?
> >
>
> Did you have a look at tsmoke, which is in
> http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/contrib/
>
>
>
>
> Arnold
>
> --
> Unsubscribe
> mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help
mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
> Archive http://www.ee.ethz.ch/~slist/smokeping-users
> WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
>
>
--------------------------------------------------
This message was sent through http://www.link3.net
--
Unsubscribe
mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the smokeping-users
mailing list