Xymon Mailing List Archive search

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

2 messages in this thread

list Pankaj Dorlikar · Thu, 23 Apr 2009 00:19:07 +0530 ·
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?
-- 
Pankaj V. Dorlikar
list Buchan Milne · Wed, 22 Apr 2009 22:03:29 +0200 (SAST) ·
quoted from Pankaj Dorlikar
----- "pankaj dorlikar" <user-93d3572686c4@xymon.invalid> 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