mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 06:05:17 +02:00
Refs #5225
This commit is contained in:
parent
3f70132c25
commit
e8d430130a
@ -120,7 +120,7 @@ __END__
|
|||||||
|
|
||||||
=head1 MODE
|
=head1 MODE
|
||||||
|
|
||||||
Check sensor voltage.
|
Check sensor contact.
|
||||||
|
|
||||||
=over 8
|
=over 8
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ sub run {
|
|||||||
my $webcontent = centreon::plugins::httplib::connect($self);
|
my $webcontent = centreon::plugins::httplib::connect($self);
|
||||||
my $illumination;
|
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}->add_option_msg(short_msg => "Could not find illumination information.");
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user