找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 15243|回复: 13

[其它] 使用cacti绘制routeros的相关图表

  [复制链接]
发表于 2010-7-5 22:57:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 情灭缘尽 于 2010-7-7 09:46 编辑

方法简单
1 routeros设置好snmp
2 linux机器安装好cacti
3 linux机器给cacti安装好所需的脚本
4 cacti导入数据模板
5 cacti内部添加设备并进行必要设置
6 有人说RouterOS自带了流量图表和一些图表,我就懒得多解释了,用过了就知道那个和这个区别那是大大的



7 成功后的几个简单图形如下,还有很多图形可以添加,也可以自己snmpget数据并按照需要进行绘图
ros cacti.jpg


8 附件如下
mikrotik-20090210.zip (36.43 KB, 下载次数: 90)



9 老外的文章

mojiro
Cacti User


Joined: 24 Jul 2005
Posts: 85
Location: Greece, Korydallos - Athens (AWMN)
Posted: Fri Jan 18, 2008 2:34 pm    Post subject: Mikrotik Routeros Statistics (Update 02/10/2009)       
One year after my last post in this forum I come back with lots of graphs that have to do with Mikrotik RouteROS. Many of them are based on older templates of mine. A lot of new work has been based on Marlow's work with Wireless Registration Tables and Queues.


Cacti Version: cacti-0.8.7c
RouterOs Version: 2.9.x & 3.0.x


Graph Support For:
System
HDD
CPU
Memory
Uptime

General
Active PPP Connections
Number of Routes
Number of Active Wireless Connections (Linux Only)
Number of Current ARP Entries (Linux Only)

Wireless Registration Tables (per Wireless Client)
Signal Strength
Data Rates
Packets
Traffic (bits and Bytes)

Wireless Client
Signal Strength
Data Rates
Frequency 802.11b/g
Frequency 802.11a

Queues
Simple Packets
Simple Traffic (bits and Bytes)
Tree Packets
Tree Traffic (bits and Bytes)


Installation:
A. Unzip somewhere the attachment (mikrotik-20090210.zip)
B. Copy:
1. zipdir/scripts/mikrotik_wireless_interfaces.php -> cacti-web-dir/scripts/mikrotik_wireless_interfaces.php
2. zipdir/scripts/mikrotik_ppp_connections.php -> cacti-web-dir/scripts/mikrotik_ppp_connections.php
3. zipdir/resources/script_server/mikrotik_wireless_interfaces.xml -> cacti-web-dir/resources/script_server/mikrotik_wireless_interfaces.xml
4. zipdir/resources/snmp_queries/mikrotik_queue_simple.xml -> cacti-web-dir/resources/snmp_queries/mikrotik_queue_simple.xml
5. zipdir/resources/snmp_queries/mikrotik_queue_tree.xml -> cacti-web-dir/resources/snmp_queries/mikrotik_queue_tree.xml
6. zipdir/resources/snmp_queries/mikrotik_wireless_client.xml -> cacti-web-dir/resources/snmp_queries/mikrotik_wireless_client.xml
C. Import zipdir/templates/cacti_host_template_mikrotik.xml -> http://cacti.url.path/templates_import.php
D. Now just Add a New Device and select "Mikrotik" on Host Template


Notes:
The Mikrotik Host Template contains all of its dependencies, like Interface Statistics
All new templates have nothing to do with older. Are totally incompatible.


Changelog:
* fixes on old templates of mine
* template variable names corrected to follow cacti naming style
* added support for Marlow's work on wireless registration tables
* added more graphs for wireless registration tables
* added support for Arci's work on Queue Trees
* added more graphs for Queue Trees
* added graphs for Simple Queue
* added graphs for Routes & Active PPP Connections


Templates are based on:

Development, Cacti Templates
http://doc.thewan.net/wiki/index.php/Development

Mikrotik SNMP Queue Tree Monitor
http://forums.cacti.net/viewtopic.php?t=10373

Mikrotik RouterOS Statistics (Update 01/21/2006)
http://forums.cacti.net/viewtopic.php?t=8855

Mikrotik RouterOS Registration Tables (Update 11/21/2006)
http://forums.cacti.net/viewtopic.php?t=17936

mikrotik-20090210.zip
Description:       
Version 02/10/2009

Download
Filename:         mikrotik-20090210.zip
Filesize:         36.43 KB
Downloaded:         4241 Time(s)
cacti_mikrotik_template.zip
Description:       
Version 01/18/2008

Download
Filename:         cacti_mikrotik_template.zip
Filesize:         30.55 KB
Downloaded:         5417 Time(s)


Last edited by mojiro on Mon Feb 09, 2009 8:09 pm; edited 4 times in total
routeros
 楼主| 发表于 2010-7-5 22:59:36 | 显示全部楼层
sofa
routeros
回复

使用道具 举报

发表于 2010-7-5 23:22:59 | 显示全部楼层
看起来不错的样子
routeros
回复

使用道具 举报

发表于 2010-7-6 09:07:42 | 显示全部楼层
不错的样子看起来
routeros
回复

使用道具 举报

发表于 2010-7-6 11:54:14 | 显示全部楼层
收藏了,
routeros
回复

使用道具 举报

发表于 2010-7-6 12:28:57 | 显示全部楼层
ros自带的dude就可以呀,还不用另外装一台电脑那么麻烦
routeros
回复

使用道具 举报

 楼主| 发表于 2010-7-6 13:43:34 | 显示全部楼层



    呵呵,环境不一样哦,本来就有专门的一个X3650用来绘制流量图表,不用白不用,而且dude的图表我还真看不上眼啊
routeros
回复

使用道具 举报

发表于 2010-7-6 17:08:46 | 显示全部楼层
看起来不错的样子
routeros
回复

使用道具 举报

发表于 2010-7-6 19:05:18 | 显示全部楼层
呵呵。。我也在用
ros.JPG
routeros
回复

使用道具 举报

发表于 2010-7-6 22:11:07 | 显示全部楼层
学习。。。。。。。。。。。。
routeros
回复

使用道具 举报

发表于 2010-7-6 22:54:25 | 显示全部楼层
不错的东西 不知道 脚本或者模板哪里能够下载呢?
routeros
回复

使用道具 举报

发表于 2011-8-12 00:08:58 | 显示全部楼层
没有网络流量图 !!
routeros
回复

使用道具 举报

发表于 2011-8-12 00:15:36 | 显示全部楼层
好东西!!!
routeros
回复

使用道具 举报

发表于 2012-11-16 15:52:18 | 显示全部楼层
顶一下我正需要
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-12-22 16:32 , Processed in 0.068711 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表