From 172b20ca43dd00df18df722b9ab330f63932e769 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 23 Dec 2011 14:22:50 +0100 Subject: [PATCH] check_junos: Include information about LAG interface status in all OK cases. --- check_junos.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_junos.pl b/check_junos.pl index 5ea8ff7..d88063c 100755 --- a/check_junos.pl +++ b/check_junos.pl @@ -269,7 +269,9 @@ foreach my $check (@{$conf{'checks'}}) { if ((! $down_count) && (! $phys_down_count)) { if (! scalar(@targets)) { - $plugin->add_message(OK, "all interfaces up"); + $plugin->add_message(OK, "all interfaces up" + . ($have_lag_ifaces + ? " (including all LAG member interfaces)" : "")); } else { $plugin->add_message(OK, "interface"