Hello community,
here is the log from the commit of package monitoring-plugins-repomd for
openSUSE:Factory checked in at 2016-02-22 08:57:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/monitoring-plugins-repomd (Old)
and /work/SRC/openSUSE:Factory/.monitoring-plugins-repomd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "monitoring-plugins-repomd"
Changes:
--------
---
/work/SRC/openSUSE:Factory/monitoring-plugins-repomd/monitoring-plugins-repomd.changes
2016-02-11 12:37:14.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.monitoring-plugins-repomd.new/monitoring-plugins-repomd.changes
2016-02-22 08:57:45.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Jan 7 19:29:47 CET 2016 - [email protected]
+
+- only check for revision/date if there is a suseinfo entry
+ in the repomd.xml file
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ check_repomd ++++++
--- /var/tmp/diff_new_pack.d58lxq/_old 2016-02-22 08:57:46.000000000 +0100
+++ /var/tmp/diff_new_pack.d58lxq/_new 2016-02-22 08:57:46.000000000 +0100
@@ -110,6 +110,7 @@
fi
REVISION=$($GREP revision "$RESULTFILE" | $CUT -d "<" -f2 | $CUT -d ">" -f2)
+HAS_INFO=$($GREP "type.*suseinfo" "$RESULTFILE")
NOW=$(date +'%s')
let DIFFERENCE=(${NOW}-${REVISION})
let SECONDS=${DAYS}*24*60*60
@@ -123,7 +124,7 @@
echo
fi
-if [[ $DIFFERENCE -gt $SECONDS ]]; then
+if [[ -n "$HAS_INFO" && $DIFFERENCE -gt $SECONDS ]]; then
cleanup_and_exit "$STATE_CRITICAL" "CRITICAL: repomd.xml from $URL is
older than $DAYS days"
else
cleanup_and_exit "$STATE_OK" "OK: repomd.xml from $URL is younger than
$DAYS days"