no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | monitors:hobbit-nis [2009/11/23 05:49] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== hobbit-nis ====== | ||
| + | |||
| + | ^ Author | [[ gn1@sanger.ac.uk | Gildas ]] | | ||
| + | ^ Compatibility | Xymon 4.2 | | ||
| + | ^ Requirements | unix, Linux | | ||
| + | ^ Download | None | | ||
| + | ^ Last Update | 2006-11-28 | | ||
| + | |||
| + | ===== Description ===== | ||
| + | |||
| + | This hobbit server-side script, compatible Unix & Linux, allows nis server monitoring. | ||
| + | |||
| + | The script is based on Henrik' | ||
| + | |||
| + | ===== Installation ===== | ||
| + | |||
| + | - Add script to server' | ||
| + | - Modify for your environment and add the following to the server hobbitlaunch.cfg < | ||
| + | [nis] | ||
| + | ENVFILE / | ||
| + | NEEDS hobbitd | ||
| + | CMD $BBHOME/ | ||
| + | LOGFILE $BBSERVERLOGS/ | ||
| + | INTERVAL 5m | ||
| + | </ | ||
| + | - Now you can add the " | ||
| + | |||
| + | ===== Source ===== | ||
| + | ==== hobbit-nis.sh ==== | ||
| + | <hidden onHidden=" | ||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | # hobbit-nis.sh | ||
| + | # Nis server test, Courtesy of Genome Research Limited | ||
| + | # v1.0 - 06/10/2006 | ||
| + | |||
| + | BBHTAG=nis | ||
| + | COLUMN=$BBHTAG | ||
| + | |||
| + | # set your nis domain name here: | ||
| + | DOMAINNAME=your.nis.domain | ||
| + | # Check that the path for yppoll is valid: | ||
| + | YPPOLL=/ | ||
| + | YPMAP=passwd.byname | ||
| + | |||
| + | $BBHOME/ | ||
| + | do | ||
| + | set $L # To get one line of output from bbhostgrep | ||
| + | HOSTIP=" | ||
| + | MACHINEDOTS=" | ||
| + | MACHINE=`echo $2 | $SED -e' | ||
| + | COLOR=green | ||
| + | |||
| + | OUTPUT=`$YPPOLL -h $HOSTIP -d $DOMAINNAME $YPMAP 2>& | ||
| + | RC=$? | ||
| + | |||
| + | case $RC in | ||
| + | 0) | ||
| + | COLOR=" | ||
| + | ;; | ||
| + | *) | ||
| + | COLOR=" | ||
| + | ;; | ||
| + | esac | ||
| + | |||
| + | $BB $BBDISP " | ||
| + | |||
| + | ${OUTPUT} | ||
| + | " | ||
| + | done | ||
| + | |||
| + | exit 0 | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== Known Bugs and Issues ===== | ||
| + | |||
| + | * No known bugs | ||
| + | |||
| + | ===== To Do ===== | ||
| + | |||
| + | ===== Credits ===== | ||
| + | * Genome Research Limited | ||
| + | ===== Changelog ===== | ||
| + | |||
| + | * **2006-06-10** | ||
| + | * Initial release | ||