From : http://ai.net.nz/horde/wicked/display.php?page=SmokePing
Install needed packages
rrdtool
1
| <br />**perl-CGI-SpeedyCGI**<br />
|
`yum install perl-CGI-SpeedyCGI
fping
1
| <br />** Or do them all together:**<br />
|
`yum install rrdtool perl-CGI-SpeedyCGI fping
Smokeping
1
| `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
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
| <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-binpico /usr/local/smokeping/etc/config
etc/config_ General _
`vi /etc/rc.d/rc.local/usr/local/smokeping/bin/smokeping &