{"id":38,"date":"2012-02-27T02:01:49","date_gmt":"2012-02-27T02:01:49","guid":{"rendered":"http:\/\/en.latindevelopers.com\/ivancp\/?p=38"},"modified":"2012-02-27T02:03:54","modified_gmt":"2012-02-27T02:03:54","slug":"install-bmon-as-service","status":"publish","type":"post","link":"http:\/\/en.latindevelopers.com\/ivancp\/2012\/install-bmon-as-service\/","title":{"rendered":"Install bmon as service"},"content":{"rendered":"<p><a href=\"http:\/\/www.infradead.org\/~tgr\/bmon\/\" target=\"_blank\">bmon<\/a> is a useful network monitoring tool, the most useful feature is that bmon store historical data from las 60 seconds, minutes, hours and days, the &#8220;problem&#8221; is that bmon needs to be running all time.<\/p>\n<p><a href=\"http:\/\/www.latindevelopers.com\/ivancp\/wp-content\/uploads\/bmon-local.png\"><img loading=\"lazy\" class=\"aligncenter\" title=\"bmon-local\" src=\"http:\/\/www.latindevelopers.com\/ivancp\/wp-content\/uploads\/bmon-local-297x300.png\" alt=\"\" width=\"297\" height=\"300\" \/><\/a><\/p>\n<p>If you have a network server with Linux as proxy, you will probably need to see the current bandwidth usage or see what happens 60 minutes ago.<\/p>\n<p>We can use <a href=\"http:\/\/www.gnu.org\/software\/screen\/\" target=\"_blank\">screen<\/a> with a running bmon process to generate HTML result of current bandwidth usage, and we will see generated HTML pages from Apache.<\/p>\n<p>Steps to install and configure<\/p>\n<p>Pasos para instalar y ejecutar:<\/p>\n<ol>\n<li>Install bmon and screen:<br \/>\n<code><code><br \/>\nsudo apt-get install screen bmon<\/code><\/code>&nbsp;<\/li>\n<li>Create the directory: (you can change this option)\/var\/www\/bmon-html<\/li>\n<li>Create the file <code>\/etc\/init\/bmon.conf<\/code>\u00a0 with follow content:\n<pre>description \"bmon bandwidth monitoring process\"\r\n\r\nstart on (local-filesystems and net-device-up and runlevel [2345])\r\nstop on runlevel [016]\r\n\r\nexec screen -d -m -S bmon bmon -O html:path=<strong>\/var\/www\/bmon-html<\/strong><\/pre>\n<\/li>\n<li>Start the new service:<code>sudo service bmon start<\/code>\n<p>&nbsp;<\/li>\n<li>Then the web page\u00a0 http:\/\/localhost\/bmon-html\/ will be availbale and updated constantly.<a href=\"http:\/\/en.latindevelopers.com\/ivancp\/wp-content\/uploads\/bmon-ubuntu-server.png\"><img loading=\"lazy\" class=\"aligncenter size-Big-Preview wp-image-39\" title=\"bmon ubuntu-server\" src=\"http:\/\/en.latindevelopers.com\/ivancp\/wp-content\/uploads\/bmon-ubuntu-server-405x300.png\" alt=\"\" width=\"405\" height=\"300\" srcset=\"http:\/\/en.latindevelopers.com\/ivancp\/wp-content\/uploads\/bmon-ubuntu-server-405x300.png 405w, http:\/\/en.latindevelopers.com\/ivancp\/wp-content\/uploads\/bmon-ubuntu-server-300x221.png 300w, http:\/\/en.latindevelopers.com\/ivancp\/wp-content\/uploads\/bmon-ubuntu-server.png 884w\" sizes=\"(max-width: 405px) 100vw, 405px\" \/><\/a><\/li>\n<\/ol>\n<p>Enjoy!<\/p>\n<p>&nbsp;<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-official sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"http:\/\/en.latindevelopers.com\/ivancp\/2012\/install-bmon-as-service\/\" data-text=\"Install bmon as service\"  >Tweet<\/a><\/li><li class=\"share-facebook\"><div class=\"fb-share-button\" data-href=\"http:\/\/en.latindevelopers.com\/ivancp\/2012\/install-bmon-as-service\/\" data-layout=\"button_count\"><\/div><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>bmon is a useful network monitoring tool, the most useful feature is that bmon store historical data from las 60 seconds, minutes, hours and days, the &#8220;problem&#8221; is that bmon needs to be running all time. If you have a network server with Linux as proxy, you will probably need to see the current bandwidth [&hellip;]<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-official sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"http:\/\/en.latindevelopers.com\/ivancp\/2012\/install-bmon-as-service\/\" data-text=\"Install bmon as service\"  >Tweet<\/a><\/li><li class=\"share-facebook\"><div class=\"fb-share-button\" data-href=\"http:\/\/en.latindevelopers.com\/ivancp\/2012\/install-bmon-as-service\/\" data-layout=\"button_count\"><\/div><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":39,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[8],"tags":[11,9,10,12],"jetpack_featured_media_url":"http:\/\/en.latindevelopers.com\/ivancp\/wp-content\/uploads\/bmon-ubuntu-server.png","jetpack_shortlink":"https:\/\/wp.me\/p2f09V-C","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/posts\/38"}],"collection":[{"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":3,"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":49,"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/posts\/38\/revisions\/49"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/media\/39"}],"wp:attachment":[{"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/en.latindevelopers.com\/ivancp\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}