Download unzip
wget Http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.8.tar.gztar xvzf smokeping-2.6.8.tar.gzcd mokeping-2.6.8./ Configure--prefix=/usr/local/smokeping
If prompted as follows:
** aborting configure ****************************** if you know where perl can find the missing modules, set the perl5lib environment variable accordingly. first though, make sure that ' Perl ' starts the perl binary you want to use for smokeping. now you can install local copies of the missing modules by running ./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty the rrds perl module is part of rrdtool. either use the rrdtool package provided by your os or install rrdtool from source. If you install from source, the rrds module is located Prefix/lib/perl
Perform
Mkdir-p/usr/local/smokeping/thirdparty./setup/build-perl-modules.sh/usr/local/smokeping/thirdparty
There may be a general DNS unresolved condition changed to 8.8.8.8 test
If the above two commands are executed successfully or if this is the case, then it should be perl5lib this environment variable setting
Perform
Export PERL5LIB=/USR/LOCAL/SMOKEPING/THIRDPARTY/LIB/PERL5
And then continue to execute
./configure--prefix=/usr/local/smokeping
Execute after completion
Gmake Install
Installation Complete
If there is no fping this command is to be installed
Yum Install fping
Cd/usr/local/smokeping/etc
Front Configuration
General ***owner = Networkcontact = [email protected]mailhost = Localhost#sendmail =/usr/lib/sendmailimgcache =/usr/ Local/smokeping/cacheimgurl =/cachedatadir =/usr/local/smokeping/datapiddir =/usr/local/smokeping/varcgiurl = http ://192.168.1.23:55555/smokepingsmokemail =/usr/local/smokeping/etc/smokemail.disttmail =/usr/local/smokeping/etc /tmail.distsyslogfacility = Local0
Node configuration
binary =/usr/sbin/fping*** Slaves ***secrets=/usr/local/smokeping/etc/smokeping_secrets.dist+ bjdisplay_name= bjcolor=ea0000+ shdisplay_name=shcolor=ff359a+ sddisplay_name=sdcolor=ff00ff+ gddisplay_name=gdcolor=0066cc+ scdisplay_name=sccolor=006000+ hkdisplay_name=hkcolor=00e3e3
Home Title and introduction
menu = Toptitle = Network smokeping Monitoring Center Remark = "Introduction word"
Join the Host
+enterprisemenu = Enterprise title = Enterprise ++gd_enterprisemenu = Enterprise title = enterprise + + + 192168344menu = 192.168.3.44title = 192.168.3.44#alert s = somelossslaves = BJ GD SC//node name host = 192.168.3.44+++ 192168345menu = 192.168.3.45title = 192.168.3.45#alerts = some Loss//Alarm slaves = BJ GD SC//node name host = 192.168.3.45
Summarized as follows:
+ + + Localnetworkmenu = Summary title = Total Host =/enterprise/gd_enterprise/192168344/enterprise/gd_enterprise/192168345// One middle space continues to add another
If the server is from a node then it is loaded directly after booting as follows:
Mkdir/usr/local/smokeping/cache
Mkdir/usr/local/smokeping/data
/usr/local/smokeping/bin/smokeping--master-url=http://192.168.1.23:55555/smokeping/smokeping.cgi--cache-dir=/ usr/local/smokeping/cache/--shared-secret=/usr/local/smokeping/etc/passwd--SLAVE-NAME=BJ--logfile=/usr/local/ Smokeping/slave.log
--master-url=//connection to the primary server
--shared-secret=//Password file directory can be used with ready-made smokeping_secrets.dist or new L inside the password to be the same as the service level of authority 600
The content is like password 123456.
--slave-name//Node name
--logfile=//log file
Note The password file server is also required to fill out this file smokeping_secrets.dist permissions are also 600
The format is as follows: node name colon password
bj:123456
sc:234567
gd:345678
Restart the server after all installation, wait 5 minutes to see if the node has data if the client test is not restarted. Look at the log
Smokeping Master-Slave Simple construction