User Tools

Site Tools


sortedstats

This is an old revision of the document!


SortedStats

SortedStats is a tool that gathers all data for a specific datasource, orders it and presents you with the ordered list.

The webpage

The webpage is your way of getting sorted (or ranked) statistics of the data Cricket gathers. The interface should be easy to understand, but lets do a quick introduction:

  • Choose view: This is a drop-down menu with all the available views for you.
  • Timeframe: Choose the timespan we are searching the Cricket-data
  • Rows: The number of rows to display
  • Live: Check this button to always fetch live data from the Cricket-files. If this button is unchecked sortedStats will try to fetch cached data if available, unless the timer for the cachetimeout is surpassed.

You may add more views if you want to. See “The config file” for more information.

The configfile

Sortedstats has a configfile called sortedStats.conf. It is located among the other NAv configfiles Here you can make your own views if you want to see other statistics. A view is defined by starting and ending []. You can add as many views as you want as long as they are unique. A view needs certain parameters to function properly: name, path and dsdescr.

  • name: The name shown in the drop-down menu on the page. It needs to be unique.
  • path: The path of the rrd-files. This may be only a subset of the path.
  • dsdescr: The description of the datasource in the database.

Other parameters:

  • units: Set the units shown on the webpage.
  • modifier: A modifier evaled on the data before displaying it on the page.
  • linkview: If you browse Cricket, you will notice that certain views are available. For routers this may be cpu, memory etc. Add the name of the view you want to link to here. Without this linkview it is impossible to link properly to Cricket.

You may also adjust the timeout for the cache here. This is done in the ss_general view. The values are in seconds.

sortedstats.1189944492.txt.gz · Last modified: 2007/09/16 12:08 by faltin