<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ËÎÌå; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><div class="trans-left">
<div class="trans-input-wrap">
<div class="input-wrap" dir="ltr" style="height: auto;">
<a href="http://fanyi.baidu.com/translate?aldtype=16047&query=I%27m+very+sorry%2C+I+didn%27t+apply+patch+like+described+in+BUG+section%3A%0D%0A%0D%0AIn+order+for+the+RRD+to+actually+store+data+larger+than+180%2C+you+also+need+to+apply+this+patch+%28or+to+use+the+most+recent+version+of+smokeping%29%3A+https%3A%2F%2Fgithub.com%2Foetiker%2FSmokePing%2Fcommit%2F60419834f224a0735094fd4ad0aac8eac3b15289%0D%0A%0D%0ANow+I+resolve%2C+Graphs+are+showing+like+a+charm.%0D%0A%0D%0AThank+you+to+all+instead&keyfrom=baidu&smartresult=dict&lang=auto2zh###" class="textarea-clear-btn" title="Çå¿Õ" style="float: right; margin: 0px 0px 0px 10px; display: inline;"></a>
<div class="textarea-wrap" style="height: 70px; padding-bottom: 12px;"><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">I would like to ask how to send e-mail alerts through the smokeping software.<br><br>I have configured sound alarm, you can view the monitor on the web.<br><br>I refer to the online information, but the test failed.<br><br>My configuration is as follows.<br><br>1. pkg install perl5 , install Authen::SASL  Modular<br>outbound_adsl_j160:/usr/local/lib/perl5@[10:30] #perldoc perllocal <br>You have an old groff. Update to version 1.20.1 for good Unicode support.<br>If you don't upgrade, wide characters may come out oddly.<br><br> at /usr/local/lib/perl5/5.16/Pod/Perldoc.pm line 1346.<br>You have an old groff. Update to version 1.20.1 for good Unicode support.<br>If you don't upgrade, wide characters may come out oddly.<br><br> at /usr/local/lib/perl5/5.16/Pod/Perldoc.pm line 1346.<br>PERLLOCAL(1)          User Contributed Perl Documentation         PERLLOCAL(1)<br><br>   ESC[1mWed Apr  5 11:37:57 2017: "Module" Authen::SASLESC[0m<br>       <B7>   "installed into: /usr/local/lib/perl5/site_perl/5.16"<br><br>       <B7>   "LINKTYPE: dynamic"<br><br>       <B7>   "VERSION: 2.16"<br><br>       <B7>   "EXE_FILES: "<br><br>perl v5.16.3                      2017-04-05                      PERLLOCAL(1)<br><br><br>2. Configuration Smokeping.pm <br><br>outbound_adsl_j160:/usr/local/smokeping/lib@[16:32] #more Smokeping.pm <br><br>use Authen::SASL;     #This line increase <br><br>sub sendmail ($$$){<br>    my $from = shift;<br>    my $to = shift;<br>    $to = $1 if $to =~ /<(.*?)>/;<br>    my $body = shift;<br>    if ($cfg->{General}{mailhost} and  <br>        my $smtp = Net::SMTP->new([split /\s*,\s*/, $cfg->{General}{mailhost}],Timeout=>5) ){                 <br>        $smtp->auth(split(/\s*,\s*/, $cfg->{General}{mailusr}),split(/\s*,\s*/, $cfg->{General}{mailpwd}));     #This line increase <br>        $smtp->mail($from);<br>        $smtp->to(split(/\s*,\s*/, $to));<br>        $smtp->data();<br>        $smtp->datasend($body);<br>        $smtp->dataend();<br>        $smtp->quit;<br>    } elsif ($cfg->{General}{sendmail} or -x "/usr/lib/sendmail"){<br>        open (M, "|-") || exec (($cfg->{General}{sendmail} || "/usr/lib/sendmail"),"-f",$from,$to);<br>        print M $body;<br>        close M;<br>    } else {<br>        warn "ERROR: not sending mail to $to, as all methodes failed\n";<br>    }<br>}<br><br>#find  '_vars =>' , increase mailusr mailpwd <br>DOC<br>         _vars =><br>         [ qw(owner imgcache imgurl datadir dyndir pagedir piddir sendmail offset<br>              smokemail cgiurl mailhost mailusr mailpwd snpphost contact display_name<br>              syslogfacility syslogpriority concurrentprobes changeprocessnames tmail<br>              changecgiprogramname linkstyle precreateperms ) ],<br><br><br>3. Configuration General Alerts <br><br>outbound_adsl_j160:/usr/local/etc/smokeping/conf.d@[16:37] #more General <br>*** General ***<br><br>owner    = Peter Random<br>contact  = some@address.nowhere<br>#mailhost = my.mail.host<br>mailhost = smtp.qq.com<br>mailusr = 514906434@qq.com<br>mailpwd = passwd<br><br>outbound_adsl_j160:/usr/local/etc/smokeping/conf.d@[13:35] #more Alerts <br>*** Alerts ***<br>to = 370767686@qq.com <br>from = 514906434@qq.com<br><br><br><br><br><br><br></span></div></div></div></div></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><br></div>
</body></html>