Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Apr 27, 2017 1:56 am

All times are UTC - 5 hours

Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Linux Wifi Statistics
PostPosted: Tue Apr 10, 2007 9:15 am 
User avatar

Joined: Tue Apr 10, 2007 7:26 am
Posts: 1

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

File comment: Scripts & templates (v0.3)
cactiLinuxWifiStatistics_0.3.tar.gz [6.54 KiB]
Downloaded 1252 times
File comment: Output graphs
screenshot.png [ 59.83 KiB | Viewed 11227 times ]
 Post subject: Local Machine Only?
PostPosted: Thu Dec 13, 2007 7:50 pm 

Joined: Thu Oct 19, 2006 7:59 pm
Posts: 9
Location: Weed, Siskiyou County, CA, USA
Does this only work for the Cacti server? How can I get it to work for remote hosts?

 Post subject: Re: Linux Wifi Statistics
PostPosted: Fri Dec 03, 2010 5:06 am 

Joined: Fri Dec 03, 2010 5:04 am
Posts: 1
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.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours

Who is online

Users browsing this forum: Google [Bot] and 6 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group