Linux Wifi Statistics

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

Moderators: Developers, Moderators

Post Reply
User avatar
JJL
Posts: 1
Joined: Tue Apr 10, 2007 7:26 am

Linux Wifi Statistics

Post by JJL »

Hello,

Please excuse my bad english

Thoses scripts and templates will allow you to create statistics for wifi interfaces on a Linux host.
Only wifi specifics parameters will be graphed as traffic can be done by other methods.
You will be able to see :
  • - Connection bit rate (Mb/s)
    - Quality of the link (%)
    - Signal and Noise level (dBm)
The values are gather from output of iwconfig command. Listing of interfaces is from /proc/net/wireless pseudo file.

Install :

1) Copy script_queries/wifiStatistics.xml script_queries directory
eg: cp script_queries/wifiStatistics.xml /usr/share/cacti/resource/script_queries/

2) Copy scripts/cacti_iwconfig.pl file to your scripts directory
eg: cp scripts/cacti_iwconfig.pl /usr/share/cacti/site/scripts/

3) Import the XML files from the templates directory
(data_query, data_template and 3 graph_template)

Usage :

1) Select a "Device" with some wifi interfaces

2) Add the "Linux - Wifi Statistics" "Data Query" to it

3) In the "Create New Graphs" for this host, choose the "Wifi Interface" and the "graph type" and click "create"

As this is my firts attempt to create templates for cacti, please report any problems or possible enhancements.

For more details see http://kubuntu.free.fr/cacti/
Attachments
Output graphs
Output graphs
screenshot.png (59.83 KiB) Viewed 13537 times
cactiLinuxWifiStatistics_0.3.tar.gz
Scripts & templates (v0.3)
(6.54 KiB) Downloaded 1547 times
justinchudgar
Posts: 9
Joined: Thu Oct 19, 2006 7:59 pm
Location: Weed, Siskiyou County, CA, USA
Contact:

Local Machine Only?

Post by justinchudgar »

Does this only work for the Cacti server? How can I get it to work for remote hosts?
alicesmile
Posts: 1
Joined: Fri Dec 03, 2010 5:04 am

Re: Linux Wifi Statistics

Post by alicesmile »

All those are <direction>input</direction> Parameters. They serve as descriptive information to each row to help you identify the proper interface to use. Those parameters of <direction>output</direction> can be compared to output parameters of a script (see ping.pl script above). These are the readings from the device. By selecting the appropriate row (the one greyed out had been selected by me), you tell cacti to retrieve data from the interface defined by this index. But how does cacti know, what output parameters it shall retrieve? See the Select a Graph type DropDown. It specifies a Graph Template defined for this Data Query. The Graph Template in turn references a Data Template which incorporates the needed output parameters as Data Sources. This works quite the same way as defined for a Data Input Method.
alicesmile
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests