parent
69abfd42a0
commit
3f70132c25
|
@ -34,7 +34,7 @@
|
|||
# Based on De Bodt Lieven plugin
|
||||
####################################################################################
|
||||
|
||||
package hardware::sensors::sequoia::em01::web::mode::contact;
|
||||
package hardware::sensors::sensormetrix::em01::web::mode::contact;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
# Based on De Bodt Lieven plugin
|
||||
####################################################################################
|
||||
|
||||
package hardware::sensors::sequoia::em01::web::mode::flood;
|
||||
package hardware::sensors::sensormetrix::em01::web::mode::flood;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
# Based on De Bodt Lieven plugin
|
||||
####################################################################################
|
||||
|
||||
package hardware::sensors::sequoia::em01::web::mode::humidity;
|
||||
package hardware::sensors::sensormetrix::em01::web::mode::humidity;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
# Based on De Bodt Lieven plugin
|
||||
####################################################################################
|
||||
|
||||
package hardware::sensors::sequoia::em01::web::mode::illumination;
|
||||
package hardware::sensors::sensormetrix::em01::web::mode::illumination;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
||||
|
@ -93,7 +93,7 @@ sub run {
|
|||
my $webcontent = centreon::plugins::httplib::connect($self);
|
||||
my $illumination;
|
||||
|
||||
if ($webcontent !~ /<body>(.*)<\/body>/msi || $1 !~ /IL\s*([0-9\.]+)/i) {
|
||||
if ($webcontent !~ /<body>(.*)<\/body>/msi || $1 !~ /IL\s*(?::\s*([0-9\.]+)|([0-9\.]+))/i) {
|
||||
$self->{output}->add_option_msg(short_msg => "Could not find illumination information.");
|
||||
$self->{output}->option_exit();
|
||||
}
|
|
@ -34,7 +34,7 @@
|
|||
# Based on De Bodt Lieven plugin
|
||||
####################################################################################
|
||||
|
||||
package hardware::sensors::sequoia::em01::web::mode::temperature;
|
||||
package hardware::sensors::sensormetrix::em01::web::mode::temperature;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
||||
|
@ -162,11 +162,11 @@ Threshold for HTTP timeout
|
|||
|
||||
=item B<--warning>
|
||||
|
||||
Warning Threshold for Humidity
|
||||
Warning Threshold for Temperature
|
||||
|
||||
=item B<--critical>
|
||||
|
||||
Critical Threshold for Humidity
|
||||
Critical Threshold for Temperature
|
||||
|
||||
=back
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
# Based on De Bodt Lieven plugin
|
||||
####################################################################################
|
||||
|
||||
package hardware::sensors::sequoia::em01::web::mode::thermistor;
|
||||
package hardware::sensors::sensormetrix::em01::web::mode::thermistor;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
||||
|
@ -162,11 +162,11 @@ Threshold for HTTP timeout
|
|||
|
||||
=item B<--warning>
|
||||
|
||||
Warning Threshold for Humidity
|
||||
Warning Threshold for Thermistor Temperature
|
||||
|
||||
=item B<--critical>
|
||||
|
||||
Critical Threshold for Humidity
|
||||
Critical Threshold for Thermistor Temperature
|
||||
|
||||
=back
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
# Based on De Bodt Lieven plugin
|
||||
####################################################################################
|
||||
|
||||
package hardware::sensors::sequoia::em01::web::mode::voltage;
|
||||
package hardware::sensors::sensormetrix::em01::web::mode::voltage;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
#
|
||||
####################################################################################
|
||||
|
||||
package hardware::sensors::sequoia::em01::web::plugin;
|
||||
package hardware::sensors::sensormetrix::em01::web::plugin;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
@ -47,13 +47,13 @@ sub new {
|
|||
|
||||
$self->{version} = '0.1';
|
||||
%{$self->{modes}} = (
|
||||
'contact' => 'hardware::sensors::sequoia::em01::web::mode::contact',
|
||||
'temperature' => 'hardware::sensors::sequoia::em01::web::mode::temperature',
|
||||
'humidity' => 'hardware::sensors::sequoia::em01::web::mode::humidity',
|
||||
'illumination' => 'hardware::sensors::sequoia::em01::web::mode::illumination',
|
||||
'flood' => 'hardware::sensors::sequoia::em01::web::mode::flood',
|
||||
'thermistor' => 'hardware::sensors::sequoia::em01::web::mode::thermistor',
|
||||
'voltage' => 'hardware::sensors::sequoia::em01::web::mode::voltage',
|
||||
'contact' => 'hardware::sensors::sensormetrix::em01::web::mode::contact',
|
||||
'temperature' => 'hardware::sensors::sensormetrix::em01::web::mode::temperature',
|
||||
'humidity' => 'hardware::sensors::sensormetrix::em01::web::mode::humidity',
|
||||
'illumination' => 'hardware::sensors::sensormetrix::em01::web::mode::illumination',
|
||||
'flood' => 'hardware::sensors::sensormetrix::em01::web::mode::flood',
|
||||
'thermistor' => 'hardware::sensors::sensormetrix::em01::web::mode::thermistor',
|
||||
'voltage' => 'hardware::sensors::sensormetrix::em01::web::mode::voltage',
|
||||
);
|
||||
|
||||
return $self;
|
||||
|
@ -65,6 +65,6 @@ __END__
|
|||
|
||||
=head1 PLUGIN DESCRIPTION
|
||||
|
||||
Check Sequoia em01 sensors through webpage.
|
||||
Check Sensormetrix em01 sensors through webpage.
|
||||
|
||||
=cut
|
Loading…
Reference in New Issue