Author | Ralph Mitchell |
---|---|
Compatibility | Xymon 4.2 |
Requirements | bash, unix |
Download | None |
Last Update | 2012-04-14 |
I have a situation where we are kickstarting new servers with the xymon client included and also distributing xymon to existing servers that are currently not monitored. These clients show up in the Ghost Client page, but their report content is discarded. This script reads the Ghost Client list and creates an Unconfigured Clients page so that reports from previously unknown clients are captured without manual intervention.
Save the script somewhere (/usr/local/bin perhaps) and execute from cron on a regular basis. Alternatively, add an entry to xymon's tasks.cfg
Edit the “GHOSTBUSTERS” variable in the script to be a list of email addresses. This list receives an email any time new clients are added to the Unconfigured Clients page.
Add an include line to your hosts.cfg to pick up the ghosts host page:
include /home/xymon/server/etc/hosts.d/ghosts