check_junos: Use plural only when necessary ;-)
This commit is contained in:
parent
f53f346797
commit
279c4bca47
|
@ -290,13 +290,16 @@ sub check_interfaces
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($down_count > 0) {
|
if ($down_count > 0) {
|
||||||
$plugin->add_message(CRITICAL, $down_count
|
$plugin->add_message(CRITICAL, $down_count . " interface"
|
||||||
. " interfaces down (" . join(", ", @down_ifaces) . ")");
|
. ($down_count == 1 ? "" : "s")
|
||||||
|
. " down (" . join(", ", @down_ifaces) . ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($phys_down_count > 0) {
|
if ($phys_down_count > 0) {
|
||||||
$plugin->add_message(WARNING, $phys_down_count
|
$plugin->add_message(WARNING, $phys_down_count
|
||||||
. " LAG member interfaces down ("
|
. " LAG member interface"
|
||||||
|
. ($phys_down_count == 1 ? "" : "s")
|
||||||
|
. " down ("
|
||||||
. join(", ", @phys_down_ifaces) . ")");
|
. join(", ", @phys_down_ifaces) . ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -403,7 +406,9 @@ sub check_chassis_environment
|
||||||
$plugin->add_message(WARNING, "no components found");
|
$plugin->add_message(WARNING, "no components found");
|
||||||
}
|
}
|
||||||
elsif ($items_count == $items_ok) {
|
elsif ($items_count == $items_ok) {
|
||||||
$plugin->add_message(OK, "$items_ok components OK");
|
$plugin->add_message(OK, "$items_ok component"
|
||||||
|
. ($items_ok == 1 ? "" : "s")
|
||||||
|
. " OK");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$plugin->add_message(WARNING,
|
$plugin->add_message(WARNING,
|
||||||
|
|
Loading…
Reference in a new issue