ROSInfo - router monitoring

Hi!
I have created a simple web application for monitoring routers running Mikrotik RouterOS.

It’s been running on our network with eighty routers for about a year and it proved sometimes quite helpful so I decided to share it with you and release it under GPL.

Main functions:

  • Signal, CPU load, uptime, latency graphing,
  • Traffic monitoring

Screenshots:
Routers list

Signal graphs

Traffic monitoring





Download:
Direct link http://phill.gotdns.org/rosinfo.php
or somewhere on my homepage http://phill.gotdns.org/

Installation:
All information regarding installation is in the file docs/INSTALL.
Part of the README file

Introduction
============
ROSInfo is a simple tool for monitoring signal levels, traffic and network
latency of x86 machines, RouterBoards and other devices running Mikrotik 
RouterOS. It was designed to be used with Mikrotik RouterOS v 2.9 and is being 
developed and tested on a large network with many Mikrotik routers.


Environment
===========

Hardware
--------
Currently supported and tested are all versions of Mikrotik RouterOS 2.9.

Software requirements
---------------------
 - Linux
 - Apache
 - PHP5 with support for snmp
 - RRDTool 1.2
 - php-rrdtool (not mandatory)
 - SNMP utilities
 - Cron or another scheduling daemon
 
 
Instalation
===========
 - Unpack the tarball to a directory accessible by Apache.
 - Make sure, that the ./rrd directory and it's subdirectories are writable by 
Apache. Use chown and chmod to achieve this.
 - Open file ./include/config.inc and change the contents to fit your needs.
 - Setup cron to start the fetchexec.php file every 5 minutes.
 
Cron setup
----------
You can use the following statement placed in /etc/crontab. Make sure you
correct the path to the file fetchexec.php and php binary.

*/5 *  * * *   www-data /usr/bin/php /path/to/rosinfo/fetchexec.php > /dev/null 2>&1


Recomendations
==============
Do not start the fetchexec.php file manualy unless you are logged in as a user 
under which Apache is running. You can use something like su www-data and then
start the fetchexec.php. 

If you want to see some debug information from the fetchexec process, uncomment 
the line $debug=1; in file config.inc. The output will be saved in a few 
logfiles.

Feel free to make any comments or suggestions,

Phill

wow, definetly a job well done! congratulations!


again, that’s good work … congratulatioon man…!!!

regards
Hasbullah.com

great work!!! and congratulations!!

please put in this page the instructions of the install ( i’m very noob) :smiley:

and programs required for the correct running

Good work :slight_smile:

But … it isn’t working with Nortel 5212 cards :confused:

What exactly is not working? Signal graphs are empty? The signal levels are taken via snmp from the registration table, so if you have some entries in your registration table, the data should be read.

Can you please execute

snmpwalk -v1 -c public IP_ADDRESS_OF_THE_ROUTER SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3

to get more information?

Or send me the whole

snmpwalk -v1 -c public IP_ADDRESS_OF_THE_ROUTER

snmp tree via email[phill.at.seznam.cz] or PM.

Thanks

Well…

Ok I found problem.
It’s not problem with Nortel cards.

Interface names cannot contain - (dash)

Best regards :slight_smile:

Thanks for help, I hope I removed this issue today, but didn’t test it. Try the 1.12 version please.

Also, the project has been renamed as requested by Mikrotik.

Is there a chanse for version under windows+IIS5+

I doubt that, unless someone would want to write that :slight_smile:

i doubt that anyone wants to write anything for that :slight_smile: LAMP is the way to go IMO.

That worked with PHP4?
Is possibility making any changes or somebody have any adaptation?

Best regards
Thomas

It would require to use a different template engine or not to use one at all. Because I didn’t want to use smarty, I used just a simple template engine called PET which unfortunately works only under php5.


Is it a really big deal to get php5 up and running? I think that today php4 is kind of dead.

phill, a couple of fixes for the next version,

the fetch.php scripts don’t use the rrdtool configuration entry, they are hard coded.

also, you might add a config var for the snmp community.

Thanks,
Richard

Hi,

I think … snmp community in config will be very useful :slight_smile:

Best regards

Thanks for the feedback.

fetch.php will be fixed in the next release.

Regarding the snmp community. I was trying to make the project as simple as possible, so there is not involved mysql or any other DB. Problem with snmp community is, that I guess you don’t want to configure it globaly, but set it for each router separately.

Another similiar feature in my todolist is setting the http port, because some users may change it for security purposes. Not all people know how to work with arrays in php, so I will try to rewrite the config section into a simple text form.

Regards,
Phill

I hope that it is fixed now.

What should work now:

  • Interface names with any characters
  • Easier routers configuration, http port, snmp community
  • Few bugs fixed

When upgrading you have to modify the configuration.

Hi all,

I have this error in Apache logs:
[error] PHP Notice: Undefined index: desc in /var/www/htdocs/rosinfo/include/functions.php on line 54
[error] PHP Notice: Undefined variable: old_category in /var/www/htdocs/rosinfo/header.php on line 44

greetings
T.

hi Phill
can you inform how to install this step by step ?

fixed

It’s written in the README file, I tried to provide more details, hope it’s enough.


PS: Want to help me in any way with this app? Just PM me.