{"id":16,"date":"2015-09-30T12:47:33","date_gmt":"2015-09-30T10:47:33","guid":{"rendered":"http:\/\/mattyb.co.za\/?p=16"},"modified":"2015-09-30T13:30:31","modified_gmt":"2015-09-30T11:30:31","slug":"rage-2015-post-3","status":"publish","type":"post","link":"https:\/\/mattyb.co.za\/index.php\/2015\/09\/30\/rage-2015-post-3\/","title":{"rendered":"rAge 2015 Post 3"},"content":{"rendered":"<p>Today we add nginx to out Monitorix, and install <a href=\"http:\/\/bandwidthd.sourceforge.net\/\" target=\"_blank\">BandwidthD<\/a>\u00a0for extra bandwidth monitoring. I would like to see who our biggest bandwidth movers are. I use\u00a0bandwidthd on a few PFSense boxes I run, and I love the way it works \ud83d\ude42<\/p>\n<p>Nginx seems to have its own monitoring running on localhost:<br \/>\n<em>w3m localhost<\/em><br \/>\n<em>Active connection: 1<\/em><br \/>\n<em>server accepts handled requests<\/em><br \/>\n<em>2147 2147 17038<\/em><br \/>\n<em>Reading: 0 Writing: 1 Waiting: 0<\/em><\/p>\n<p>Monitorix seems to know about this, and so we just need to tell it to go looking.<br \/>\nEdit \/etc\/monitorix\/monitorix.conf:<br \/>\nFind this line: nginx = n<br \/>\nMake it:\u00a0 nginx = y<br \/>\nChange any other things you would like in this file, then just save it.<\/p>\n<p>Now, you should see the graph in Monitorix \ud83d\ude42<\/p>\n<p>Now we wanna install BandwidthD, and link it into Monitorix (Sorta)<br \/>\nRun:<br \/>\n<em>apt-get install bandwidthd<\/em><\/p>\n<p>And complete the installation.<\/p>\n<p>Then we wanna add it to the same webservice as monitorix. We run:<br \/>\n<em>ln -s \/var\/lib\/bandwidthd\/htdocs\/ \/var\/lib\/monitorix\/www\/bandwidth<\/em><\/p>\n<p>Now we just open:\u00a0http:\/\/192.168.1.12:8080\/monitorix\/bandwidth\/index.html<br \/>\nNow we have more pretty graphs! \ud83d\ude42<\/p>\n<p>The data may not save on a reboot though, so that is something we have to look into&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we add nginx to out Monitorix, and install BandwidthD\u00a0for extra bandwidth monitoring. I would like to see who our biggest bandwidth movers are. I use\u00a0bandwidthd on a few PFSense boxes I run, and I love the way it works \ud83d\ude42 Nginx seems to have its own monitoring running on localhost: w3m localhost Active connection: &hellip; <a href=\"https:\/\/mattyb.co.za\/index.php\/2015\/09\/30\/rage-2015-post-3\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">rAge 2015 Post 3<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-rage-2015"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p71fL2-g","jetpack-related-posts":[{"id":72,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/11\/12\/the-bigger-scope-of-things\/","url_meta":{"origin":16,"position":0},"title":"The bigger scope of things.","author":"admin","date":"November 12, 2015","format":false,"excerpt":"Sometimes, we can use allll of the IPs, we don't get the luxury of having an infinite amount available, and we need to make do with ONE IP. Well, NGINX doesnt stress about that, we just need to set it up. Nginx will take a look at the Host Headers,\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":129,"url":"https:\/\/mattyb.co.za\/index.php\/2018\/01\/20\/cpanel-nginx-hack-mirror-sometimes-breaks\/","url_meta":{"origin":16,"position":1},"title":"CPanel NGINX hack-mirror, sometimes breaks","author":"admin","date":"January 20, 2018","format":false,"excerpt":"We had a few clients complaining about corrupted downloads from our mirror when trying to run upcp CPanel update, so I checked it out. It looks like the NGINX Proxy Cache had corruption, and it had a file \"http:\/\/cpproxy.afrixx.com\/cpanelsync\/11.68.0.26\/binaries\/linux-c7-x86_64\/bin\/setsiteip.xz\" that was invalid, and corrupted based on the expected checksum. I've\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/09\/26\/rage-lan-2015\/","url_meta":{"origin":16,"position":2},"title":"rAge LAN 2015 Post 1","author":"admin","date":"September 26, 2015","format":false,"excerpt":"So I am a part of building the NAG LAN at the biggest Gaming Expo in South Africa. rAge My main purpose at the event will be to set-up the the LAN cache, as done here by Multiplay. I have 2 x the below to work with: 2 x Intel\u2026","rel":"","context":"In &quot;rAge 2015&quot;","block_context":{"text":"rAge 2015","link":"https:\/\/mattyb.co.za\/index.php\/category\/rage-2015\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/09\/29\/rage-2015-post-2\/","url_meta":{"origin":16,"position":3},"title":"rAge 2015 Post 2","author":"admin","date":"September 29, 2015","format":false,"excerpt":"So today we will take a look at setting up\u00a0Monitorix\u00a0on our Ubuntu box. We will use this to see pretty graphs of our server, and find out what it is doing, and how it is coping with the loads put on it. First, we have to add the respository Add\u2026","rel":"","context":"In &quot;rAge 2015&quot;","block_context":{"text":"rAge 2015","link":"https:\/\/mattyb.co.za\/index.php\/category\/rage-2015\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.monitorix.org\/imgs\/system.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.monitorix.org\/imgs\/system.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.monitorix.org\/imgs\/system.png?resize=700%2C400 2x"},"classes":[]},{"id":21,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/10\/13\/rage-2015-the-stats\/","url_meta":{"origin":16,"position":4},"title":"rAge 2015 &#8211; The stats","author":"admin","date":"October 13, 2015","format":false,"excerpt":"So, stats from the SteamCache at rAge 2015 16.4TB was recieced through the internet IP, and 51.1TB was sent out by the cache's Steam IP. The highest peak of traffic to the cache from the LAN bond, was 10.07Gbps, on Friday morning. The max tracked connections to the cache was\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"system1z.1day","src":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2015\/10\/system1z.1day.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2015\/10\/system1z.1day.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2015\/10\/system1z.1day.png?resize=700%2C400 2x"},"classes":[]},{"id":90,"url":"https:\/\/mattyb.co.za\/index.php\/2016\/03\/09\/rage-cape-town-2016\/","url_meta":{"origin":16,"position":5},"title":"rAge Cape Town 2016","author":"admin","date":"March 9, 2016","format":false,"excerpt":"So, with the event fast approaching, planning is well under way for rAge Cape Town 2016. Sadly since the event is fairly\u00a0small this year, with only a few hundred gamers, which means there is a limited budget. This is still okay, I will be paying my way and heading down\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rageexpo.co.za\/wp-content\/media\/rage-website-header-banner20457.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rageexpo.co.za\/wp-content\/media\/rage-website-header-banner20457.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rageexpo.co.za\/wp-content\/media\/rage-website-header-banner20457.jpg?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":2,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions\/18"}],"wp:attachment":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}