From 2905ab642bc3ff4ec72143a87d30de709ba9778a Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Fri, 18 Jul 2014 11:02:29 +0200 Subject: [PATCH] Fix check-config on Cisco matching the wrong offset In terms of unsynced config, the check was comparing unsaved_since instead of unsynced_since. --- plugins-scripts/Classes/Cisco/IOS/Component/ConfigSubsystem.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins-scripts/Classes/Cisco/IOS/Component/ConfigSubsystem.pm b/plugins-scripts/Classes/Cisco/IOS/Component/ConfigSubsystem.pm index b3d3b26d..f4519af9 100644 --- a/plugins-scripts/Classes/Cisco/IOS/Component/ConfigSubsystem.pm +++ b/plugins-scripts/Classes/Cisco/IOS/Component/ConfigSubsystem.pm @@ -58,7 +58,7 @@ sub check { $self->check_thresholds($unsynced_since); $self->add_info(sprintf "saved running config is ahead of startup config since %d minutes. device will boot with a config different from the one which was last saved", $unsynced_since / 60); - $self->add_message($self->check_thresholds($unsaved_since)); + $self->add_message($self->check_thresholds($unsynced_since)); } }