From 8af2b997ad0dce33b8af68cefe3fe6de915a480a Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 15 Dec 2011 15:18:12 +0100 Subject: [PATCH] check_junos_vc: Query the oper status rather than the admin status. The latter indicates that the interface has been en-/disabled by the admin. --- check_junos_vc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_junos_vc.pl b/check_junos_vc.pl index 6350a83..23e67ad 100755 --- a/check_junos_vc.pl +++ b/check_junos_vc.pl @@ -812,7 +812,7 @@ sub get_iface_name sub get_iface_status { my $iface = shift; - return get_obj_element($iface, 'admin-status'); + return get_obj_element($iface, 'oper-status'); } sub verbose