求助 关于cacti-cacti weathermapp的问题

PHP Weathermap
- Installation - Cacti Plugin and Editor
Installation
Cacti plugin and Editor
Requirements
Before doing anything else, please verify that your
is working properly with a simpler plugin, like
or . Weathermap is relatively complex, and fault-finding both your Cacti Plugin Architecture and Weathermap at the same time will make life harder for you!
You will need the 'pcre' and 'gd' PHP modules in both your command-line and server-side (mod_php/ISAPI) PHP. The poller-process runs using the command-line PHP, and the editor uses 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 editor and the poller process should both warn you if the part they need is not present.
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 check.php script, twice...
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 php check.php 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).
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 may 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.
Installation
To use the Cacti plugin, you must unpack the zip file into a directory called '&cacti_root&/plugins/weathermap'. The zip contains a folder called 'weathermap' already, so unzipping it in the plugins folder should do the job.
File Permissions
You will need to change the permissions on the output directory, so that the Cacti poller process can write to it. This is the same as you would have done for the rra directory while installing Cacti itself originally. For a *nix system, it will be something like:
chown cactiuser output
Getting Started
To actually enable the plugin, you need to add a line to your Cacti includes/config.php file:
$plugins = array();
$plugins[] = 'monitor';
$plugins[] = 'weathermap';
Now, 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!
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.
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.
To use the editor, you need to make a few more changes (see below).
To learn more about actually using the Cacti plugin, see the .
The Editor
Once you have weathermap itself working, continue onto the editor:
Copy the editor-config.php-dist file to editor-config.php. If you want to be able to pick data sources from your Cacti installation by name, edit the file and make sure that the line that sets $cacti_base is correct, and that the base URI below that is also correct for your Cacti installation (these two lines are marked CHANGE in the file).
Make sure that your webserver can write to the configs directory. To do this, you need to know which user your webserver runs as (maybe 'nobody', 'www' or 'httpd' on most *nixes) and then run:
chown www configs
chmod u+w configs
In a pinch, you can just chmod 777 configs, but this really isn't a recommended solution for a production system.
On Windows, the same applies - the user that runs the webserver runs as should have permissions to write new files, and change existing files in the configs folder.
You should now be able to go to http://your.server/cacti/plugins/weathermap/editor.php in a browser, and get a welcome page that offers to load or create a config file. That's it. All done. Please see the
for more about using the editor!
Important Security Note: The editor allows anyone who can access editor.php to change the configuration files for your network weathermaps. There is no authentication built-in for editing, even with the Cacti Plugin. This is why the configuration file doesn't exist by default - the editor won't work until you choose to make it work. It's recommended that you either: change the ownership of configuration files so that the editor can't write to them once they are complete, or use your webserver's authentication and access control facilities to limit who can access the editor.php URL. On apache, this can be done using the FilesMatch directive and mod_access.求助关于地质行业择业的问题,急!!!_百度知道
求助关于地质行业择业的问题,急!!!
月,前几天已经面试过了杭州的一家地下管网GIS公司(探测部),要求倒是蛮多的,当然我不知道他说的话几分真,但是工资基本稳定,福利差不多在750元&#47,ENGLISH,月薪大概4-5千,我在他们那里的工作估计也就是这个。我想请教一下有经验的同行前辈,北京市地质公司,有年终奖,这家公司是德企,转正基本工资大概千。第二家公司还没通知我去面试,工资因为没面试所以还不知道呢,因为人事催了我几次英文简历,LINUX系统基本命令等等,公司的项目基本都是跟政府挂钩的,做地铁隧道导向定位仪器和服务的、MATLAB懂得最好,给甲方做技术培训,转正差不多在元&#47,协助销售之类的。第三家公司是阳煤集团地质勘探(石油),老板基本同意了还说想把我向管理人才培养现在的情况是这样,从个人职业发展前途方面考虑,这三家公司选哪一家比较好,年底双薪,工作地点在邯郸;月,C++,但是看得出来他们很想招人。还有一家公司
忘了补充了,我有地质相关行业两年工作经验。
第三家地质勘探的话出野外的机会比较多,这是大问题哦?就是买仪器卖软件或者以前的,呵呵会面临一个异地恋的问题德国的技术还是可以的但是看到做技术培训应该是营销吧。推荐第一家?所以不建议去。综合来看的话工作都差不多哦,请注意!但是不好找媳妇,出差也不会太久,应该工地离家不太远吧,当然也会有野外津贴
嗯,深感赞同,就是工作了2年,歇了半年,现在都快27了,因为要考虑结婚的事所以也不想跑太远了。之前就是因为山西离家太远且不大适应那里的气候和饮食习惯。想了解下城市地下管网GIS这个行业的情况目前的现状和发展前景,这家杭州的公司做的是智慧型管网GIS,就是在WEB端、电脑和手持设备及手机客户端可以随时查看地下管网水流参数、管道压力之类的。这个公司出差不太辛苦。出差地点都在浙江省内。
GIS玩儿的好的应该是测绘会专业更靠谱,但是现在这个技术啊只要你学就可以学会没啥难的。我感觉这行业应该是新兴行业,因为现在只要是个城市一到下雨都会积水什么的,还有哈这个城市从80年代开始兴建,很多地方的下水管网几乎都存在这不够用的现象。哎,自己斟酌吧!给个赞呗!
其他类似问题
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁Cacti和weathermap插件安装及使用文档_免费下载安装,使用,插件,Cacti,cacti..
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
Cacti和weathermap插件安装及使用文档_免费下载
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口【求助】关于P站的搜索问题_pixiv吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:58,494贴子:
【求助】关于P站的搜索问题收藏
分别是,,于是我想查一下APH相关的图,搜出来的结果是0啊,是我的关键词不对么。还有那个users怎么用啊,这样不对么()
1楼 18:34&|
相关的贴子576571107相关的图贴
帮顶。会有人告诉你的——来自 爱贴吧 Windows Phone 客户端
2楼 11:01&|来自
固定帖老是被漠视+不吧内搜索找答案:说过N次了P站搜索有些字是要繁体字才能搜索。=========================P白乱幻想+乱搞出来的问题:本吧曾经有人问为何自己照下图弄的联接或者加网页联接代(和谐)码,却无法形成下图的效果。图上该功能只有付费会员才能用的功能,普通会员是不能用的。
3楼 14:50&|
登录百度帐号
内&&容:使用签名档&&
为兴趣而生,贴吧更懂你。&或

我要回帖

更多关于 nagios cacti 的文章

 

随机推荐