Xymon Mailing List Archive search

Using variables in clientlaunch.cfg?

list Henrik Størner
Sat, 29 Jul 2006 08:56:28 +0200
Message-Id: <user-8e656e427fc6@xymon.invalid>

On Fri, Jul 28, 2006 at 04:02:45PM -0700, Charles Jones wrote:
Another option would be, if clientlaunch could handle variables:
[tomcat_threads]
        	ENVFILE /home/hobbit/client/etc/hobbitclient.cfg
                CMD /home/hobbit/client/ext/$HOSTNAME_tct.sh
                INTERVAL 5m
It can. Any environment variable, or setting from the hobbitclient.cfg
file, can be used in the settings in clientlaunch.cfg.
I imagine this method though would generate errors when hobbit tries to 
execute the script on the hosts where it does not exist?
It would, but after 5 attempts it would automatically disable the task.


Henrik