no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | monitors:zones [2010/06/10 05:21] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== zones.ksh ====== | ||
| + | |||
| + | ^ Author | [[ everett.vernon@gmail.com | Vernon Everett ]] | | ||
| + | ^ Compatibility | Xymon 4.2 | | ||
| + | ^ Requirements | Solaris Zones | | ||
| + | ^ Download | None | | ||
| + | ^ Last Update | 2010-06-10 | | ||
| + | |||
| + | ===== Description ===== | ||
| + | A really **simple** view of what zones are running on a monitored host. | ||
| + | |||
| + | No alerts, just an informative view of the zones, their status, and some relavant information. | ||
| + | ===== Installation ===== | ||
| + | === Client side === | ||
| + | Copy zones.ksh in hobboit/ | ||
| + | |||
| + | Add the following to clientlaunch.cfg | ||
| + | [zones] | ||
| + | ENVFILE $HOBBITCLIENTHOME/ | ||
| + | CMD $HOBBITCLIENTHOME/ | ||
| + | LOGFILE $HOBBITCLIENTHOME/ | ||
| + | INTERVAL 5m | ||
| + | |||
| + | === Server side === | ||
| + | No Changes | ||
| + | ===== Source ===== | ||
| + | ==== zones.ksh ==== | ||
| + | |||
| + | <hidden onHidden=" | ||
| + | < | ||
| + | #!/bin/ksh | ||
| + | [ $(/ | ||
| + | TEMPFILE=$BBTMP/ | ||
| + | |||
| + | date > $TEMPFILE | ||
| + | zoneadm list -cv >> $TEMPFILE | ||
| + | echo "" | ||
| + | zoneadm list -cv | awk '{ print $2 }' | egrep -v " | ||
| + | do | ||
| + | | ||
| + | echo "" | ||
| + | done | ||
| + | |||
| + | $BB $BBDISP " | ||
| + | rm $TEMPFILE | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== Known Bugs and Issues ===== | ||
| + | None, but feel free to let me know if you find any. | ||
| + | |||
| + | (I don't think this script is complex enough to have any bugs) | ||
| + | |||
| + | ===== To Do ===== | ||
| + | If I find the time, I might make the information it displays configurable. For now it's hard coded to | ||
| + | * zonename | ||
| + | * zonepath | ||
| + | * ip-type | ||
| + | * ip-address | ||
| + | * physical NIC | ||
| + | * ncpus | ||
| + | |||
| + | ===== Credits ===== | ||
| + | I accept all the blame for this one. | ||
| + | |||
| + | ===== Changelog ===== | ||
| + | |||
| + | * **2010-06-10** | ||
| + | * Initial release | ||