{"id":593,"date":"2010-08-11T12:28:28","date_gmt":"2010-08-11T05:28:28","guid":{"rendered":"http:\/\/oktobrima.staff.fe.uns.ac.id\/?p=593"},"modified":"2010-08-11T12:28:28","modified_gmt":"2010-08-11T05:28:28","slug":"install-smokeping-di-ubuntu","status":"publish","type":"post","link":"https:\/\/angga.feb.uns.ac.id\/?p=593","title":{"rendered":"Install Smokeping Di UBUNTU"},"content":{"rendered":"<p>Wah ternyata smokeping di freebsd kadang gagal terus&#8230;&#8230;akhire pindah coba2 ke ubuntu deh eh ternyata lebih mudah langkah2nya<\/p>\n<p>1. instal ubuntu nya jgn lupa di<br \/>\n#apt-get update<\/p>\n<p>2. instal perintah seperti dibawah ini<\/p>\n<p>#aptitude install smokeping curl libauthen-radius-perl libnet-ldap-perl libnet-dns-perl libio-socket-ssl-perl libnet-telnet-perl libsocket6-perl libio-socket-inet6-perl apache2<\/p>\n<p>tunggu sampai proses selesai di install<\/p>\n<p>nah langkah selanjutnya<\/p>\n<h3>1 Preliminary Note<\/h3>\n<p>I have tested this on an Ubuntu 9.04 system. I will use the hostname <span class=\"system\">www.example.com<\/span> for this system in this tutorial. We need a web server on the system to display the graphs. I will install Apache2 and use Apache&#8217;s default vhost for hosting the graphs. If you use a different vhost, you might have to adjust its settings or copy the <span class=\"system\">smokeping.cgi<\/span> script from <span class=\"system\">\/usr\/lib\/cgi-bin\/smokeping.cgi<\/span> to the appropriate location.<\/p>\n<p>I&#8217;m running all the steps in this tutorial with root privileges, so make sure you&#8217;re logged in as root:<\/p>\n<p class=\"command\">sudo su<\/p>\n<h3>2 Installing Smokeping<\/h3>\n<p>To install Smokeping along with some other recommended packages, we simply run:<\/p>\n<p class=\"command\">aptitude install smokeping curl libauthen-radius-perl libnet-ldap-perl libnet-dns-perl libio-socket-ssl-perl libnet-telnet-perl libsocket6-perl libio-socket-inet6-perl apache2<\/p>\n<h3>3 Configuring Smokeping<\/h3>\n<p>The Smokeping configuration is in the file <span class=\"system\">\/etc\/smokeping\/config<\/span>. This file just includes some other files from the <span class=\"system\">\/etc\/smokeping\/config.d<\/span> directory so we have to modify these files. First we modify <span class=\"system\">\/etc\/smokeping\/config.d\/General<\/span>. In this file, you find some email settings and the URL of the Smokeping web interface. Change them like this:<\/p>\n<p class=\"command\">vi \/etc\/smokeping\/config.d\/General<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" align=\"center\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>\n<pre>*** General ***\n\n@include \/etc\/smokeping\/config.d\/pathnames\n\n# Please edit this to suit your installation\nowner    = Falko Timme\ncontact  = me@example.com\ncgiurl   = http:\/\/www.example.com\/cgi-bin\/smokeping.cgi\nmailhost = smtp.example.com\n# specify this to get syslog logging\nsyslogfacility = local0\n# each probe is now run in its own process\n# disable this to revert to the old behaviour\n# concurrentprobes = no<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>(Make sure that <span class=\"system\">mailhost<\/span> contains the primary MX for your email domain!)<\/p>\n<p>Open <span class=\"system\">\/etc\/smokeping\/config.d\/Alerts<\/span> and set the correct <span class=\"system\">to<\/span> and <span class=\"system\">from<\/span> addresses for emails sent by Smokeping:<\/p>\n<p class=\"command\">vi \/etc\/smokeping\/config.d\/Alerts<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" align=\"center\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>\n<pre>*** Alerts ***\nto = me@example.com\nfrom = smokealert@example.com\n[...]<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Next open <span class=\"system\">\/etc\/smokeping\/config.d\/Targets<\/span>. In this file, you find the <span class=\"system\">remark<\/span> line. Modify it to your likings:<\/p>\n<p class=\"command\">vi \/etc\/smokeping\/config.d\/Targets<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" align=\"center\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>\n<pre>[...]\nremark = Welcome to the SmokePing website of 'Example Company'\n[...]<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.1 Basic Example<\/h4>\n<p>We will now do a basic configuration to measure the network latency to certain servers in various countries (e.g. Germany, UK, USA). In this example, I&#8217;m going to test the network connection to the servers <span class=\"system\">www.heise.de<\/span> (Germany), <span class=\"system\">bbc.co.uk<\/span> (UK), and <span class=\"system\">web.mit.edu<\/span> (USA). <span class=\"highlight\">You should choose different servers to avoid a DOS!<\/span><\/p>\n<p>Open <span class=\"system\">\/etc\/smokeping\/config.d\/Targets<\/span> again:<\/p>\n<p class=\"command\">vi \/etc\/smokeping\/config.d\/Targets<\/p>\n<p>At the end of this file, you should see this:<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" align=\"center\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>\n<pre>[...]\n+ Local\n\nmenu = Local\ntitle = Local Network\n\n++ LocalMachine\n\nmenu = Local Machine\ntitle = This host\nhost = localhost<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Add the following lines to the file:<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" align=\"center\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>\n<pre>[...]\n+ World\n\nmenu = World\ntitle = World\n\n++ Europe\n\nmenu = Europe\ntitle =European Connectivity\n\n+++ Germany\n\nmenu = Germany\ntitle = German Connectivity\nalerts = bigloss,someloss,startloss\n\n++++ Heise\n\nmenu = Heise\ntitle = Heise\nhost = www.heise.de\n\n+++ UK\n\nmenu = United Kingdom\ntitle = United Kingdom\n\n++++ BBC\n\nmenu = BBC\ntitle = BBC\nhost = bbc.co.uk\n\n++ USA\n\nmenu = North America\ntitle =North American Connectivity\n\n+++ MIT\n\nmenu = MIT\ntitle = Massachusetts Institute of Technology Webserver\nhost = web.mit.edu<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Save your changes and restart Smokeping:<\/p>\n<p class=\"command\">\/etc\/init.d\/smokeping restart<\/p>\n<p>Smokeping will now probe the servers by pinging them (by using <span class=\"system\">\/usr\/bin\/fping<\/span>) &#8211; this is the default test.<\/p>\n<p>Now open a web browser and go to <span class=\"system\">http:\/\/www.example.com\/cgi-bin\/smokeping.cgi<\/span>. This is the start page:<\/p>\n<p><a class=\"thickbox\" href=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/big\/1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/1.png\" alt=\"\" width=\"550\" height=\"398\" \/><\/p>\n<div><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.howtoforge.com\/images\/click_to_enlarge.png\" border=\"0\" alt=\"Click to enlarge\" width=\"100\" height=\"12\" \/><\/div>\n<p><\/a>(JavaScript must be enabled in your browser to view the large image as an image overlay.)<\/p>\n<p>After a few minutes you should see the first graphs. This is how the latency of <span class=\"system\">localhost<\/span> looks (which is configured by default in <span class=\"system\">\/etc\/smokeping\/config.d\/Targets<\/span> unless you changed that):<\/p>\n<p><a class=\"thickbox\" href=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/big\/2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/2.png\" alt=\"\" width=\"550\" height=\"398\" \/><\/p>\n<div><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.howtoforge.com\/images\/click_to_enlarge.png\" border=\"0\" alt=\"Click to enlarge\" width=\"100\" height=\"12\" \/><\/div>\n<p><\/a>(JavaScript must be enabled in your browser to view the large image as an image overlay.)<\/p>\n<p><a class=\"thickbox\" href=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/big\/3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/3.png\" alt=\"\" width=\"550\" height=\"398\" \/><\/p>\n<div><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.howtoforge.com\/images\/click_to_enlarge.png\" border=\"0\" alt=\"Click to enlarge\" width=\"100\" height=\"12\" \/><\/div>\n<p><\/a>(JavaScript must be enabled in your browser to view the large image as an image overlay.)<\/p>\n<p>In the menu on the left side we can now go to the countries\/servers that we configured earlier and take a look at their graphs:<\/p>\n<p><a class=\"thickbox\" href=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/big\/4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/4.png\" alt=\"\" width=\"550\" height=\"398\" \/><\/p>\n<div><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.howtoforge.com\/images\/click_to_enlarge.png\" border=\"0\" alt=\"Click to enlarge\" width=\"100\" height=\"12\" \/><\/div>\n<p><\/a>(JavaScript must be enabled in your browser to view the large image as an image overlay.)<\/p>\n<p><a class=\"thickbox\" href=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/big\/5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/static.howtoforge.com\/images\/smokeping_ubuntu_9.04\/5.png\" alt=\"\" width=\"550\" height=\"398\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wah ternyata smokeping di freebsd kadang gagal terus&#8230;&#8230;akhire pindah coba2 ke ubuntu deh eh ternyata lebih mudah langkah2nya 1. instal ubuntu nya jgn lupa di #apt-get update 2. instal perintah seperti dibawah ini #aptitude install smokeping curl libauthen-radius-perl libnet-ldap-perl libnet-dns-perl libio-socket-ssl-perl libnet-telnet-perl libsocket6-perl libio-socket-inet6-perl apache2 tunggu sampai proses selesai di install nah langkah selanjutnya 1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-593","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/posts\/593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=593"}],"version-history":[{"count":0,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=\/wp\/v2\/posts\/593\/revisions"}],"wp:attachment":[{"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angga.feb.uns.ac.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}