This commit is contained in:
Quentin Garnier 2014-07-04 14:19:40 +02:00
parent 3f70132c25
commit e8d430130a
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ __END__
=head1 MODE
Check sensor voltage.
Check sensor contact.
=over 8

View File

@ -93,7 +93,7 @@ sub run {
my $webcontent = centreon::plugins::httplib::connect($self);
my $illumination;
if ($webcontent !~ /<body>(.*)<\/body>/msi || $1 !~ /IL\s*(?::\s*([0-9\.]+)|([0-9\.]+))/i) {
if ($webcontent !~ /<body>(.*)<\/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();
}