免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2904 | 回复: 0
打印 上一主题 下一主题

cacti(二) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-16 14:21 |只看该作者 |倒序浏览

安装监视插件功能模块
·

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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP