[hobbit] clients with different host name than uanme -n for xymon-4.2.2

Buchan Milne bgmilne at staff.telkomsa.net
Wed Apr 22 22:03:29 CEST 2009


----- "pankaj dorlikar" <pankaj.dorlikar at gmail.com> wrote:

> hello,
> i am using different hostname for clients than uname -n.hence i run
> runcklient.sh with --hostname=myhostname and it is running fine and
> sending data to server.But now whenever in future if runclient.sh gets
> stopped or client process gets killed,is ther any way to avoid running
> runclient.sh with -hostname=myhostname mannually?where sholud i fix so
> that my runclient.sh script always get"myhostname" and not the uname
> -n.i dont want to change bb-hosts file CLIENT=hostname tag.
> Any suggestions?

If you are using an init script, such as the one supplied in debian/hobbit-client.init or rpm/hobbit-client.init, then you would be able to set:
CLIENTHOSTNAME=myhostname
in /etc/default/hobbit-client (or, /etc/sysconfig/hobbit-client in more Red Hat-like RPMs).

Regards,
Buchan



More information about the Xymon mailing list