mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 22:55:15 +02:00
wip
This commit is contained in:
parent
2b7dc21716
commit
e3d74acb33
@ -83,10 +83,10 @@ sub get_threshold_message {
|
|||||||
|
|
||||||
my @messages = ();
|
my @messages = ();
|
||||||
if ($options{threshold} =~ /^([\-0-9]*):/) {
|
if ($options{threshold} =~ /^([\-0-9]*):/) {
|
||||||
push @messages, sprintf('newer than %d %s', defined($1) && $1 ne '' ? $1 : 0, $options{unit});
|
push @messages, sprintf('newer than %s %s', defined($1) && $1 ne '' ? $1 : 0, $options{unit});
|
||||||
}
|
}
|
||||||
if ($options{threshold} =~ /^(?:[\-0-9]*:)?(-?[0-9]+)$/) {
|
if ($options{threshold} =~ /^(?:[\-0-9]*:)?(-?[0-9]+)$/) {
|
||||||
push @messages, sprintf('older than %d %s', $1, $options{unit});
|
push @messages, sprintf('older than %s %s', $1, $options{unit});
|
||||||
}
|
}
|
||||||
|
|
||||||
return join(' or ', @messages);
|
return join(' or ', @messages);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user