Linux Wifi Statistics

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

Moderators: Moderators, Developers

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

Linux Wifi Statistics

#1 Post by JJL » Tue Apr 10, 2007 9:15 am


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/ file to your scripts directory
eg: cp scripts/ /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
Output graphs
screenshot.png (59.83 KiB) Viewed 12493 times
Scripts & templates (v0.3)
(6.54 KiB) Downloaded 1438 times

Posts: 9
Joined: Thu Oct 19, 2006 7:59 pm
Location: Weed, Siskiyou County, CA, USA

Local Machine Only?

#2 Post by justinchudgar » Thu Dec 13, 2007 7:50 pm

Does this only work for the Cacti server? How can I get it to work for remote hosts?

Posts: 1
Joined: Fri Dec 03, 2010 5:04 am

Re: Linux Wifi Statistics

#3 Post by alicesmile » Fri Dec 03, 2010 5:06 am

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 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.

Post Reply