1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
5 | <meta name="generator" content="pandoc" /> |
---|
6 | <title>Improved Linux performance stats</title> |
---|
7 | </head> |
---|
8 | <body> |
---|
9 | <div id="header"> |
---|
10 | <h1 class="title">Improved Linux performance stats</h1> |
---|
11 | </div> |
---|
12 | <div id="TOC"> |
---|
13 | <ul> |
---|
14 | <li><a href="#load-average"><span class="toc-section-number">1</span> Load Average</a></li> |
---|
15 | <li><a href="#memory-utilisation"><span class="toc-section-number">2</span> Memory utilisation</a></li> |
---|
16 | </ul> |
---|
17 | </div> |
---|
18 | <p>If you are monitoring Linux servers, then Load Average and Memory Utilisation are two important health checks. Cacti can measure these out-of-the-box, but you can also tune the graphs to make them much more useful.</p> |
---|
19 | <h1 id="load-average"><a href="#TOC"><span class="header-section-number">1</span> Load Average</a></h1> |
---|
20 | <p>To monitor Linux load average with a standard Cacti installation:</p> |
---|
21 | <ul> |
---|
22 | <li>Go to "Devices", select a device, then "Create Graphs for this host"</li> |
---|
23 | <li>Under "Graph Templates" select dropdown "Create: [ucd/net - Load Average]"</li> |
---|
24 | <li>At the bottom of the page click "Create"</li> |
---|
25 | </ul> |
---|
26 | <p>However the graph format is poorly designed: the 1-minute, 5-minute and 15-minute load averages are stacked on top of one another instead of behind each other.</p> |
---|
27 | <p>This is easily fixed. There is a very detailled description here: <a href="http://hans.fugal.net/blog/2009/01/10/sensible-graphs-with-cacti/"><code class="url">http://hans.fugal.net/blog/2009/01/10/sensible-graphs-with-cacti/</code></a> but in summary the steps are as follows.</p> |
---|
28 | <ul> |
---|
29 | <li>Go to console, Graph Templates</li> |
---|
30 | <li>Click on "ucd/net - Load Average"</li> |
---|
31 | </ul> |
---|
32 | <p>You should see a table of 7 items.</p> |
---|
33 | <ul> |
---|
34 | <li>Click on 'Item # 3' which is 5 Minute Average. It opens a new page.</li> |
---|
35 | <li>Change 'STACK' to 'LINE1'</li> |
---|
36 | <li>Change 'Color' to '002A8F'</li> |
---|
37 | <li>Click 'Save'</li> |
---|
38 | <li>Click on 'Item # 5' which is 15 Minute Average. It opens a new page.</li> |
---|
39 | <li>Change 'STACK' to 'LINE1'</li> |
---|
40 | <li>Click 'Save'</li> |
---|
41 | <li>On the line for 'Item # 7', click the red cross at the end of the line to delete it</li> |
---|
42 | </ul> |
---|
43 | <p>Now view your graphs. This change will automatically reflect in all the load average graphs you have - even ones you had previously created.</p> |
---|
44 | <h1 id="memory-utilisation"><a href="#TOC"><span class="header-section-number">2</span> Memory utilisation</a></h1> |
---|
45 | <p>The same blog page referred to above also has a procedure for making the memory graphs easier to understand. This is best done by downloading his template to your laptop:</p> |
---|
46 | <p><a href="http://hans.fugal.net/cacti/cacti_graph_template_ucdnet_-_memory_usage_hans.xml"><code class="url">http://hans.fugal.net/cacti/cacti_graph_template_ucdnet_-_memory_usage_hans.xml</code></a></p> |
---|
47 | <p>There is a small bug in this XML file which needs fixingd. Open the file in a text editor, find the section which begins "Swap Used (Hans)" and a few lines further down change</p> |
---|
48 | <pre><code><value>e,f,-</value> |
---|
49 | </code></pre> |
---|
50 | <p>to</p> |
---|
51 | <pre><code><value>f,e,-</value> |
---|
52 | </code></pre> |
---|
53 | <p>Now you need to import this template into Cacti. In the web interface select "Import Templates", next to Import Template from Local File click "choose", locate the edited XML file on your hard drive, then click "Save". It should show successful import of some templates.</p> |
---|
54 | <p>To start using this template, navigate to a device, click "Create Graphs for this Host", under Graph Templates select "ucd/net - Memory Usage (Hans)", then at the bottom of the page click Create.</p> |
---|
55 | </body> |
---|
56 | </html> |
---|