xymon-ext-scripts

Check-in [bbfdb16dd8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Always check kernel version from uname, otherwise you can be fooled into believing you've booted into the updated kernel
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:bbfdb16dd801967bb6bd5d3b530a5f96b7dcdd5bb5a20bd9de4ae916d8b9640f
User & Date: feld@feld.me 2016-08-16 00:05:00
Context
2017-03-14
15:15
Remove some needless greps in favor of awk Add checking and reporting of disk temperature Filter out nvd devices which aren't actually disks, but I may want to add logic to convert these to nvme equivalents... check-in: b701d7442e user: feld@feld.me tags: master, trunk
2016-08-16
00:05
Always check kernel version from uname, otherwise you can be fooled into believing you've booted into the updated kernel check-in: bbfdb16dd8 user: feld@feld.me tags: master, trunk
00:01
Cleanup, don't call jexec because you can't as non-root. check-in: 911a7c8e24 user: feld@feld.me tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to baseaudit.sh.

64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
echo "$(hostname) base audit status" >> ${TMPFILE}
echo "" >> ${TMPFILE}

# If BASEAUDIT_FORCEFETCH is enabled, pass -F flag and set VULNXML to a path where Xymon can write
[ ${BASEAUDIT_FORCEFETCH} = "YES" ] && BASEAUDIT_FLAGS="${BASEAUDIT_FLAGS} -F" && VULNXML="-f /usr/local/www/xymon/client/tmp/vuln.xml"

if [ -e /bin/freebsd-version ] ; then
    export KERNELVER="$(freebsd-version -k)"
    export BASEVER="$(freebsd-version -u)"
else
    export NOBASEVER=YES # No freebsd-update, can't reliably identify base version
    export KERNELVER="$(uname -r)"
fi

# Check to make sure we're working with a RELEASE for the kernel







|







64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
echo "$(hostname) base audit status" >> ${TMPFILE}
echo "" >> ${TMPFILE}

# If BASEAUDIT_FORCEFETCH is enabled, pass -F flag and set VULNXML to a path where Xymon can write
[ ${BASEAUDIT_FORCEFETCH} = "YES" ] && BASEAUDIT_FLAGS="${BASEAUDIT_FLAGS} -F" && VULNXML="-f /usr/local/www/xymon/client/tmp/vuln.xml"

if [ -e /bin/freebsd-version ] ; then
    export KERNELVER="$(uname -r)"
    export BASEVER="$(freebsd-version -u)"
else
    export NOBASEVER=YES # No freebsd-update, can't reliably identify base version
    export KERNELVER="$(uname -r)"
fi

# Check to make sure we're working with a RELEASE for the kernel