projects
/
mirror
/
dsa-nagios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e80ceb
)
Stop if we can't create meta package name
author
Stephen Gran
<steve@lobefin.net>
Tue, 19 May 2009 11:08:18 +0000
(12:08 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Tue, 19 May 2009 11:08:18 +0000
(12:08 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
dsa-nagios-checks/checks/dsa-check-running-kernel
patch
|
blob
|
history
diff --git
a/dsa-nagios-checks/checks/dsa-check-running-kernel
b/dsa-nagios-checks/checks/dsa-check-running-kernel
index
d1d65ae
..
1027e38
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-running-kernel
+++ b/
dsa-nagios-checks/checks/dsa-check-running-kernel
@@
-61,6
+61,11
@@
get_avail() {
metavers=$(echo $kervers | sed -r -e 's/^2\.(4|6)\.[0-9]+-[A-Za-z0-9\.]+-(.*)/2.\1-\2/')
fi
+ # Attempt to track back to a metapackage failed. bail
+ if [ "$metavers" = "$kervers" ]; then
+ return 2
+ fi
+
# We're just going to give up if we can't find a matching metapackage
# I tried being strict once, and it just caused a lot of headaches. We'll see how
# being lax does for us
@@
-103,7
+108,6
@@
get_avail() {
return 1
}
-
get_image() {
local image GZHDR1 GZHDR2 off