Archive for November, 2015

Bypass the EWEA firewall

We can bypass the firewall by changing network adapter properties as follows:

No-Firewall

EWEA navigation script

This solution is to create a local HTML file from the dynamic www.ewea.org/navigation-file generated by Typo3, that can be rsync’d to other servers so that they may include it in their templates as local files, speeding up the page creation process (and bypassing a huge latency issue we had with the EWEA 2015 programme pages).

#!/bin/sh
curl -L -o /var/www/html/sites/www.ewea.org/navigation http://www.ewea.org/navigation-file
rsync -avze "ssh -p 10022 -i /root/.ssh/main_prv_key" /var/www/html/sites/www.ewea.org/navigation [email protected]:/var/www/html/
rsync -avze "ssh -p 10022 -i /root/.ssh/main_prv_key" /var/www/html/sites/www.ewea.org/navigation [email protected]:/var/www/html/
rsync -avze "ssh -p 10022 -i /root/.ssh/main_prv_key" /var/www/html/sites/www.ewea.org/navigation [email protected]:/var/www/html/

This is scheduled to run daily at midnight via cron

On the receiving server, the following code is then used to display the navigation on the website.

<div id="navigation">
	<?php // INCLUDE EWEA MENU
	include("/var/www/html/navigation");
	?>
</div><!-- end #navigation -->

What “System Load” actually means

Today we wanted to find out what System Load on Monitorix actually meant and where it takes its figures from.

system1z.1day

So I actually emailed the developer of Monitorix and asked him the question!
Here is his reply:

Dear Jason,

I'm very glad to know that you are using and enjoying Monitorix.

As you might already know, UNIX, GNU/Linux, BSD systems, MacOSX and other UNIX-like systems have a command line called 'uptime' that shows three values called 'load average' (among other things). These numbers tell you how busy your system is, they are not self-explanatory at first, but shouldn't be difficult to become familiar with them.
Since you aren't familiar with them yet, I'd suggest you to search on Google something like 'understanding UNIX/Linux CPU load average values' and you'll end up with tons of results pointing with different blogs, articles, HOWTOs, etc. that should clear up things to you.

I've done myself that search and I've found a result pretty explanatory:
http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
Besides all this, what Monitorix does is read these numbers from your system and create a graph in order to have a more visual representation of them.

I hope that helped you.

Best regards.

Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat

--

On 11/09/2015 01:06 PM, Jason Bickley wrote:
> Dear Jordi,

> My name is Jason Bickley and I am the webmaster for the European Wind
> Energy Association in Brussels.

> Firstly, please let me thank you for the amazing tool Monitorix – I
> have it running on 7 web servers and love the ease of installation and use.

> I have been discussing internally with our Web Developer this morning
> about the first graph "System Load" because we are trying to
> understand what it actually is.

> How are the figures obtained? Is there an algorithm taking into
> account all the things happening on the server to determine the final
> load figure? Or is it a more CPU-related thing?

> Any light shed upon the topic is highly appreciated!

> Best regards,

> *Jason Bickley*
> Senior Web Manager
> *EWEA - The European Wind Energy Association asbl/vzw*
> Rue d'Arlon 80, B-1040 Brussels, Belgium
> Tel: +32 2 213 18 19 | Fax: +32 2 213 18 90 | VAT: BE 0476 915 445
> Email: [email protected] | Web: http://www.ewea.org

Force download on PDF files

Placing the following snippet in an .htaccess file in a directory will force all pdfs (.PDF and .pdf) there to be downloaded to the computer rather than opened in the browser. This is good for occasions when IE is caching the PDF and users aren’t seeing the latest version.

<FilesMatch "\.(?i:pdf)$">
  ForceType application/octet-stream
  Header set Content-Disposition attachment
</FilesMatch>