no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | monitors:gstripe [2011/08/12 04:44] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== My Monitor (CHANGEME) ====== | ||
+ | |||
+ | ^ Author | [[ Brian.Scott@tafensw.edu.au | Brian Scott ]] | | ||
+ | ^ Compatibility | Xymon 4.3 | | ||
+ | ^ Requirements | FreeBSD, Bourne Shell (sh) | | ||
+ | ^ Download | None | | ||
+ | ^ Last Update | 2011-08-12 | | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | ===== Installation ===== | ||
+ | The usual stuff for ~xymon/ | ||
+ | < | ||
+ | [gstripe] | ||
+ | ENVFILE / | ||
+ | NEEDS xymond | ||
+ | CMD $XYMONHOME/ | ||
+ | LOGFILE $XYMONSERVERLOGS/ | ||
+ | INTERVAL 5m | ||
+ | </ | ||
+ | |||
+ | And the equivalent version if client side. | ||
+ | |||
+ | ===== Source ===== | ||
+ | ==== gstripe.sh ==== | ||
+ | |||
+ | <hidden onHidden=" | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | |||
+ | COLUMN=gstripe | ||
+ | |||
+ | HOSTNAME=" | ||
+ | COLOUR=green | ||
+ | |||
+ | # % gstripe status | ||
+ | # | ||
+ | # stripe/ | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # UP, DOWN -> green, red | ||
+ | / | ||
+ | rc=$? | ||
+ | SECONDS=`egrep " | ||
+ | |||
+ | if [ $rc -ne 0 ]; then | ||
+ | COLOUR=red | ||
+ | MSG=" | ||
+ | |||
+ | `cat $XYMONTMP/ | ||
+ | |||
+ | Seconds: ${SECONDS} | ||
+ | " | ||
+ | else | ||
+ | grep ' DOWN ' $XYMONTMP/ | ||
+ | if [ $? -eq 0 ]; then | ||
+ | COLOUR=red | ||
+ | fi | ||
+ | MSG=" | ||
+ | |||
+ | `cat $XYMONTMP/ | ||
+ | |||
+ | Seconds: ${SECONDS} | ||
+ | " | ||
+ | fi | ||
+ | $XYMON $XYMSRV " | ||
+ | |||
+ | $MSG" | ||
+ | $RM $XYMONTMP/ | ||
+ | |||
+ | exit 0 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Known Bugs and Issues ===== | ||
+ | |||
+ | It may very well be that a failure of a striped disk will bring the system down faster than we can usefully detect. | ||
+ | |||
+ | ===== To Do ===== | ||
+ | |||
+ | ===== Credits ===== | ||
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | * **2011-08-12** | ||
+ | * Initial release | ||