From 8324ef8d0599d73c5bc9f3c98b3eedf1f9600229 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 4 Feb 2014 22:53:20 +0000 Subject: [PATCH] Add host_name value for the plugin config so the graphs are seperated out from the polling host --- plugins/hg612_attenuation | 1 + plugins/hg612_current_speed | 1 + plugins/hg612_errors | 1 + plugins/hg612_interleaving | 1 + plugins/hg612_max_speed | 1 + plugins/hg612_ptm1 | 1 + plugins/hg612_ptm1_uptime | 1 + plugins/hg612_pwr | 1 + plugins/hg612_snr | 1 + plugins/hg612_sync_speed | 1 + 10 files changed, 10 insertions(+) diff --git a/plugins/hg612_attenuation b/plugins/hg612_attenuation index f0b25e0..71c2c64 100755 --- a/plugins/hg612_attenuation +++ b/plugins/hg612_attenuation @@ -37,6 +37,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo "graph_title Line Attenuation (dB)" echo 'graph_args --base 1000' echo 'graph_vlabel Line Attenuation (dB)' diff --git a/plugins/hg612_current_speed b/plugins/hg612_current_speed index e418e76..92578a8 100755 --- a/plugins/hg612_current_speed +++ b/plugins/hg612_current_speed @@ -35,6 +35,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo "graph_title Sync Speed" echo 'graph_args --base 1000' echo 'graph_vlabel Speed (bps)' diff --git a/plugins/hg612_errors b/plugins/hg612_errors index b612b9d..82f2b65 100755 --- a/plugins/hg612_errors +++ b/plugins/hg612_errors @@ -35,6 +35,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo "graph_title Errors" echo "graph_args --base 1000" echo 'graph_vlabel errors down (-) / up (+) per ${graph_period}' diff --git a/plugins/hg612_interleaving b/plugins/hg612_interleaving index 14443cf..681db3b 100755 --- a/plugins/hg612_interleaving +++ b/plugins/hg612_interleaving @@ -35,6 +35,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo 'graph_title Interleave Depth' echo 'graph_args --base 1000' echo 'graph_vlabel Interleave Depth' diff --git a/plugins/hg612_max_speed b/plugins/hg612_max_speed index f053911..c860b35 100755 --- a/plugins/hg612_max_speed +++ b/plugins/hg612_max_speed @@ -35,6 +35,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo "graph_title Maximum Attainable Speed" echo 'graph_args --base 1000' echo 'graph_vlabel Max Speed (bps)' diff --git a/plugins/hg612_ptm1 b/plugins/hg612_ptm1 index 1e160ac..46077bf 100755 --- a/plugins/hg612_ptm1 +++ b/plugins/hg612_ptm1 @@ -35,6 +35,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo "graph_title ptm1 traffic" echo "graph_args --base 1000" echo 'graph_vlabel bytes per ${graph_period}' diff --git a/plugins/hg612_ptm1_uptime b/plugins/hg612_ptm1_uptime index c018cfe..e005259 100755 --- a/plugins/hg612_ptm1_uptime +++ b/plugins/hg612_ptm1_uptime @@ -35,6 +35,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo "graph_title ptm1 Uptime in days" echo 'graph_args --base 1000 -l 0' echo 'graph_vlabel VDSL Uptime in days' diff --git a/plugins/hg612_pwr b/plugins/hg612_pwr index 38c3d23..e688bc7 100755 --- a/plugins/hg612_pwr +++ b/plugins/hg612_pwr @@ -35,6 +35,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo "graph_title Aggregate Tx Power" echo 'graph_args --base 1000' echo 'graph_vlabel Actual Aggregate Tx Power (dBm)' diff --git a/plugins/hg612_snr b/plugins/hg612_snr index 63ed9a2..416b3fc 100755 --- a/plugins/hg612_snr +++ b/plugins/hg612_snr @@ -35,6 +35,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo 'graph_title SNR Margin (dB)' echo 'graph_args --base 1000' echo 'graph_vlabel SNR Margin (dB)' diff --git a/plugins/hg612_sync_speed b/plugins/hg612_sync_speed index b684a98..80a0e0a 100755 --- a/plugins/hg612_sync_speed +++ b/plugins/hg612_sync_speed @@ -35,6 +35,7 @@ fi if [ "$1" = "config" ]; then + echo "host_name hg612" echo "graph_title Attainable vs Current Sync Speed" echo 'graph_args --base 1000' echo 'graph_vlabel Sync Rate Actual (-) Attainable (+)'