hostname change on Xymon server
list Kim Johansen
Hi, I have changed the name on my server hosting Xymon server, a Ubuntu 16.04. But Xymon server do seem to still use the old hostname: The old name was "mail1": - I get ghost report: "127.0.0.1 mail1 mail 0:38", I have shutdown Xymon client, to isolate that it is coming from the Xymon server. - the link in alert mails is "http://mail1/xymon-cgi...." - A "ps" is showing: "sh -c vmstat 300 2 1>/home/xymon/client/tmp/xymon_vmstat.mail1.7997 2>&1; mv /home/xymon/client/tmp/xymon_vmstat.mail1.7997 /home/xymon/client/tmp/xymon_vmstat.mail1" Here is what I have done: - Used hostnamectl to change hostname, but have also being over /etc/hostname and hosts. - Changed the host in hosts.cfg in Xymon server. - Used the 'xymon 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"' - I have deleted the old make file and run make clean, and configured, build, and installed all over again. - I have search for mail1 string in Xymon folder, and found nothing. My gold is to have the right URL in the alert mails. But it is also annoying me what I have done wrong... Regards, Kim Johansen
list Galen Johnson
Only a couple of things come to mind. How did you change your hostname? What does 'hostname -f' return? What is in /etc/hosts? =G=
▸
On Mon, Feb 18, 2019 at 9:04 AM <user-e03b25f5b161@xymon.invalid> wrote:
Hi, I have changed the name on my server hosting Xymon server, a Ubuntu 16.04. But Xymon server do seem to still use the old hostname: The old name was "mail1": - I get ghost report: "127.0.0.1 mail1 mail 0:38", I have shutdown Xymon client, to isolate that it is coming from the Xymon server. - the link in alert mails is "http://mail1/xymon-cgi...."; - A "ps" is showing: "sh -c vmstat 300 2 1>/home/xymon/client/tmp/xymon_vmstat.mail1.7997 2>&1; mv /home/xymon/client/tmp/xymon_vmstat.mail1.7997 /home/xymon/client/tmp/xymon_vmstat.mail1" Here is what I have done: - Used hostnamectl to change hostname, but have also being over /etc/hostname and hosts. - Changed the host in hosts.cfg in Xymon server. - Used the 'xymon 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"' - I have deleted the old make file and run make clean, and configured, build, and installed all over again. - I have search for mail1 string in Xymon folder, and found nothing. My gold is to have the right URL in the alert mails. But it is also annoying me what I have done wrong... Regards, Kim Johansen
list Kim Johansen
mail ~ $ hostname -f mail.<domain> mail ~ $ cat /etc/hosts 127.0.0.1 localhost 194.255.97.27 mail.<domain> mail # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters Regards, Kim Johansen
▸
Only a couple of things come to mind. How did you change your hostname? What does 'hostname -f' return? What is in /etc/hosts? =G= On Mon, Feb 18, 2019 at 9:04 AM <user-e03b25f5b161@xymon.invalid> wrote:Hi, I have changed the name on my server hosting Xymon server, a Ubuntu 16.04. But Xymon server do seem to still use the old hostname: The old name was "mail1": - I get ghost report: "127.0.0.1 mail1 mail 0:38", I have shutdown Xymon client, to isolate that it is coming from the Xymon server. - the link in alert mails is "http://mail1/xymon-cgi...."; - A "ps" is showing: "sh -c vmstat 300 2 1>/home/xymon/client/tmp/xymon_vmstat.mail1.7997 2>&1; mv /home/xymon/client/tmp/xymon_vmstat.mail1.7997 /home/xymon/client/tmp/xymon_vmstat.mail1" Here is what I have done: - Used hostnamectl to change hostname, but have also being over /etc/hostname and hosts. - Changed the host in hosts.cfg in Xymon server. - Used the 'xymon 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"' - I have deleted the old make file and run make clean, and configured, build, and installed all over again. - I have search for mail1 string in Xymon folder, and found nothing. My gold is to have the right URL in the alert mails. But it is also annoying me what I have done wrong... Regards, Kim Johansen
list Kim Johansen
Thanks Christian that was the problem, I didn't think about that, because doing the configure I entered the hostname. Regards, Kim Johansen
Hello, just to make sure - did you also reflect your changes in xymonserver.cfg?? I remember that if one recompiles an existing Xymon server config without deleting the target directory, I think it could keep old config files - but I'm not sure by hundred percent. Regards Christian Becker
▸
-----Ursprüngliche Nachricht-----
Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von user-e03b25f5b161@xymon.invalidGesendet: Montag, 18. Februar 2019 14:59
An: xymon at xymon.com Betreff: [Xymon] hostname change on Xymon server Hi, I have changed the name on my server hosting Xymon server, a Ubuntu 16.04. But Xymon server do seem to still use the old hostname: The old name was "mail1": - I get ghost report: "127.0.0.1 mail1 mail 0:38", I have shutdown Xymon client, to isolate that it is coming from the Xymon server. - the link in alert mails is "http://mail1/xymon-cgi...."; - A "ps" is showing: "sh -c vmstat 300 2 1>/home/xymon/client/tmp/xymon_vmstat.mail1.7997 2>&1; mv /home/xymon/client/tmp/xymon_vmstat.mail1.7997 /home/xymon/client/tmp/xymon_vmstat.mail1" Here is what I have done: - Used hostnamectl to change hostname, but have also being over /etc/hostname and hosts. - Changed the host in hosts.cfg in Xymon server. - Used the 'xymon 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"' - I have deleted the old make file and run make clean, and configured, build, and installed all over again. - I have search for mail1 string in Xymon folder, and found nothing. My gold is to have the right URL in the alert mails. But it is also annoying me what I have done wrong... Regards, Kim Johansen
list Christoph Knaf
Hi there, can you please remove me from the mailing list? Thanks and best regards, Chris anaxima GmbH - IT | Consulting [ mailto:user-efa91c3baac7@xymon.invalid | user-efa91c3baac7@xymon.invalid ] +49 (0) 6421 88907 11 [ https://www.anaxima.com/ | www.anaxima.com ] Hangstraße 20, 35043 Marburg Registergericht: Amtsgericht Marburg, HRB 2295 Geschäftsführer: Lothar Nottekämper, Matthias Dähling ----- Am 19. Feb 2019 um 9:55 schrieb Kim Johansen <user-e03b25f5b161@xymon.invalid>:
▸
Thanks Christian that was the problem, I didn't think about that, because doing the configure I entered the hostname.
Regards, Kim Johansen Hello, just to make sure - did you also reflect your changes in xymonserver.cfg?? I remember that if one recompiles an existing Xymon server config without deleting the target directory, I think it could keep old config files - but I'm not sure by hundred percent. Regards Christian Becker -----Ursprüngliche Nachricht----- Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von user-e03b25f5b161@xymon.invalid
Gesendet: Montag, 18. Februar 2019 14:59
An: xymon at xymon.com Betreff: [Xymon] hostname change on Xymon server Hi, I have changed the name on my server hosting Xymon server, a Ubuntu 16.04. But Xymon server do seem to still use the old hostname: The old name was "mail1": - I get ghost report: "127.0.0.1 mail1 mail 0:38", I have shutdown Xymon client, to isolate that it is coming from the Xymon server. - the link in alert mails is "http://mail1/xymon-cgi...."; - A "ps" is showing: "sh -c vmstat 300 2 1>/home/xymon/client/tmp/xymon_vmstat.mail1.7997 2>&1; mv /home/xymon/client/tmp/xymon_vmstat.mail1.7997 /home/xymon/client/tmp/xymon_vmstat.mail1" Here is what I have done: - Used hostnamectl to change hostname, but have also being over /etc/hostname and hosts. - Changed the host in hosts.cfg in Xymon server. - Used the 'xymon 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"' - I have deleted the old make file and run make clean, and configured, build, and installed all over again. - I have search for mail1 string in Xymon folder, and found nothing. My gold is to have the right URL in the alert mails. But it is also annoying me what I have done wrong... Regards, Kim Johansen