From 4e47cb5d85393129da18fc29d06374f83573e085 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Wed, 28 Mar 2018 04:29:25 +0200 Subject: [PATCH] plugin categories: other -> sensors --- plugins/battery/batteries | 4 ++-- plugins/harddisks/powered_up_ | 1 + plugins/snmp/snmp__cyberpower | 8 ++++---- plugins/snmp/snmp__webthermometer | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/plugins/battery/batteries b/plugins/battery/batteries index 9df76c4e..197e9b7c 100755 --- a/plugins/battery/batteries +++ b/plugins/battery/batteries @@ -268,7 +268,7 @@ if ($ARGV[0] and $ARGV[0] eq "config") $config{$graph}{'graph'}{'title'} = sprintf($graphs->{$graph}{'title'}, 'Mean batteryes'); $config{$graph}{'graph'}{'args'} = $graphs->{$graph}{'args'}; $config{$graph}{'graph'}{'vlabel'} = $graphs->{$graph}{'vlabel'}; - $config{$graph}{'graph'}{'category'} = 'power'; + $config{$graph}{'graph'}{'category'} = 'sensors'; foreach my $field (@{$graphs->{$graph}{'fields'}}) { if(($proc_data_exists and $fields->{$field}{'source'} eq 'proc') or $fields->{$field}{'source'} eq 'both') @@ -290,7 +290,7 @@ if ($ARGV[0] and $ARGV[0] eq "config") $config{$graph_name}{'graph'}{'info'} = sprintf("%s battery %s %s (sn: %s)", $info->{$i}{'battery_type'}, $info->{$i}{'manufacturer'}, $info->{$i}{'model_name'}, $info->{$i}{'serial_number'}); $config{$graph_name}{'graph'}{'args'} = '--base 1000'; $config{$graph_name}{'graph'}{'vlabel'} = $graphs->{$graph}{'vlabel'}; - $config{$graph_name}{'graph'}{'category'} = 'power'; + $config{$graph_name}{'graph'}{'category'} = 'sensors'; foreach my $field (@{$graphs->{$graph}{'fields'}}) { if(($proc_data_exists and $fields->{$field}{'source'} eq 'proc') or $fields->{$field}{'source'} eq 'both') diff --git a/plugins/harddisks/powered_up_ b/plugins/harddisks/powered_up_ index 634d3365..3eddfd25 100755 --- a/plugins/harddisks/powered_up_ +++ b/plugins/harddisks/powered_up_ @@ -12,6 +12,7 @@ case $1 in cat <