From e8d430130a65fb67fc5dd9ef2a57e8a6f3c49b7c Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Fri, 4 Jul 2014 14:19:40 +0200 Subject: [PATCH] Refs #5225 --- hardware/sensors/sensormetrix/em01/web/mode/contact.pm | 2 +- hardware/sensors/sensormetrix/em01/web/mode/illumination.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/sensors/sensormetrix/em01/web/mode/contact.pm b/hardware/sensors/sensormetrix/em01/web/mode/contact.pm index 7fb4c2b39..2291c7b2e 100644 --- a/hardware/sensors/sensormetrix/em01/web/mode/contact.pm +++ b/hardware/sensors/sensormetrix/em01/web/mode/contact.pm @@ -120,7 +120,7 @@ __END__ =head1 MODE -Check sensor voltage. +Check sensor contact. =over 8 diff --git a/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm b/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm index 45992724c..420bcc392 100644 --- a/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm +++ b/hardware/sensors/sensormetrix/em01/web/mode/illumination.pm @@ -93,7 +93,7 @@ sub run { my $webcontent = centreon::plugins::httplib::connect($self); my $illumination; - if ($webcontent !~ /(.*)<\/body>/msi || $1 !~ /IL\s*(?::\s*([0-9\.]+)|([0-9\.]+))/i) { + if ($webcontent !~ /(.*)<\/body>/msi || $1 !~ /IL(?:\s*:\s*|\s*)([0-9\.]+)/i) { $self->{output}->add_option_msg(short_msg => "Could not find illumination information."); $self->{output}->option_exit(); }