Development

From WanWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:04, 8 November 2007 (edit)
Marlow (Talk | contribs)
(Mikrotik RouterOS Memory)
← Previous diff
Current revision (20:59, 21 September 2008) (edit)
Marlow (Talk | contribs)
(WifiMap)
 
Line 22: Line 22:
/usr/bin/cvs -d :pserver:%USER%@thewan.net:/var/lib/cvs co cacti /usr/bin/cvs -d :pserver:%USER%@thewan.net:/var/lib/cvs co cacti
-There is an overall host template ''xml/cacti_host_template_mikrotik_routeros.xml'', that has all you need for a Mikrotik Router.<br/>+There is an overall host template ''xml/cacti_host_template_mikrotik_routeros.xml'', that has uses the templates available here.<br/>
-A copy of the repository has been uploaded to [http://coyote.ie.tuxbox.nu/~marlow/cacti/ http://coyote.ie.tuxbox.nu/~marlow/cacti/].<br/>+A snapshot of the repository has been uploaded to [http://coyote.ie.tuxbox.nu/~marlow/cacti/ http://coyote.ie.tuxbox.nu/~marlow/cacti/].<br/>
<br/> <br/>
== Mikrotik RouterOS CPU == == Mikrotik RouterOS CPU ==
Line 32: Line 32:
* Import ''xml/cacti_data_template_mikrotik_cpu_load.xml'' * Import ''xml/cacti_data_template_mikrotik_cpu_load.xml''
* Import ''xml/cacti_graph_template_mikrotik_cpu_load.xml'' * Import ''xml/cacti_graph_template_mikrotik_cpu_load.xml''
 +<br/>
 +=== Sample Graph ===
 +[[Image:Mikrotik cpu sample.png]]
 +<br/>
<br/> <br/>
Line 64: Line 68:
== Mikrotik RouterOS Signal using SNMP == == Mikrotik RouterOS Signal using SNMP ==
-'''Source:''' Templates by [http://forums.cacti.net/about17936.html mojiro], script and modifications for use via SNMP and multiple clients by [[User:Marlow|Marlow]]<br/>+'''Source:''' Templates by [http://forums.cacti.net/about17936.html mojiro] from [http://www.awmn.net/index_en.php Athens Wireless Metropolitan Network], script and modifications for use via SNMP and multiple clients by [[User:Marlow|Marlow]]<br/>
<br/> <br/>
This template supports ap-bridge mode, client mode and multiple clients. Queries are done via SNMP, so no configuration needed on the router beyond SNMP.<br/> This template supports ap-bridge mode, client mode and multiple clients. Queries are done via SNMP, so no configuration needed on the router beyond SNMP.<br/>
Line 80: Line 84:
=== Sample Graph === === Sample Graph ===
[[Image:Mikrotik signal sample.png]] [[Image:Mikrotik signal sample.png]]
 +<br/>
<br/> <br/>
<br/> <br/>
Line 87: Line 92:
The project is developed on ''waldorf'' and the outcome of changes are automatically available at http://thewan.net/dev/wifimap/ The project is developed on ''waldorf'' and the outcome of changes are automatically available at http://thewan.net/dev/wifimap/
-Database is available at http://voice.airwire.ie/dbadmin/ - user and password can be found in the source-code.+Database is available at http://dev.airwire.ie/dbadmin/ - user and password can be found in the source-code.
Access via CVS: Access via CVS:
Line 93: Line 98:
A release tarball can be fetched at http://coyote.ie.tuxbox.nu/~marlow/wifimap/<br/> A release tarball can be fetched at http://coyote.ie.tuxbox.nu/~marlow/wifimap/<br/>
-The changelog can be found at http://www.thewan.net/dev/wifimap/CHANGELOG+The changelog can be found at http://thewan.net/dev/wifimap/CHANGELOG
WifiMap can be discussed in the forums at the [http://doc.thewan.net/forum/viewforum.php?f=20 WiFiMap Section] WifiMap can be discussed in the forums at the [http://doc.thewan.net/forum/viewforum.php?f=20 WiFiMap Section]
New releases are also announced on [http://freshmeat.net/projects/wanwifimap/ Freshmeat]. New releases are also announced on [http://freshmeat.net/projects/wanwifimap/ Freshmeat].

Current revision

There is a development server on the WAN, that provides a bit of a development "area" for people that interested, like for example development of the wifimap.

Available are:

  • web
  • mysql (incl. phpMyAdmin access)
  • cvs (incl. auto deployment to web)
  • daily backup of cvs and sql
  • local ssh access on waldorf

So if you need any of those for your own project, you can contact me and I'll supply you with an account to use this development platform.

If you're wondering who or what waldorf is: It's the Cobalt RAQ server, that is one of the public hosts for the Wan.

Current active projects:

Contents

Cacti Templates

The cacti templates repository contains a selection of templates specific to monitoring of wireless platforms like Mikrotik. All templates are minimum Cacti Version 0.8.6i.

Access via CVS:

/usr/bin/cvs -d :pserver:%USER%@thewan.net:/var/lib/cvs co cacti

There is an overall host template xml/cacti_host_template_mikrotik_routeros.xml, that has uses the templates available here.
A snapshot of the repository has been uploaded to http://coyote.ie.tuxbox.nu/~marlow/cacti/.

Mikrotik RouterOS CPU

Source: Marlow

Installation

  • Import xml/cacti_data_template_mikrotik_cpu_load.xml
  • Import xml/cacti_graph_template_mikrotik_cpu_load.xml


Sample Graph

Image:Mikrotik cpu sample.png

Mikrotik RouterOS Memory

Source: Marlow

Installation

  • Import xml/cacti_data_template_mikrotik_memory_load.xml
  • Import xml/cacti_data_template_mikrotik_memory_total.xml
  • Import xml/cacti_graph_template_mikrotik_memory_load.xml


Sample Graph

Image:Mikrotik memory sample.png

Mikrotik RouterOS Queue Tree's

Source: arci, with fixes from Marlow

Installation

  • Copy snmp_queries/ipacmikro.xml to <cactidir>/resource/snmp_queries/ on the Cacti server.
  • Import xml/cacti_data_query_mikrotik_queue_tree.xml
  • Import xml/cacti_data_template_mikrotik_queue.xml
  • Import xml/cacti_graph_template_mikrotik_queue_tree_bytes.xml


Sample Graph

Image:Mikrotik queue sample.png

Mikrotik RouterOS Signal using SNMP

Source: Templates by mojiro from Athens Wireless Metropolitan Network, script and modifications for use via SNMP and multiple clients by Marlow

This template supports ap-bridge mode, client mode and multiple clients. Queries are done via SNMP, so no configuration needed on the router beyond SNMP.

When adding a link, the remote host has to be associated. Interfaces, that have no connection, will not be listed.

Installation

  • Copy script_server/mikrotik_wireless_interfaces.xml to <cactidir>/resource/script_server/ on the Cacti server.
  • Copy scripts/mikrotik_wireless_interfaces.php to <cactidir>/site/scripts/ on the Cacti server.
  • Import xml/cacti_data_query_mikrotik_get_wireless_interfaces_mac_based.xml.
  • Import xml/cacti_data_template_mikrotik_wireless_signal_strength_mac_based.xml.
  • Import xml/cacti_graph_template_mikrotik_signal_strength_mac_based.xml.


Sample Graph

Image:Mikrotik signal sample.png


WifiMap

The project is developed on waldorf and the outcome of changes are automatically available at http://thewan.net/dev/wifimap/

Database is available at http://dev.airwire.ie/dbadmin/ - user and password can be found in the source-code.

Access via CVS:

/usr/bin/cvs -d :pserver:%USER%@thewan.net:/var/lib/cvs co wifimap

A release tarball can be fetched at http://coyote.ie.tuxbox.nu/~marlow/wifimap/
The changelog can be found at http://thewan.net/dev/wifimap/CHANGELOG

WifiMap can be discussed in the forums at the WiFiMap Section

New releases are also announced on Freshmeat.