From c0c8871c50f51122c2845882c1de6b9187f4ca88 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Mon, 8 Aug 2011 00:11:04 +0100 Subject: Show copyright dates only in LICENCE file --- docs/examples/jarmon_example_recipes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/examples/jarmon_example_recipes.js') diff --git a/docs/examples/jarmon_example_recipes.js b/docs/examples/jarmon_example_recipes.js index 610ecb2..5677b18 100644 --- a/docs/examples/jarmon_example_recipes.js +++ b/docs/examples/jarmon_example_recipes.js @@ -1,4 +1,4 @@ -/* Copyright (c) 2010 Richard Wall +/* Copyright (c) Richard Wall * See LICENSE for details. * * Some example recipes for Collectd RRD data - you *will* need to modify this -- cgit v1.2.3 From 8a80c676ce5c531755a4185d6367363f58431e8f Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Mon, 8 Aug 2011 00:13:13 +0100 Subject: remove dns recipes - few people will have the data for those --- docs/examples/jarmon_example_recipes.js | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'docs/examples/jarmon_example_recipes.js') diff --git a/docs/examples/jarmon_example_recipes.js b/docs/examples/jarmon_example_recipes.js index 5677b18..98cd8a7 100644 --- a/docs/examples/jarmon_example_recipes.js +++ b/docs/examples/jarmon_example_recipes.js @@ -5,14 +5,13 @@ * based on the RRD data available on your system. */ -if(typeof jarmon == 'undefined') { +if(typeof(jarmon) === 'undefined') { var jarmon = {}; } jarmon.TAB_RECIPES_STANDARD = [ ['System', ['cpu', 'memory','load']], - ['Network', ['interface']], - ['DNS', ['dns_query_types', 'dns_return_codes']] + ['Network', ['interface']] ]; jarmon.CHART_RECIPES_COLLECTD = { @@ -42,27 +41,6 @@ jarmon.CHART_RECIPES_COLLECTD = { jarmon.Chart.STACKED_OPTIONS) }, - 'dns_query_types': { - title: 'DNS Query Types', - data: [ - ['data/dns/dns_qtype-A.rrd', 0, 'A', 'Q/s'], - ['data/dns/dns_qtype-PTR.rrd', 0, 'PTR', 'Q/s'], - ['data/dns/dns_qtype-SOA.rrd', 0, 'SOA', 'Q/s'], - ['data/dns/dns_qtype-SRV.rrd', 0, 'SRV', 'Q/s'] - ], - options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS) - }, - - 'dns_return_codes': { - title: 'DNS Return Codes', - data: [ - ['data/dns/dns_rcode-NOERROR.rrd', 0, 'NOERROR', 'Q/s'], - ['data/dns/dns_rcode-NXDOMAIN.rrd', 0, 'NXDOMAIN', 'Q/s'], - ['data/dns/dns_rcode-SERVFAIL.rrd', 0, 'SERVFAIL', 'Q/s'] - ], - options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS) - }, - 'load': { title: 'Load Average', data: [ -- cgit v1.2.3 From 0cf0e24e5239f6e973419f3d7b82ee62f7db343d Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Mon, 8 Aug 2011 00:15:45 +0100 Subject: fix network throughput units --- docs/examples/jarmon_example_recipes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/jarmon_example_recipes.js') diff --git a/docs/examples/jarmon_example_recipes.js b/docs/examples/jarmon_example_recipes.js index 98cd8a7..a2e822e 100644 --- a/docs/examples/jarmon_example_recipes.js +++ b/docs/examples/jarmon_example_recipes.js @@ -54,8 +54,8 @@ jarmon.CHART_RECIPES_COLLECTD = { 'interface': { title: 'Wlan0 Throughput', data: [ - ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'b/s'], - ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'b/s'] + ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'B/s'], + ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'B/s'] ], options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS) } -- cgit v1.2.3 From 8501f32d8f67fd53bbc682ba9bfadd0ce5f39345 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Mon, 8 Aug 2011 00:52:07 +0100 Subject: Add a transformer option to allow operations on the data from RRD files - eg Network octets * 8 > bits --- docs/examples/jarmon_example_recipes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/jarmon_example_recipes.js') diff --git a/docs/examples/jarmon_example_recipes.js b/docs/examples/jarmon_example_recipes.js index a2e822e..aa42d6f 100644 --- a/docs/examples/jarmon_example_recipes.js +++ b/docs/examples/jarmon_example_recipes.js @@ -54,8 +54,8 @@ jarmon.CHART_RECIPES_COLLECTD = { 'interface': { title: 'Wlan0 Throughput', data: [ - ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'B/s'], - ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'B/s'] + ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'bit/s', function (v) { return v*8; }], + ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'bit/s', function (v) { return v*8; }] ], options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS) } -- cgit v1.2.3