nfs
Author | mikadel |
---|---|
Compatibility | Xymon 4.3.0 |
Requirements | Linux/Unix, killdog |
Download | None |
Last Update | 2012-01-03 |
Description
This is a shell script that is able to monitor NFS shares(/mount points) on the local machine. To prevent itself from getting stuck at unreachable mount points this test uses 'killdog'.
'killdog' is a shell script that executes a command/process, writes its' output to standard out and returns as soon as the command has been executed or (if the process is stuck) after a given timeout and kills the executed child process.
This test needs to be configurated via a config file (feel free to change its' name or location). A correctly mounted nfs share is shown as green entry, failures are represented by a red entry and not responding shares (which means that the 'killdog' timeout has been exceeded) will show up as yellow (you may want to change this behaviour to red).
Installation
Client side
Create the following files in your xymon client directory:
monitoring script: <xymon-client-ext>/nfs
monitoring config: <xymon-client-etc>/nfs.conf
xymon monitor config: <xymon-client-etc>/clientlaunch.d/nfs.cfg
'killdog' has to be placed somewhere where it can be executed via $PATH or directly in the <xymon-client-ext> directory. Depending on where you place it you may have to change your sudoers files to something like this:
hobbit ALL=NOPASSWD:/<your-path-to-killdog>/killdog
Server side
None.
Source
killdog
nfs
nfs.cfg
nfs.conf
Known Bugs and Issues
None currently known.
To Do
Credits
Changelog
- 2012-01-03
- Initial release