From: Julien Cristau Date: Fri, 25 Oct 2019 20:03:09 +0000 (+0200) Subject: Merge branch 'fordsa' of https://git.adam-barratt.org.uk/git/mirror/dsa-nagios X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=a860b52a347f35fe3c370234216545c9f36dad6e;hp=6cb67eae946e11dfe350767f5fdccc1048ba703b;p=mirror%2Fdsa-nagios.git Merge branch 'fordsa' of https://git.adam-barratt.org.uk/git/mirror/dsa-nagios --- diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index 0b37ddd..a5bafea 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -560,7 +560,7 @@ servers: melartin: address: 194.177.211.208 parents: ganeti-grnet - hostgroups: computers, service, kvmdomains, stretch, systemd-timesyncd, postgres96-hosts, hassrvfs + hostgroups: computers, service, kvmdomains, buster, systemd-timesyncd, postgres11-hosts, hassrvfs static-master-grnet-01: address: 194.177.211.209 parents: ganeti-grnet diff --git a/dsa-nagios-checks/checks/dsa-check-running-kernel b/dsa-nagios-checks/checks/dsa-check-running-kernel index 467c219..d90a9aa 100755 --- a/dsa-nagios-checks/checks/dsa-check-running-kernel +++ b/dsa-nagios-checks/checks/dsa-check-running-kernel @@ -94,7 +94,7 @@ get_avail() { local imagename=0 # --no-all-versions show shows only the candidate - for vers in $(apt-cache --no-all-versions show ${prefix}-image-${metavers} | sed -n 's/^Depends: //p' | tr ',' '\n' | tr -d ' ' | grep ${prefix}-image | awk '{print $1}' | sort -u); do + for vers in $(apt-cache --no-all-versions show ${prefix}-image-${metavers} | sed -n 's/^Depends: //p' | tr ',' '\n' | tr -d ' ' | grep ${prefix}-image | awk '{print $1}' | sort -Vu); do if dpkg --compare-versions "1.$vers" gt "1.$imagename"; then imagename=$vers fi diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 3082e59..8426b4c 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -13,6 +13,15 @@ dsa-nagios-checks (119) UNRELEASED; urgency=medium * port dsa-check-statusfile and dsa-check-memory to python3 * dsa-check-zone-signature-all: tell dig not to convert punycode. + [ Peter Palfrader ] + * dsa-check-running-kernel: When we ask apt-cache for information on + the metapackage to extract the actual kernel image it depends on, we + sort that output. It's not clear why we do that, since we pass the + option --no-all-versions to apt-cache so we should only get one answer + anyhow. Nevertheless, since we sort we might just as well use -V + to version sort that output. dpkg-version sort would be even better, + but hey. This is based on Erik Auerswald's patch in #884328. + -- Peter Palfrader Mon, 20 May 2019 12:52:00 +0200 dsa-nagios-checks (118) unstable; urgency=medium