From 799413794ed5ee8c4e5481844c53cc28fb9f6fa6 Mon Sep 17 00:00:00 2001 From: Florian Asche Date: Thu, 20 Mar 2014 13:30:07 +0100 Subject: [PATCH 1/2] Refs #5363 --- apps/apcupsd/local/mode/batterycharge.pm | 12 ++++++++++++ apps/apcupsd/local/mode/batteryvoltage.pm | 14 +++++++++++++- apps/apcupsd/local/mode/linefrequency.pm | 12 ++++++++++++ apps/apcupsd/local/mode/linevoltage.pm | 12 ++++++++++++ apps/apcupsd/local/mode/loadpercentage.pm | 12 ++++++++++++ apps/apcupsd/local/mode/outputvoltage.pm | 12 ++++++++++++ apps/apcupsd/local/mode/temperatur.pm | 14 +++++++++++++- apps/apcupsd/local/mode/timeleft.pm | 12 ++++++++++++ 8 files changed, 98 insertions(+), 2 deletions(-) diff --git a/apps/apcupsd/local/mode/batterycharge.pm b/apps/apcupsd/local/mode/batterycharge.pm index 3b7db1fe9..bebb85fbf 100644 --- a/apps/apcupsd/local/mode/batterycharge.pm +++ b/apps/apcupsd/local/mode/batterycharge.pm @@ -137,6 +137,18 @@ Warning Threshold Critical Threshold +=item B<--remote> + +If you dont wanna install the apcupsd client on your local system you can run it remotely with 'ssh'. + +=item B<--hostname> + +Hostname to query (need --remote). + +=item B<--ssh-option> + +Specify multiple options like the user (example: --ssh-option='-l=centreon-engine' --ssh-option='-p=52'). + =back =cut diff --git a/apps/apcupsd/local/mode/batteryvoltage.pm b/apps/apcupsd/local/mode/batteryvoltage.pm index b7a451c81..ede90e35d 100644 --- a/apps/apcupsd/local/mode/batteryvoltage.pm +++ b/apps/apcupsd/local/mode/batteryvoltage.pm @@ -137,6 +137,18 @@ Warning Threshold Critical Threshold +=item B<--remote> + +If you dont wanna install the apcupsd client on your local system you can run it remotely with 'ssh'. + +=item B<--hostname> + +Hostname to query (need --remote). + +=item B<--ssh-option> + +Specify multiple options like the user (example: --ssh-option='-l=centreon-engine' --ssh-option='-p=52'). + =back -=cut +=cut \ No newline at end of file diff --git a/apps/apcupsd/local/mode/linefrequency.pm b/apps/apcupsd/local/mode/linefrequency.pm index 4d685a406..ae868588a 100644 --- a/apps/apcupsd/local/mode/linefrequency.pm +++ b/apps/apcupsd/local/mode/linefrequency.pm @@ -137,6 +137,18 @@ Warning Threshold Critical Threshold +=item B<--remote> + +If you dont wanna install the apcupsd client on your local system you can run it remotely with 'ssh'. + +=item B<--hostname> + +Hostname to query (need --remote). + +=item B<--ssh-option> + +Specify multiple options like the user (example: --ssh-option='-l=centreon-engine' --ssh-option='-p=52'). + =back =cut diff --git a/apps/apcupsd/local/mode/linevoltage.pm b/apps/apcupsd/local/mode/linevoltage.pm index 557263ba2..e3d2504af 100644 --- a/apps/apcupsd/local/mode/linevoltage.pm +++ b/apps/apcupsd/local/mode/linevoltage.pm @@ -137,6 +137,18 @@ Warning Threshold Critical Threshold +=item B<--remote> + +If you dont wanna install the apcupsd client on your local system you can run it remotely with 'ssh'. + +=item B<--hostname> + +Hostname to query (need --remote). + +=item B<--ssh-option> + +Specify multiple options like the user (example: --ssh-option='-l=centreon-engine' --ssh-option='-p=52'). + =back =cut diff --git a/apps/apcupsd/local/mode/loadpercentage.pm b/apps/apcupsd/local/mode/loadpercentage.pm index e18b9ef89..c4fcfae33 100644 --- a/apps/apcupsd/local/mode/loadpercentage.pm +++ b/apps/apcupsd/local/mode/loadpercentage.pm @@ -137,6 +137,18 @@ Warning Threshold Critical Threshold +=item B<--remote> + +If you dont wanna install the apcupsd client on your local system you can run it remotely with 'ssh'. + +=item B<--hostname> + +Hostname to query (need --remote). + +=item B<--ssh-option> + +Specify multiple options like the user (example: --ssh-option='-l=centreon-engine' --ssh-option='-p=52'). + =back =cut diff --git a/apps/apcupsd/local/mode/outputvoltage.pm b/apps/apcupsd/local/mode/outputvoltage.pm index b0f6a7e91..df305c6cb 100644 --- a/apps/apcupsd/local/mode/outputvoltage.pm +++ b/apps/apcupsd/local/mode/outputvoltage.pm @@ -137,6 +137,18 @@ Warning Threshold Critical Threshold +=item B<--remote> + +If you dont wanna install the apcupsd client on your local system you can run it remotely with 'ssh'. + +=item B<--hostname> + +Hostname to query (need --remote). + +=item B<--ssh-option> + +Specify multiple options like the user (example: --ssh-option='-l=centreon-engine' --ssh-option='-p=52'). + =back =cut diff --git a/apps/apcupsd/local/mode/temperatur.pm b/apps/apcupsd/local/mode/temperatur.pm index 0ea66ccfd..a11342291 100644 --- a/apps/apcupsd/local/mode/temperatur.pm +++ b/apps/apcupsd/local/mode/temperatur.pm @@ -137,6 +137,18 @@ Warning Threshold Critical Threshold +=item B<--remote> + +If you dont wanna install the apcupsd client on your local system you can run it remotely with 'ssh'. + +=item B<--hostname> + +Hostname to query (need --remote). + +=item B<--ssh-option> + +Specify multiple options like the user (example: --ssh-option='-l=centreon-engine' --ssh-option='-p=52'). + =back -=cut +=cut \ No newline at end of file diff --git a/apps/apcupsd/local/mode/timeleft.pm b/apps/apcupsd/local/mode/timeleft.pm index 4cdb2e22a..81e75805a 100644 --- a/apps/apcupsd/local/mode/timeleft.pm +++ b/apps/apcupsd/local/mode/timeleft.pm @@ -137,6 +137,18 @@ Warning Threshold Critical Threshold +=item B<--remote> + +If you dont wanna install the apcupsd client on your local system you can run it remotely with 'ssh'. + +=item B<--hostname> + +Hostname to query (need --remote). + +=item B<--ssh-option> + +Specify multiple options like the user (example: --ssh-option='-l=centreon-engine' --ssh-option='-p=52'). + =back =cut From 807a75103a4ec1663b455fcce4870345568feed0 Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 20 Mar 2014 13:48:29 +0100 Subject: [PATCH 2/2] Refs #5363 --- apps/apcupsd/local/mode/{temperatur.pm => temperature.pm} | 2 +- apps/apcupsd/local/plugin.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename apps/apcupsd/local/mode/{temperatur.pm => temperature.pm} (99%) diff --git a/apps/apcupsd/local/mode/temperatur.pm b/apps/apcupsd/local/mode/temperature.pm similarity index 99% rename from apps/apcupsd/local/mode/temperatur.pm rename to apps/apcupsd/local/mode/temperature.pm index a11342291..af44b548f 100644 --- a/apps/apcupsd/local/mode/temperatur.pm +++ b/apps/apcupsd/local/mode/temperature.pm @@ -33,7 +33,7 @@ # #################################################################################### -package apps::apcupsd::local::mode::temperatur; +package apps::apcupsd::local::mode::temperature; use base qw(centreon::plugins::mode); diff --git a/apps/apcupsd/local/plugin.pm b/apps/apcupsd/local/plugin.pm index d4f6074f0..d164592f9 100644 --- a/apps/apcupsd/local/plugin.pm +++ b/apps/apcupsd/local/plugin.pm @@ -102,7 +102,7 @@ sub new { $self->{version} = '0.1'; %{$self->{modes}} = ( 'batterycharge' => 'apps::apcupsd::local::mode::batterycharge', # BCHARGE - 'temperatur' => 'apps::apcupsd::local::mode::temperatur', # ITEMP + 'temperature' => 'apps::apcupsd::local::mode::temperature', # ITEMP 'timeleft' => 'apps::apcupsd::local::mode::timeleft', # TIMELEFT MAXTIME MINTIMEL 'linevoltage' => 'apps::apcupsd::local::mode::linevoltage', # LINEV 'batteryvoltage' => 'apps::apcupsd::local::mode::batteryvoltage', # BATTV