[smokeping-users] Re: Smokeping result howto

Edwards, Thomas W. TWEdwards at cimplify.net
Mon Aug 2 22:55:47 MEST 2004


Well thanks for the help, it stopped giving me the error of can't read,
but it still says it can't call method "mail" on line 80.  I verified
that Net::SMTP is installed...no errors either are listed.

-----Original Message-----
From: smokeping-users-bounce at list.ee.ethz.ch
[mailto:smokeping-users-bounce at list.ee.ethz.ch] On Behalf Of Justin
Bousquet
Sent: Monday, August 02, 2004 12:52 PM
To: smokeping-users at list.ee.ethz.ch
Subject: [smokeping-users] Re: Smokeping result howto

Thomas, 
	I asked the same question to the script's author: Dan
McGinn-Combs.
This is pertinent details from the response I got: 

In the general section, after the smokemail definition, put a line in
for
tmail:

tmail=/usr/local/smokeping/etc/tmail


The tmail file should be included in the archive (at least my default
version).

In Smokeping.pm, add tmail to the following line:

	General    => 
	{
	_doc => <<DOC,
	General configuration values valid for the whole SmokePing
setup.
	DOC
	_vars => [ qw(owner imgcache imgurl datadir piddir sendmail
smokemail cgiurl mailhost contact 
		syslogfacility syslogpriority tmail) ],

I believe I have seen Dan on the mail-list, so he should see if I missed
anything. If you need to, read the script source for his email address,
I
don't feel comfortable posting it here without his consent. 

Cheers,
Justin Bousquet
L-P

-----Original Message-----
From: Edwards, Thomas W. [mailto:TWEdwards at cimplify.net] 
Sent: Monday, August 02, 2004 9:44 AM
To: smokeping-users at list.ee.ethz.ch
Subject: [smokeping-users] Re: Smokeping result howto

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



--
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