[Xymon] Drop test using hostname Wildcard

Henrik Størner henrik at hswn.dk
Thu Jan 5 17:22:53 CET 2012


On 04-01-2012 14:07, Ger Maguire wrote:
> Is it possible to use wildcards to drop tests are no longer in use for
> multiple hosts ?
>
> ~/server/bin/xymon 127.0.0.1 "drop * ftp"

No, but a wee bit of scripting will let you do it. Assuming you have 
removed the "ftp" tests from hosts.cfg, they should be purple. So you 
can use the "xymondboard" command to get the hostnames, then pass each 
hostname to a "drop" command:

~/server/bin/xymon 127.0.0.1 \
     "xymondboard test=ftp color=purple fields=hostname" | \
while read H; do
    ~/server/bin/xymon 127.0.0.1 "drop $H ftp"
done


Regards,
Henrik




More information about the Xymon mailing list