summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAlex Bradley <a.bradley@alumni.cs.ubc.ca>2012-10-03 01:38:35 -0700
committerAlex Bradley <a.bradley@alumni.cs.ubc.ca>2012-10-03 15:25:51 -0700
commit09c25be0d1c95ce1deba7d9ee046b343cbd7ab93 (patch)
tree2d3283a23246eb16a411c25b4081dd0e8affcac9 /plugins
parent7918f5868c08909050aa083eeb819d110f2d160d (diff)
downloadmonitoring-plugins-09c25be0d1c95ce1deba7d9ee046b343cbd7ab93.tar.gz
Fix SourceForge bug 1904965 - check_apt: SECURITY_RE is not correct
For the default security upgrade detection regular expression, match "Debian-Security" in package description when it's anywhere after the first parenthesis (not just the second space-delimited word). For example: ... (4.0.1-5.4 Debian:6.0.6/stable, Debian-Security:6.0/stable ...
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_apt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index 26499aef..a1176cf0 100644
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
@@ -52,7 +52,7 @@ typedef enum { UPGRADE, DIST_UPGRADE, NO_UPGRADE } upgrade_type;
52/* String found at the beginning of the apt output lines we're interested in */ 52/* String found at the beginning of the apt output lines we're interested in */
53#define PKGINST_PREFIX "Inst " 53#define PKGINST_PREFIX "Inst "
54/* the RE that catches security updates */ 54/* the RE that catches security updates */
55#define SECURITY_RE "^[^\\(]*\\([^ ]* (Debian-Security:|Ubuntu:[^/]*/[^-]*-security)" 55#define SECURITY_RE "^[^\\(]*\\(.* (Debian-Security:|Ubuntu:[^/]*/[^-]*-security)"
56 56
57/* some standard functions */ 57/* some standard functions */
58int process_arguments(int, char **); 58int process_arguments(int, char **);