xymon-ext-scripts

Check-in [1b9a0e8282]
Login

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

Overview
Comment:alpha sort the jails
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: 1b9a0e82827fb05bdcf7e9fb65f4d0151dce481c51403d6ca5e55ea7b53df3cc
User & Date: feld@feld.me 2015-12-07 19:56:39
Context
2015-12-07
19:56
Merge branch 'master' of github.com:feld/xymon-ext-scripts check-in: 8f9f30297c user: feld@feld.me tags: master, trunk
19:56
alpha sort the jails check-in: 1b9a0e8282 user: feld@feld.me tags: master, trunk
2015-03-16
13:08
the COLOR export could get lost because of the subshell check-in: de2a6e7bac user: feld@feld.me tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pkgaudit.sh.

70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

# Run pkg audit and collect output for main host. Use -F always here.
# Jail checks below don't need -F as it was done here.
pkg-static audit ${FETCH} ${VULNXML} >> ${TMPFILE} || export NONGREEN=1

# Check if we should run on jails too. Grep removes poudriere jails.
if [ ${PKGAUDIT_JAILS} = "YES" ]; then
	for i in $(jls | sed '1d' | egrep -v "${PKGAUDIT_JAILGREP}" | awk '{print $1}'); do
		JAILROOT=$(jls -j ${i} -h path | sed '1d')
		{ echo "" ;
		echo "##############################" ;
		echo "" ;
		echo "jail $(jexec ${i} hostname) pkg audit status" ;
		pkg-static -o PKG_DBDIR=${JAILROOT}/var/db/pkg audit ${VULNXML} ; } > ${TMPFILE} || export NONGREEN=1
	done







|







70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

# Run pkg audit and collect output for main host. Use -F always here.
# Jail checks below don't need -F as it was done here.
pkg-static audit ${FETCH} ${VULNXML} >> ${TMPFILE} || export NONGREEN=1

# Check if we should run on jails too. Grep removes poudriere jails.
if [ ${PKGAUDIT_JAILS} = "YES" ]; then
	for i in $(jls | sed '1d' | egrep -v "${PKGAUDIT_JAILGREP}" | awk '{print $1}' | sort); do
		JAILROOT=$(jls -j ${i} -h path | sed '1d')
		{ echo "" ;
		echo "##############################" ;
		echo "" ;
		echo "jail $(jexec ${i} hostname) pkg audit status" ;
		pkg-static -o PKG_DBDIR=${JAILROOT}/var/db/pkg audit ${VULNXML} ; } > ${TMPFILE} || export NONGREEN=1
	done