jablonka.czprosek.czf

weathermap

Subversion Repositories:
[/] [docs/] [pages/] [install-cacti.html] - Blame information for rev 47

 

Line No. Rev Author Line
11simandl<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 
4<html lang="en" xml:lang="en">
5<head>
6 <link rel="stylesheet" type="text/css" media="screen" href="weathermap.css" />
7 <meta name="generator" content=
8 "HTML Tidy for Mac OS X (vers 12 April 2006), see www.w3.org" />
9 
10 <title>PHP Weathermap
11v0.91
12 - Installation - Cacti Plugin</title>
13<style type="text/css" media="print">
14/*<![CDATA[*/
15body { font-size: 12pt; }
16a { color: black; text-decoration: underline; font-weight: normal;}
17/*]]>*/
18</style>
19 
20</head>
21 
22<body>
23 <div id="frame">
24 
25 
26<div class="navcontainer">
27 <ul id="navlist">
28 <li><a href="main.html">Main Page</a></li>
29 <li><a href="main.html#installation">Installation</a></li>
30 <li><a href="main.html#basics">Basics</a></li>
31 <li><a href="faq.html">FAQ and Tips</a></li>
32 <li><a href="main.html#example">Sample Map</a></li>
33 <li><a href="cli-reference.html">CLI Reference</a></li>
34 <li><a href="config-reference.html">Config Reference</a></li>
35 <li><a href="advanced.html">Advanced Topics</a></li>
36 <li><a href="editor.html">Editor</a></li>
37 <li><a href="cacti-plugin.html">Cacti Plugin</a></li>
38 <li><a href="http://www.network-weathermap.com/">Site</a></li>
39 </ul>
40</div>
41 
42<div id="header">
43 <h1>PHP Weathermap
44v0.91
45</h1>
46 <h4>Copyright &copy; 2005-2007 Howard Jones, <tt><a
47href="mailto:howie@thingy.com">howie@thingy.com</a></tt>. (<a
48href="http://www.network-weathermap.com/">Website</a>)</h4>
49</div>
50 
51 
52 <h2>Installation</h2>
53 <h3>Cacti plugin</h3>
54 
55<h4>Requirements</h4>
56<p><strong>Before</strong> doing anything else, please verify that your <a href="http://cactiusers.org/">Plugin Architecture</a> is working properly with a simpler plugin, like <a href="http://wotsit.thingy.com/haj/cacti/links-plugin.html">Links</a> or <a href="http://cactiusers.org/">Tools</a>. Weathermap is relatively complex, and fault-finding both your Cacti Plugin Architecture and Weathermap at the same time will make life harder for you!</p>
57 
58<p>You will need the 'pcre' and 'gd' PHP modules in <em>your command-line PHP</em>. The poller-process runs using the command-line PHP which is not always the same as the server-side one. In some situations it is possible to have two completely different PHP installations serving these two - if you install from a package, then re-install from source, but to a different directory, for example. The poller process should warn you if the part it needs is not present.</p>
59 
60<p>Before you start using it, you might want to change one PHP setting. Weathermap uses a fair bit of memory by PHP standards, as it builds the image for the map in memory before saving it. As a result, your PHP process <i>may</i> run out of memory. PHP has a 'safety valve' built-in, to stop runaway scripts from killing your server, which defaults to 8MB in most versions (this has changed in 5.2.x). This is controlled by the 'memory_limit =' line in php.ini. You may need to increase this to 32MB or even more if you have problems. These problems will typically show up as the poller process just dying with no warning or error message, as PHP kills the script.</p>
61 
62<h4>Installation</h4>
63<p>To use the Cacti plugin, you <i>must</i> unpack the zip file into a directory called '<i>&lt;cacti_root&gt;</i>/plugins/weathermap'. The zip contains a folder called 'weathermap' already, so unzipping it in the plugins folder should do the job.</p>
64 
65<p>You can then use the pre-install checker to see if your PHP environment has everything it needs. To do this, you need to run a special <tt>check.php</tt> script, twice...</p>
66<p>First, go to http://yourcactiserver/plugins/weathermap/check.php to see if your webserver PHP (mod_php, ISAPI etc) is OK. Then, from a command-prompt run <tt>php check.php</tt> to see if your command-line PHP is OK. If any modules or functions are missing, you will get a warning, and an explanation of what will be affected (not all of the things that are checked are deadly problems).</p>
67 
68 
69<h4>File Permissions</h4>
70<p>
71 You will need to change the permissions on the <tt>output</tt> directory, so that the Cacti poller process can write to it. This is the same as you would have done for the <tt>rra</tt> directory while installing Cacti itself originally. For a *nix system, it will be something like:
72 
73<div class="shell"><pre>
74chown cactiuser output
75</pre></div>
76 
77<h4>Getting Started</h4>
78 
79<p>To actually enable the plugin, you need to add a line to your Cacti includes/config.php file:
80<div class="shell"><pre>
81$plugins = array();
82$plugins[] = 'monitor';
83<b>$plugins[] = 'weathermap';</b>
84</pre></div>
85<p>
86Now, refresh your Cacti page, to be sure that everything is still working right. If not, remove the line you just added and you should return to normal. Make a note of any error message and let me know!
87</p>
88<p><img src="../images/cacti_step1.png" />Assuming it all looks fine (but not very different), you can start to enable Weathermap. Log in as 'admin' or another user with User Management rights, go to the User Management section under Tools in the Cacti console, and then choose your own username from the list. Check the two new 'realms' boxes that should be there - View Weathermaps, and Manage Weathermaps - and then click Save. A 'Weathermap' tab should appear at the top of the page.</p>
89<p>That's it! The Weathermap plugin is installed. To go further, you need some weathermap configuration files to define your maps. You can do this in two ways - using the Web-based map editor, or by editing the text-based configuration files directly.</p>
90<p>To use the editor, you need to make a few more changes. </p>
91<p>To learn more about actually <i>using</i> the Cacti plugin, see the <a href="cacti-plugin.html">Cacti Plugin page</a>.</p>
92 </div>
93</body>
94</html>

Powered by WebSVN 2.2.1