Install Smokeping via yum

Reading time ~3 minutes

From : http://ai.net.nz/horde/wicked/display.php?page=SmokePing

Install needed packages


rrdtool

`yum install rrdtool
<br />**perl-CGI-SpeedyCGI**<br />

`yum install perl-CGI-SpeedyCGI



fping

`yum install fping
<br />** Or do them all together:**<br />

`yum install rrdtool perl-CGI-SpeedyCGI fping



Smokeping

`wget http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/smokeping-2.0.9.tar.gztar xvzf smokeping-2.0.9.tar.gzmv smokeping-2.0.9 /usr/local/smokepingchown -R root:root /usr/local/smokeping<br /><br />cd /usr/local/smokeping/binfor foo in *.dist; do cp $foo `basename $foo .dist`; done<br /><br />cd  /usr/local/smokeping/etc/for foo in *.dist; do cp $foo `basename $foo .dist`; done<br /><br />cd /usr/local/smokeping/htdocsfor foo in *.dist; do cp $foo `basename $foo .dist`; done
<br />**pico /usr/local/smokeping/bin/smokeping**<br /><table class="table" ><br /><tr ><br />
<td class="table-cell" >_**Default**_
</td><br />
<td class="table-cell" >_**New**_
</td><br /></tr><br /><tr ><br />
<td class="table-cell" > #!/usr/sepp/bin/perl-5.8.4 -w
</td><br />
<td class="table-cell" > #!/usr/bin/perl -w
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >_ _
</td><br /></tr><br /><tr ><br />
<td class="table-cell" >use lib qw(/usr/pack/rrdtool-1.0.49-to/lib/perl);
</td><br />
<td class="table-cell" >use lib qw(/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/RRDs);
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >** or if a i386 system use**
</td><br /></tr><br /><tr ><br />
<td class="table-cell" >use lib qw(/usr/pack/rrdtool-1.0.49-to/lib/perl);
</td><br />
<td class="table-cell" >use lib qw(/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/RRDs);
</td><br /></tr><br /><tr ><br />
<td class="table-cell" >use lib qw(lib);
</td><br />
<td class="table-cell" >use lib qw(/usr/local/smokeping/lib);
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >_ _
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >use Smokeping 2.000008;
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >_ _
</td><br /></tr><br /><tr ><br />
<td class="table-cell" >Smokeping::main("etc/config.dist");
</td><br />
<td class="table-cell" >Smokeping::main("/usr/local/smokeping/etc/config");
</td><br /></tr><br /></table><br />**pico /usr/local/smokeping/htdocs/smokeping.cgi**<br /><table class="table" ><br /><tr ><br />
<td class="table-cell" >_**Default**_
</td><br />
<td class="table-cell" >_**New**_
</td><br /></tr><br /><tr ><br />
<td class="table-cell" >#!/usr/sepp/bin/speedy -w
</td><br />
<td class="table-cell" >#!/usr/bin/speedy -w
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >_ _
</td><br /></tr><br /><tr ><br />
<td class="table-cell" >use lib qw(/usr/pack/rrdtool-1.0.33-to/lib/perl);
</td><br />
<td class="table-cell" >use lib qw(/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/RRDs);
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >** or if a i386 system use**
</td><br /></tr><br /><tr ><br />
<td class="table-cell" >use lib qw(/usr/pack/rrdtool-1.0.49-to/lib/perl);
</td><br />
<td class="table-cell" >use lib qw(/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/RRDs);
</td><br /></tr><br /><tr ><br />
<td class="table-cell" >use lib qw(/home/oetiker/data/projects/AADJ-smokeping/dist/lib);
</td><br />
<td class="table-cell" >use lib qw(/usr/local/smokeping/lib);
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >use CGI::Carp qw(fatalsToBrowser);
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >_ _
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >use Smokeping 2.000008;
</td><br /></tr><br /><tr ><br />
<td colspan="2" class="table-cell" >_ _
</td><br /></tr><br /><tr ><br />
<td class="table-cell" >Smokeping::cgi("/home/oetiker/data/projects/AADJ-smokeping/dist/etc/config");
</td><br />
<td class="table-cell" >Smokeping::cgi("/usr/local/smokeping/etc/config");
</td><br /></tr><br /></table><br />

`cp /usr/local/smokeping/htdocs/smokeping.cgi /var/www/cgi-bin

pico /usr/local/smokeping/etc/config



etc/config
** General **
<table class="table" >
<tr >

_**Default**_


_**New**_


</tr>
<tr >

owner = Joe Random


owner = Tony Someone


</tr>
<tr >

contact = joe@some.place.xyz


contact = tony@somehhere


</tr>
<tr >

mailhost = smtp.mailhost.abc


mailhost = smtp.somewhere


</tr>
<tr >

sendmail = /usr/lib/sendmail


</tr>
<tr >

imgcache = /home/oetiker/public_html/.simg


imgcache = /var/www/html/smokeping/img


</tr>
<tr >

imgurl = ../.simg


imgurl = http://mail.somewhere.net/smokeping/img


</tr>
<tr >

datadir = /home/oetiker/data/projects/AADJ-smokeping/dist/var


datadir = /usr/local/smokeping/var


</tr>
<tr >

piddir = /home/oetiker/data/projects/AADJ-smokeping/dist/var


piddir = /usr/local/smokeping/var


</tr>
<tr >

cgiurl = http://people.ee.ethz.ch/~oetiker/smokeping/smokeping.cgi


cgiurl = http://mail.somewhere.net/cgi-bin/smokeping.cgi


</tr>
<tr >

smokemail = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/smokemail.dist


smokemail = /usr/local/smokeping/etc/smokemail


</tr>
<tr >

tmail = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/tmail.dist


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


</tr>
<tr >

_ _


</tr>
<tr >

syslogfacility = local0


</tr>
</table>
** Alerts **
<table class="table" >
<tr >

to =


to = someone@your.place


</tr>
<tr >

from = smokealert@


from = smokealert@your.smoke.server


</tr>
</table>
** Presentation **
<table class="table" >
<tr >

template = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/basepage.html.dist


template = /usr/local/smokeping/etc/basepage.html


</tr>
</table>
** Probes **
<table class="table" >
<tr >

binary = /usr/sepp/bin/fping


binary = /usr/sbin/fping


</tr>
</table>
For some strange reason I had to make this change to /usr/sbin/fping
chown apache /usr/sbin/fping

** Targets **
<table class="table" >
<tr >

+ World


</tr>
<tr >

menu = World Connectivity


</tr>
<tr >

title= World Connectivity


</tr>
<tr >

_ _


</tr>
<tr >

++ New Zealand


</tr>
<tr >

menu = New Zealand Servers


</tr>
<tr >

title = New Zealand Server


</tr>
<tr >

_ _


</tr>
<tr >

+++ a Server


</tr>
<tr >

menu = My Server


</tr>
<tr >

title = My Server


</tr>
<tr >

host = something.newskies.net


</tr>
</table>
_ _

`mkdir -p /var/www/html/smokeping/imgchown -R apache:apache /var/www/html/smokeping/img<br /><br />mkdir /usr/local/smokeping/var<br /><br />/usr/local/smokeping/bin/smokeping &<br /><br />#ps aux | grep smokeroot      8384  0.0  2.5  14976  3272 ?        Ss   May24   0:01 /usr/local/smokeping/bin/smokeping [FPing]apache    8435  0.0  1.7  11100  2168 ?        Ss   May24   0:02 /usr/bin/speedy_backend -w /var/www/cgi-bin/smokeping.cgiapache    8436  0.3  3.9  12648  5036 ?        S    May24   2:04 /usr/bin/speedy_backend -w /var/www/cgi-bin/smokeping.cgi
<br />

`vi /etc/rc.d/rc.local/usr/local/smokeping/bin/smokeping &




互联网规模的超融合平台

什么是互联网规模?什么是web scale风格?看下Nutanix的亮点。 阅读全文

2017DevOps采用和趋势现状-信息图

Published on February 11, 2017