- 论坛徽章:
- 0
|
安装监视插件功能模块
·
至
http://cactiusers.org/downloads
download
monitor
·
cd
/var/www/cacti/plugins
mkdir monitor
cd monitor
unzip /root/monitor-0.7.zip
cd ..
chown -R root:root monitor/
·
modify
/var/www/cacti/include/config.php
$plugins = array();
$plugins[] = 'monitor';
Install Discovery:
安装扫描发现功能模块
·
至
http://cactiusers.org/downloads
download
discovery
·
mkdir
/var/www/cacti/plugins/discovery
cd /var/www/cacti/plugins/discovery
unzip /root/discovery-0.7.zip
mysql -u cactiuser -p cacti
chown -R root:root discovery/
·
modify
/var/www/cacti/include/config.php
$plugins = array();
$plugins[] = 'discovery';
·
参考
http://cactiusers.org/wiki/DiscoverDocs
相关资料
·
设定
·
Console 右边Configuration下的Settings进入Console -> Cacti Settings
·
选Misc
·
file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image002.jpg
·
·
至Console ->
User Management, 设定User使用权限
file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image004.gif
·
·
Trouble Shooting:
·
cd
/var/www/cacti/plugins/discovery
·
执行 php -q
findhosts.php -f -d
Install Network Weathermap:
安装网络气象图
·
至
http://www.network-weathermap.com/download
download
参考:
http://www.network-weathermap.com/manual/latest/pages/install-cacti-editor.html
·
cd
/var/www/cacti/plugins
unzip /root/php-weathermap-0.92.zip
chown -R root:root weathermap/
cd weathermap
chown -R cactiuser:apache output/
chmod -R g+w output/
·
Edit
/var/www/cacti/include/config.php
$plugins[] = 'weathermap';
·
至Console ->
User Management, 设定User使用权限
·
设定Editor
·
cd
/var/www/cacti/plugins/weathermap
cp editor-config.php-dist editor-config.php
·
Eidt
editor-config.php
$cacti_base = "/var/www/cacti"
$cacti_url =
http://your.server/
·
chown apache -R
configs/
·
设定完后可以至
http://your.server/plugins/weathermap/editor.php
进行编辑
·
把要监控的weathermap加入
·
至Console ->
Weathermaps
·
按Add加入Config File
·
若点选"Recalculate
All Maps Now", 则会立即产生Weahtermaps
Install Cisco Memory Usage Template:
·
至
http://forums.cacti.net/about2870.html
download
xml
·
至Console ->
Import Templates
file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image006.jpg
选择cacti_graph_template_cisco_memory_usage.xml所在路径
建立自己的Data Query:
ex: 希望图上都要显示ifAlias
·
至Console右边Collection Methods下Data Queries: 点选"Snmp - Interface Statistics"
·
file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image008.jpg
·
点选In/Out Bits
·
至Graph Template
- Interface - Traffic (bits/sec)下
输入|host_description| - Traffic -
|query_ifName| - |query_ifAlias|
Fild Name: Titme
file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image010.jpg
·
把刚加的那行Move UP到最上面
save
建立自己的Host Template
·
至Console 右边Templates下的Host Templates
·
点右上角Add
·
设定Host Template
Name: Cisco Switch
create
·
·
Associated Graph
Templates: Add
Cisco - CPU Usage
Cisco - Memory Usage
·
Associated Data
Queries: Add
SNMP - Interface Statistics
·
save
Start to Add Device:
·
Console ->
Devices: Add
·
设定Detail
·
create
·
Add Associated
Graph Templates: EX: 加"Cisco -
CPU Usage", "PING - Advanced Ping v1.3"
·
·
至Console ->
Devices: 点选要产生图的Device
·
点选"Create
Graphs for this Host"
·
勾选要产生图的: 包括CPU, Advance Ping, Interfaces
·
·
create
·
设定CPU/Adavance
Ping等相关参数
·
·
·
create
·
设定显示方式:
·
Console ->
Graph Trees: Add
·
·
设定Name
create
·
把Device加入Tree
·
·
Tree Item Type:
Host
·
·
选择要加的Host
create
·
save
·
User Management可以至Console -> User Management, 设定User使用权限
Authentication with AD:
·
至Console右边Configuration下的Settings, 然后点选Authentication
·
·
·
·
建立GuestLDAP的Template
·
Console -> User
Management: 点选Add
·
·
·
修改"Graph
Permissions"权限
·
·
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/33556/showart_1002702.html |
|