❗️Toto je původní verze internetového fóra ISPforum.cz do února 2020 bez možnosti registrace nových uživatelů. Aktivní verzi fóra naleznete na adrese https://telekomunikace.cz

scgrab - cacti script na monitorovanie a grafy ubnt

RADIUS, CAPsMAN, The Dude, AirControl, UniFi, Zabbix atd.
rado3105
Příspěvky: 2288
Registrován: 16 years ago

scgrab - cacti script na monitorovanie a grafy ubnt

Příspěvekod rado3105 » 13 years ago

Co to dokaze:
UBNT - Station List - Indexed Data Query:

Airmax Quality and Capacity
Wireless Link Uptime
Client Connection Quality (CCQ)
Link Idle Time
RX/TX Data Rates
RX/TX Traffic
Signal Strength/Noise Floor/Fade Margin(SNR)
Supports indexing by MAC Address, Last IP, Association ID, or Device Name
UBNT - Unit Data Query:

Airmax Quality and Capacity
Associated Stations Count
Client Connection Quality (CCQ)
CPU Usage (top)
RX/TX Data Rates
Signal Strength/Noise Floor/Fade Margin(SNR)
WLAN Errors (Beacon Miss, Crypt, Frag, Network ID, Retries, Other)
Ethernet Link Status
Current Frequency
Wireless Link Uptime
Load Average
Memory Usage
Unit Uptime



Ive just got recommended cacti scripts - scgrab.
http://code.google.com/p/scgrab/

But I have problem to run it.

My installation:

1. I installed: cacti, python.

2. Download paramiko to your server: wget http://scgrab.googlecode.com/files/paramiko-1.7.6-AES-patched.zip and unzip.

3. Then I downloaded patched paramiko and installed it using this command:
python setup.py install (you have to be in folder where you extracted paramiko).

4. Then I downloaded scgrab: wget http://code.google.com/p/scgrab/downloads/detail?name=scgrab-2011-02-26.zip&can=2&q= and unzip it.

5. I copied it from downloaded place to /usr/share/cacti/site/scripts. It looks there like this: /usr/share/cacti/site/scripts/scgrab/scgrab.py

6. I set permissions for log and cache directory: sudo chmod -R a+rwx /usr/share/cacti/site/scripts/scgrab/log
sudo chmod -R a+rwx /usr/share/cacti/site/scripts/scgrab/cache

7. I generated keys on my server using this command: ssh-keygen -b 1024 -t dsa -C "monitor system" -f monitor
It created two files: monitor and monitor.pub.

8. I copied monitor to /scgrab/auth/keys

9. I uploaded monitor.pub to my ubnt device in ssh section(authorized keys). Also enabled ssh, port 22, enable password authentification.

10. I imported cacti templates from extracted scgrab folder. In cacti I created graph...

Problems: Graphs shows no data. In scgrab/log is this:
2012-04-16 10:40:04 - 2964: generate_cache: key file specified does not exist
2012-04-16 10:40:04 - 2964: main: data not available - exiting

What I have wrong, can anybody help? thanks


Nedari sa mi to rozbehat, hodim to do slovenciny...len dnes uz nie....ma to niekto nainstalovane? neviem ci tam treba pridat aj hesla koncovych zariadeni, ale akosi sa v tom stracam....
0 x

rado3105
Příspěvky: 2288
Registrován: 16 years ago

Příspěvekod rado3105 » 13 years ago

takze rozbehane, kto by mal problem, moze sa na mna obratit...

priklad nejakych grafov pre inspiraciu:
http://i42.tinypic.com/10ofc7a.jpg
http://i42.tinypic.com/14dgfn9.jpg
0 x

Daxxim
Příspěvky: 416
Registrován: 13 years ago
Kontaktovat uživatele:

Příspěvekod Daxxim » 13 years ago

Zdravim,

vim ze se v readme scgrabu pise ze podporuje pouze fw 5.x presto bych se chtel zeptat, jestli je mozne to rozjet i na starych nanostationech v4.x?
Zasekl jsem se u tech klicu :(
0 x