Mikrotik signal graph also for multiple clients using SNMP

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
marlow
Posts: 11
Joined: Tue Nov 06, 2007 12:04 pm
Location: Rahara, Co. Roscommon, Ireland
Contact:

Mikrotik signal graph also for multiple clients using SNMP

Post by marlow »

Hi,

I've revised Mojiro's templates and written a new backend script, that allows for client, ap-bridge with single and multiple clients, all queried via SNMP.

It deals with changing OID's, data is queried based on BSSID.

The documentation and templates/scripts can be found here:
http://doc.thewan.net/wiki/index.php/De ... using_SNMP

/Martin
Communication is the beginning of understanding
-- AT&T
jstjst
Posts: 4
Joined: Sat Jan 05, 2008 2:10 pm

Post by jstjst »

I've tested ths.... and I have a problem...

I have cacti-0.8.7a installed on my server...

SNMP - Interface Statistics works
but
Mikrotik - Queue Tree
Mikrotik - Get Wireless Interfaces (MAC based)
dosent works

I get this

+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php4 -q /var/cacti/scripts/mikrotik_wireless_interfaces.php public 10.20.30.50 index'
+ Executing script query '/usr/bin/php4 -q /var/cacti/scripts/mikrotik_wireless_interfaces.php public 10.20.30.50 query cmac'
+ Executing script query '/usr/bin/php4 -q /var/cacti/scripts/mikrotik_wireless_interfaces.php public 10.20.30.50 query name'
+ Executing script query '/usr/bin/php4 -q /var/cacti/scripts/mikrotik_wireless_interfaces.php public 10.20.30.50 query int'
+ Found data query XML file at '/var/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/var/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/var/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'

from Mikrotik - Get Wireless Interfaces (MAC based) Debugging

what to do?
marlow
Posts: 11
Joined: Tue Nov 06, 2007 12:04 pm
Location: Rahara, Co. Roscommon, Ireland
Contact:

Post by marlow »

From what you're posting, there is no problem. In what sense does it not work ?

/Marlow
Communication is the beginning of understanding
-- AT&T
jstjst
Posts: 4
Joined: Sat Jan 05, 2008 2:10 pm

Post by jstjst »

it dosent see any wireless interfaces that are connectet to my router
basos
Posts: 4
Joined: Sat Jan 12, 2008 5:30 pm

Indeed

Post by basos »

There seem for some things missing at the php script.

Some includes (where to find snmpwalk)
Some caveats (argv instead of "argv")
Possibly the use of _SERVER instead of GLOBALS

Tried it but couldn't make it work.
colbyco
Posts: 1
Joined: Sat Feb 16, 2008 8:46 am

Post by colbyco »

Install php snmp support
cyberdocwi
Posts: 1
Joined: Wed Mar 26, 2008 12:16 am

Redhat / CentOS

Post by cyberdocwi »

Hello,

I too saw the problem of the interfaces not printing out. I then tried to run the command manually, and found that on my CentOS 5 installation, the php4 command is wrong.

I changed the direct path of /usr/bin/php4 to just php in the script located in the resource directory, and the data now flows for me.

Christian
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests