Xymon Mailing List Archive search

IP address

16 messages in this thread

list Leon Swanepoel · Thu, 13 Jun 2019 10:06:44 +0200 ·
Good day,

Is there a way to change the ip address of the xymon server? I changed
the ip address and now xymon server is not working any more. Any ideas
anyone? Thank you in advance.

Thank You,
Leon
list Damien Martins · Thu, 13 Jun 2019 10:21:37 +0200 ·
quoted from Leon Swanepoel
Le 13/06/2019 à 10:06, Leon Swanepoel a écrit :
Good day,

Is there a way to change the ip address of the xymon server? I changed
the ip address and now xymon server is not working any more. Any ideas
anyone? Thank you in advance.

Thank You,
Leon

Hello Leon,


Do you mean changing the IP the xymon daemon is listening on ? Or 
changing the IP on the OS the xymon daemon is running on ? Or changing 
the destination IP your xymon client are sending reports to ?
list Leon Swanepoel · Thu, 13 Jun 2019 10:31:16 +0200 ·
HI,

Thank you for the quick response.

1. I have changed the ip of the os to a new ip address.
2. I was wandering if I need to change the ip somewhere in xymon.
3. I need to change the ip address of the client machine to point to the
new serve rip.

Thank You,
Leon
quoted from Damien Martins

On Thu, 2019-06-13 at 10:21 +0200, Damien Martins wrote:
Le 13/06/2019 à 10:06, Leon Swanepoel a écrit :
Good day,

Is there a way to change the ip address of the xymon server? I changed
the ip address and now xymon server is not working any more. Any ideas
anyone? Thank you in advance.

Thank You,
Leon

Hello Leon,


Do you mean changing the IP the xymon daemon is listening on ? Or 
changing the IP on the OS the xymon daemon is running on ? Or changing 
the destination IP your xymon client are sending reports to ?
list Damien Martins · Thu, 13 Jun 2019 10:38:07 +0200 ·
quoted from Leon Swanepoel
Le 13/06/2019 à 10:31, Leon Swanepoel a écrit :
HI,

Thank you for the quick response.

1. I have changed the ip of the os to a new ip address.
2. I was wandering if I need to change the ip somewhere in xymon.
3. I need to change the ip address of the client machine to point to the
new serve rip.

Thank You,
Leon

On Thu, 2019-06-13 at 10:21 +0200, Damien Martins wrote:
Le 13/06/2019 à 10:06, Leon Swanepoel a écrit :
Good day,

Is there a way to change the ip address of the xymon server? I changed
the ip address and now xymon server is not working any more. Any ideas
anyone? Thank you in advance.

Thank You,
Leon

Hello Leon,


Do you mean changing the IP the xymon daemon is listening on ? Or
changing the IP on the OS the xymon daemon is running on ? Or changing
the destination IP your xymon client are sending reports to ?
Leon:

1 & 2 I guess a simple xymon daemon restart should be enough to have the daemon listening on the new IP address (depends if it is listening on 0.0.0.0:1984 or specific IP address. You can check this by using netstat (or "ss" if netstat is not available anymore)

3 On your clients, you have to set the new IP address indeed. The place to perform the change depends on your OS. On Debian/Ubuntu, if you use the official package, you may check /etc/default/xymon-client file. For other OS or installation mode, I don't know. Anyway, you can look for this variable : XYMONSERVERS

if this is pointing to your old IP address, change it to the new one ;)
list Leon Swanepoel · Thu, 13 Jun 2019 10:52:47 +0200 ·
HI,

I did a restart but it is still referencing the old ip. See the netstat
below.

Proto Recv-Q Send-Q Local Address           Foreign Address
State      tcp        0      0 127.0.0.53:53           0.0.0.0:*
LISTEN     tcp        0      0 0.0.0.0:22              0.0.0.0:*
LISTEN     tcp        0      0 0.0.0.0:1984            0.0.0.0:*
LISTEN     tcp        0     40 10.120.1.21:22          172.29.89.26:40412
ESTABLISHED
tcp        0      1 10.120.1.21:48182       10.121.0.134:1984
SYN_SENT   tcp6       0      0 :::80                   :::*
LISTEN     tcp6       0      0 :::22                   :::*
LISTEN     tcp6       0      0 10.120.1.21:80          172.29.89.26:51732
TIME_WAIT  tcp6       0      0 10.120.1.21:80          172.29.89.26:51735
TIME_WAIT  tcp6       0      0 10.120.1.21:80          172.29.89.26:51731
TIME_WAIT  tcp6       0      0 10.120.1.21:80          172.29.89.26:51733
TIME_WAIT  tcp6       0      0 10.120.1.21:80          172.29.89.26:51745
TIME_WAIT  udp        0      0 127.0.0.53:53
0.0.0.0:*                          udp        0      0 10.120.1.21:68
0.0.0.0:*                          raw6       0      0 :::58                   :::*
7     
   10.121.0.134 is the old ip address.
quoted from Damien Martins

Thank You,
Leon 
On Thu, 2019-06-13 at 10:38 +0200, Damien Martins wrote:
Le 13/06/2019 à 10:31, Leon Swanepoel a écrit :
HI,

Thank you for the quick response.

1. I have changed the ip of the os to a new ip address.
2. I was wandering if I need to change the ip somewhere in xymon.
3. I need to change the ip address of the client machine to point to the
new serve rip.

Thank You,
Leon

On Thu, 2019-06-13 at 10:21 +0200, Damien Martins wrote:
Le 13/06/2019 à 10:06, Leon Swanepoel a écrit :
Good day,

Is there a way to change the ip address of the xymon server? I changed
the ip address and now xymon server is not working any more. Any ideas
anyone? Thank you in advance.

Thank You,
Leon
Hello Leon,


Do you mean changing the IP the xymon daemon is listening on ? Or
changing the IP on the OS the xymon daemon is running on ? Or changing
the destination IP your xymon client are sending reports to ?
Leon:

1 & 2 I guess a simple xymon daemon restart should be enough to have the daemon listening on the new IP address (depends if it is listening on 0.0.0.0:1984 or specific IP address. You can check this by using netstat (or "ss" if netstat is not available anymore)

3 On your clients, you have to set the new IP address indeed. The place to perform the change depends on your OS. On Debian/Ubuntu, if you use the official package, you may check /etc/default/xymon-client file. For other OS or installation mode, I don't know. Anyway, you can look for this variable : XYMONSERVERS

if this is pointing to your old IP address, change it to the new one ;)
list Becker Christian · Thu, 13 Jun 2019 08:59:25 +0000 ·
Leon,

i did this in the past and from my experience I can say it is not enough to simply restart the xymon services.

In my case, I had to reflect these additional steps:

a)
Make your basic server config work correctly - reflect your changes to /etc/hosts and whatever files are needed for your linux distro to have the server get the right IP address after a reboot.

b)
I had to change the settings in "xymonserver.cfg". In my installation, there was an entry "XYMONSERVERIP" that did not point to 127.0.0.1 - so I had to change this.

c)
I needed to recompile xymon on the server. Probably this was because I was coming from an elder version of xymon.
So I went into my directory from where I installed xymon.
There I changed the file "Makefile". In this "Makefile" there is an entry "XYMONHOSTIP" that also did not point to 127.0.0.1 - so I had to change this.
Afterwards, I did a "make" and "make install".
After that xymon did start.

d)
As soon as you configured your xymon clients to report to an IP-address instead to a xymon-server-name: you need to change all of your xymon clients as well in the file xymonclient.cfg.
There is an entry XYMSRV.
After doing that restart the xymon services on your clients.
If you have Windows clients you need to change the settings either in bbwin or psclient - whatever you are using.

This was what was necessary for MY installation - I cannot say if this will do the trick for YOUR installation.

Hope this works for you!

Regards
Christian
quoted from Leon Swanepoel


-----Ursprüngliche Nachricht-----
Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von Leon Swanepoel
Gesendet: Donnerstag, 13. Juni 2019 10:07
An: xymon at xymon.com
Betreff: [Xymon] IP address

Good day,

Is there a way to change the ip address of the xymon server? I changed the ip address and now xymon server is not working any more. Any ideas anyone? Thank you in advance.

Thank You,
Leon
list Leon Swanepoel · Thu, 13 Jun 2019 11:03:30 +0200 ·
Thank you Becker

On Thu, 2019-06-13 at 08:59 +0000, Becker Christian wrote:
XYMONSERVERIP
list Leon Swanepoel · Thu, 13 Jun 2019 12:12:08 +0200 ·
Good day,

I followed the steps and it is still not working. Somewhere its
referencing the old ip. Even a reinstall did not work. I could not
change the makefile though as I am on Ubuntu and am using apt-get.
quoted from Becker Christian

Thank You,
Leon


On Thu, 2019-06-13 at 08:59 +0000, Becker Christian wrote:
Leon,

i did this in the past and from my experience I can say it is not enough to simply restart the xymon services.

In my case, I had to reflect these additional steps:

a)
Make your basic server config work correctly - reflect your changes to /etc/hosts and whatever files are needed for your linux distro to have the server get the right IP address after a reboot.

b)
I had to change the settings in "xymonserver.cfg". In my installation, there was an entry "XYMONSERVERIP" that did not point to 127.0.0.1 - so I had to change this.

c)
I needed to recompile xymon on the server. Probably this was because I was coming from an elder version of xymon.
So I went into my directory from where I installed xymon.
There I changed the file "Makefile". In this "Makefile" there is an entry "XYMONHOSTIP" that also did not point to 127.0.0.1 - so I had to change this.
Afterwards, I did a "make" and "make install".
After that xymon did start.

d)
As soon as you configured your xymon clients to report to an IP-address instead to a xymon-server-name: you need to change all of your xymon clients as well in the file xymonclient.cfg.
There is an entry XYMSRV.
After doing that restart the xymon services on your clients.
If you have Windows clients you need to change the settings either in bbwin or psclient - whatever you are using.

This was what was necessary for MY installation - I cannot say if this will do the trick for YOUR installation.

Hope this works for you!

Regards
Christian


-----Ursprüngliche Nachricht-----
Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von Leon Swanepoel
Gesendet: Donnerstag, 13. Juni 2019 10:07
An: xymon at xymon.com
Betreff: [Xymon] IP address

Good day,

Is there a way to change the ip address of the xymon server? I changed the ip address and now xymon server is not working any more. Any ideas anyone? Thank you in advance.

Thank You,
Leon


https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&amp;data=user-b9c78497733f@xymon.invalid%7C7dbd6c3ec3264c0233e508d6efd621fb%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C1%7C636960100301794265&amp;sdata=feskOy5rrnk6Q7Fqv3iy8FXfpQKbebAcNaX%2B6NNzqCQ%3D&amp;reserved=0
list Damien Martins · Thu, 13 Jun 2019 12:16:21 +0200 ·
quoted from Leon Swanepoel
Le 13/06/2019 à 12:12, Leon Swanepoel a écrit :
Good day,

I followed the steps and it is still not working. Somewhere its
referencing the old ip. Even a reinstall did not work. I could not
change the makefile though as I am on Ubuntu and am using apt-get.

Thank You,
Leon


On Thu, 2019-06-13 at 08:59 +0000, Becker Christian wrote:
Leon,

i did this in the past and from my experience I can say it is not enough to simply restart the xymon services.

In my case, I had to reflect these additional steps:

a)
Make your basic server config work correctly - reflect your changes to /etc/hosts and whatever files are needed for your linux distro to have the server get the right IP address after a reboot.

b)
I had to change the settings in "xymonserver.cfg". In my installation, there was an entry "XYMONSERVERIP" that did not point to 127.0.0.1 - so I had to change this.

c)
I needed to recompile xymon on the server. Probably this was because I was coming from an elder version of xymon.
So I went into my directory from where I installed xymon.
There I changed the file "Makefile". In this "Makefile" there is an entry "XYMONHOSTIP" that also did not point to 127.0.0.1 - so I had to change this.
Afterwards, I did a "make" and "make install".
After that xymon did start.

d)
As soon as you configured your xymon clients to report to an IP-address instead to a xymon-server-name: you need to change all of your xymon clients as well in the file xymonclient.cfg.
There is an entry XYMSRV.
After doing that restart the xymon services on your clients.
If you have Windows clients you need to change the settings either in bbwin or psclient - whatever you are using.

This was what was necessary for MY installation - I cannot say if this will do the trick for YOUR installation.

Hope this works for you!

Regards
Christian


-----Ursprüngliche Nachricht-----
Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von Leon Swanepoel
Gesendet: Donnerstag, 13. Juni 2019 10:07
An: xymon at xymon.com
Betreff: [Xymon] IP address

Good day,

Is there a way to change the ip address of the xymon server? I changed the ip address and now xymon server is not working any more. Any ideas anyone? Thank you in advance.

Thank You,
Leon


https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&amp;data=user-b9c78497733f@xymon.invalid%7C7dbd6c3ec3264c0233e508d6efd621fb%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C1%7C636960100301794265&amp;sdata=feskOy5rrnk6Q7Fqv3iy8FXfpQKbebAcNaX%2B6NNzqCQ%3D&amp;reserved=0
Leon,


How did you install xymon ? what OS are you using ?
list Leon Swanepoel · Thu, 13 Jun 2019 12:22:23 +0200 ·
Hi

Yes I reinstalled xymon. I am using Ubuntu 18.
quoted from Damien Martins

Thank You,
Leon

On Thu, 2019-06-13 at 12:16 +0200, Damien Martins wrote:
Le 13/06/2019 à 12:12, Leon Swanepoel a écrit :
Good day,

I followed the steps and it is still not working. Somewhere its
referencing the old ip. Even a reinstall did not work. I could not
change the makefile though as I am on Ubuntu and am using apt-get.

Thank You,
Leon


On Thu, 2019-06-13 at 08:59 +0000, Becker Christian wrote:
Leon,

i did this in the past and from my experience I can say it is not enough to simply restart the xymon services.

In my case, I had to reflect these additional steps:

a)
Make your basic server config work correctly - reflect your changes to /etc/hosts and whatever files are needed for your linux distro to have the server get the right IP address after a reboot.

b)
I had to change the settings in "xymonserver.cfg". In my installation, there was an entry "XYMONSERVERIP" that did not point to 127.0.0.1 - so I had to change this.

c)
I needed to recompile xymon on the server. Probably this was because I was coming from an elder version of xymon.
So I went into my directory from where I installed xymon.
There I changed the file "Makefile". In this "Makefile" there is an entry "XYMONHOSTIP" that also did not point to 127.0.0.1 - so I had to change this.
Afterwards, I did a "make" and "make install".
After that xymon did start.

d)
As soon as you configured your xymon clients to report to an IP-address instead to a xymon-server-name: you need to change all of your xymon clients as well in the file xymonclient.cfg.
There is an entry XYMSRV.
After doing that restart the xymon services on your clients.
If you have Windows clients you need to change the settings either in bbwin or psclient - whatever you are using.

This was what was necessary for MY installation - I cannot say if this will do the trick for YOUR installation.

Hope this works for you!

Regards
Christian


-----Ursprüngliche Nachricht-----
Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von Leon Swanepoel
Gesendet: Donnerstag, 13. Juni 2019 10:07
An: xymon at xymon.com
Betreff: [Xymon] IP address

Good day,

Is there a way to change the ip address of the xymon server? I changed the ip address and now xymon server is not working any more. Any ideas anyone? Thank you in advance.

Thank You,
Leon


https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&amp;data=user-b9c78497733f@xymon.invalid%7C7dbd6c3ec3264c0233e508d6efd621fb%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C1%7C636960100301794265&amp;sdata=feskOy5rrnk6Q7Fqv3iy8FXfpQKbebAcNaX%2B6NNzqCQ%3D&amp;reserved=0
Leon,


How did you install xymon ? what OS are you using ?
list Leon Swanepoel · Thu, 13 Jun 2019 12:46:43 +0200 ·
HI All,

I found where is gets set but I do not see where this file gets it info
from.

/var/run/xymon/bbdisp-runtime.cfg
quoted from Leon Swanepoel

Thank You,
Leon

On Thu, 2019-06-13 at 10:21 +0200, Damien Martins wrote:
Le 13/06/2019 à 10:06, Leon Swanepoel a écrit :
Good day,

Is there a way to change the ip address of the xymon server? I changed
the ip address and now xymon server is not working any more. Any ideas
anyone? Thank you in advance.

Thank You,
Leon

Hello Leon,


Do you mean changing the IP the xymon daemon is listening on ? Or 
changing the IP on the OS the xymon daemon is running on ? Or changing 
the destination IP your xymon client are sending reports to ?
list Jeremy Laidman · Thu, 13 Jun 2019 20:52:43 +1000 ·
On my system (Red Hat based), /var/run/xymonclient-runtime.cfg is set by
the init script /etc/init.d/xymon-client using the contents of
/etc/sysconfig/xymon-client. Assuming yours is similar, you would first
need to edit /etc/sysconfig/xymon-client (or equivalent on Ubuntu, perhaps
/etc/default/xymon-client), and then stop/start Xymon using the init
script, such as: /etc/init.d/xymon-client stop && /etc/init.d/xymon-client
start.
quoted from Leon Swanepoel


On Thu, 13 Jun 2019 at 20:47, Leon Swanepoel <user-b81ec8457bb3@xymon.invalid> wrote:
HI All,

I found where is gets set but I do not see where this file gets it info
from.

/var/run/xymon/bbdisp-runtime.cfg

Thank You,
Leon

On Thu, 2019-06-13 at 10:21 +0200, Damien Martins wrote:
Le 13/06/2019 à 10:06, Leon Swanepoel a écrit :
Good day,

Is there a way to change the ip address of the xymon server? I changed
the ip address and now xymon server is not working any more. Any ideas
anyone? Thank you in advance.

Thank You,
Leon

Hello Leon,


Do you mean changing the IP the xymon daemon is listening on ? Or
changing the IP on the OS the xymon daemon is running on ? Or changing
the destination IP your xymon client are sending reports to ?
list Leon Swanepoel · Thu, 13 Jun 2019 14:10:38 +0200 ·
Thank you Jeremy
quoted from Jeremy Laidman

On Thu, 2019-06-13 at 20:52 +1000, Jeremy Laidman wrote:
On my system (Red Hat based), /var/run/xymonclient-runtime.cfg is set
by the init script /etc/init.d/xymon-client using the contents
of /etc/sysconfig/xymon-client. Assuming yours is similar, you would
first need to edit /etc/sysconfig/xymon-client (or equivalent on
Ubuntu, perhaps /etc/default/xymon-client), and then stop/start Xymon
using the init script, such as: /etc/init.d/xymon-client stop
&& /etc/init.d/xymon-client start.


On Thu, 13 Jun 2019 at 20:47, Leon Swanepoel <user-b81ec8457bb3@xymon.invalid>
wrote:

        HI All,
                I found where is gets set but I do not see where this file
        gets it info
        from.
                /var/run/xymon/bbdisp-runtime.cfg
                Thank You,
        Leon
                On Thu, 2019-06-13 at 10:21 +0200, Damien Martins wrote:
Le 13/06/2019 à 10:06, Leon Swanepoel a écrit :
Good day,

Is there a way to change the ip address of the xymon
        server? I changed
the ip address and now xymon server is not working any
        more. Any ideas
anyone? Thank you in advance.

Thank You,
Leon

Hello Leon,
Do you mean changing the IP the xymon daemon is listening
        on ? Or         > changing the IP on the OS the xymon daemon is running on ?
        Or changing         > the destination IP your xymon client are sending reports
        to ?
list Schminke_Erik_D · Fri, 14 Jun 2019 12:23:19 +0000 ·
What exactly do you not see working?  Xymon really has a number of moving pieces that all work together.  From a network perspective, there is Xymon daemon and a Web server.  The Xymon daemon accepts and routes messages from clients.  Other components processes those messages and ultimately static HTML pages get generated.  Then a web server serves up those HTML pages for you to view.

Based on the netstat output you posted, I'm guessing the Xymon daemon is (probably) accepting and processing messages just fine, but when you attempt to view the Web interface, you're not seeing anything.

Something (I'm assuming Xymon) is binding to the standard port on "any configured IP address" (0.0.0.0:1984), but I'm not seeing anything LISTENING on port 80 or 443.  Going to be hard to view the web interface without that.

What OS (and version) are you running this from?
What did you use for a Web server?  Apache? Nginx?
list Shawn Heisey · Sat, 15 Jun 2019 12:46:05 -0600 ·
quoted from Leon Swanepoel
On 6/13/2019 2:52 AM, Leon Swanepoel wrote:
I did a restart but it is still referencing the old ip. See the netstat
below.
<snip>
tcp        0      0 0.0.0.0:1984            0.0.0.0:*
LISTEN
This line shows that something is listening on all interfaces.  I think the server part is probably OK.
tcp        0      1 10.120.1.21:48182       10.121.0.134:1984
SYN_SENT
This line is an attempted connection from this machine to 10.121.0.134. The TCP connection is stuck at the first phase (SYN_SENT), probably because that address doesn't actually exist anywhere.

Something on the xymon server system (most likely the xymon client) is still configured to talk to the old IP address.

On my xymon server running on Ubuntu 18, version 4.3.28-3build1, the first uncommented line in /etc/default/xymon-client is this:

XYMONSERVERS="127.0.0.1"

The only other uncommented line is the setting for CLIENTHOSTNAME.

Thanks,
Shawn
list Leon Swanepoel · Sun, 16 Jun 2019 10:00:50 +0200 ·
Thank you Shawn
quoted from Shawn Heisey

On Sat, 2019-06-15 at 12:46 -0600, Shawn Heisey wrote:
On 6/13/2019 2:52 AM, Leon Swanepoel wrote:
I did a restart but it is still referencing the old ip. See the netstat
below.
<snip>
tcp        0      0 0.0.0.0:1984            0.0.0.0:*
LISTEN
This line shows that something is listening on all interfaces.  I think the server part is probably OK.
tcp        0      1 10.120.1.21:48182       10.121.0.134:1984
SYN_SENT
This line is an attempted connection from this machine to 10.121.0.134. The TCP connection is stuck at the first phase (SYN_SENT), probably because that address doesn't actually exist anywhere.

Something on the xymon server system (most likely the xymon client) is still configured to talk to the old IP address.

On my xymon server running on Ubuntu 18, version 4.3.28-3build1, the first uncommented line in /etc/default/xymon-client is this:

XYMONSERVERS="127.0.0.1"

The only other uncommented line is the setting for CLIENTHOSTNAME.

Thanks,
Shawn