no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | monitors:dhcp [2012/02/11 04:15] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== dhcp ====== | ||
+ | |||
+ | ^ Author | [[ etmsys@rit.edu | Eric Meddaugh ]] | | ||
+ | ^ Compatibility | Xymon 4.2 | | ||
+ | ^ Requirements | unix, Linux | | ||
+ | ^ Download | None | | ||
+ | ^ Last Update | 2006-11-26 | | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | Monitor dhcp server. | ||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | - Add script to server' | ||
+ | - Add the following to the server hobbitlaunch.cfg | ||
+ | < | ||
+ | [dhcp] | ||
+ | ENVFILE / | ||
+ | NEEDS hobbitd | ||
+ | CMD $BBHOME/ | ||
+ | LOGFILE $BBSERVERLOGS/ | ||
+ | INTERVAL 1m | ||
+ | </ | ||
+ | |||
+ | ===== Source ===== | ||
+ | ==== dhcp.sh ==== | ||
+ | <hidden onHidden=" | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # This required thie dhcping utility: | ||
+ | # | ||
+ | # http:// | ||
+ | # | ||
+ | # | ||
+ | |||
+ | ## Add to the hobbitserver.cfg in the TEST2RRD section: dhcp=tcp, this will show a graph of respond time. | ||
+ | ## Built on Solaris 10. | ||
+ | |||
+ | COLUMN=dhcp | ||
+ | TIMEOUT=10 | ||
+ | ### Place the Client IP here | ||
+ | CLIENTIP=0.0.0.0 | ||
+ | ### Place the Client Mac here | ||
+ | MACADDR=" | ||
+ | |||
+ | # / | ||
+ | # Got answer from: ${IP} | ||
+ | |||
+ | |||
+ | $BBHOME/ | ||
+ | while read L | ||
+ | do | ||
+ | set $L | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | / | ||
+ | | ||
+ | |||
+ | if test $? -ne 0 | ||
+ | then | ||
+ | COLOR=red | ||
+ | MSG=" | ||
+ | |||
+ | `cat $BBTMP/ | ||
+ | |||
+ | Seconds: ${SECONDS} | ||
+ | " | ||
+ | else | ||
+ | COLOR=green | ||
+ | MSG=" | ||
+ | |||
+ | `cat $BBTMP/ | ||
+ | |||
+ | Seconds: ${SECONDS} | ||
+ | " | ||
+ | fi | ||
+ | |||
+ | $BB $BBDISP " | ||
+ | |||
+ | $MSG" | ||
+ | $RM $BBTMP/ | ||
+ | done | ||
+ | |||
+ | exit 0 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Known Bugs and Issues ===== | ||
+ | |||
+ | * Not compatible with standard Linux installations. | ||
+ | ===== To Do ===== | ||
+ | |||
+ | ===== Credits ===== | ||
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | * **2006-11-26** | ||
+ | * Initial release | ||