From 828fced40558ef1033c26477f0af90f93e48972a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 21 Mar 2006 16:37:36 +0000 Subject: Do not exit with warning if both normal and security updates are available git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@64 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-apt-updates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nagios-check-apt-updates b/nagios-check-apt-updates index 5bf1242..f89c592 100755 --- a/nagios-check-apt-updates +++ b/nagios-check-apt-updates @@ -186,10 +186,10 @@ my $updateinfo; if (@updates_security) { $updateinfo .= 'Security updates ('.(scalar @updates_security).'): '.join(', ', @updates_security)."; "; $exit = $CRITICAL; -}; +} if (@updates_other) { $updateinfo .= 'Other Updates ('.(scalar @updates_other).'): '.join(', ', @updates_other)."; "; - $exit = $WARNING if $params->{'warnifupdates'}; + $exit = $WARNING if ($params->{'warnifupdates'} and $exit == $OK); }; $updateinfo = 'No updates available' unless defined $updateinfo; -- cgit v1.2.3