xymon-ext-scripts

Check-in [de2a6e7bac]
Login

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

Overview
Comment:the COLOR export could get lost because of the subshell
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: de2a6e7bac9d5a64a912395ee2d8671eb64fa12aacf246d88dbec71d369c363a
User & Date: feld@feld.me 2015-03-16 13:08:53
Context
2015-12-07
19:56
alpha sort the jails check-in: 1b9a0e8282 user: feld@feld.me tags: master, trunk
2015-04-06
13:52
Fix pkgaudit when run as non-root check-in: ca78846c69 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
13:03
Quote variable to prevent word splitting check-in: c0dba09309 user: feld@feld.me tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to zfs.sh.

50
51
52
53
54
55
56
57
58
59




60
61
62
63
64
65
66
67
68
			echo ""
			zpool status ${i}
                        ;;
		*)
			echo "&red ${i} is DEGRADED"
			echo ""
			zpool status ${i}
			export COLOR=red
	esac
done)





STATUS="$(hostname) ZFS status"

${XYMON} ${XYMSRV} "status ${MACHINE}.${COLUMN} ${COLOR} $(date)

${STATUS}

${MSG}
"







<


>
>
>
>









50
51
52
53
54
55
56

57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
			echo ""
			zpool status ${i}
                        ;;
		*)
			echo "&red ${i} is DEGRADED"
			echo ""
			zpool status ${i}

	esac
done)

if echo "${MSG}" | grep -q DEGRADED ; then
	export COLOR=red
fi

STATUS="$(hostname) ZFS status"

${XYMON} ${XYMSRV} "status ${MACHINE}.${COLUMN} ${COLOR} $(date)

${STATUS}

${MSG}
"