5 Jan
2012
5 Jan
'12
4:22 p.m.
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