Hey,
I need to set up some clients to use xymonfetch and the man page isn't exactly clear.
--server=XYMON.SERVER.IP Defines the IP address of the Xymon server where the collected client messages are forwarded to. By default, messages are sent to the loopback address 127.0.0.1, i.e. to a Xymon server running on the same host as xymonfetch.
This implies that I need to have a server instance running...or am I misunderstanding what it's saying? Has anyone done this and could provide a some guidance?
thx
=G=
Hey,
I need to set up some clients to use xymonfetch and the man page isn't exactly clear.
--server=XYMON.SERVER.IP Defines the IP address of the Xymon server where the collected client messages are forwarded to. By default, messages are sent to the loopback address 127.0.0.1, i.e. to a Xymon server running on the same host as xymonfetch.
This implies that I need to have a server instance running...or am I misunderstanding what it's saying? Has anyone done this and could provide a some guidance?
thx
Simply, what it means is that if you're running xymonfetch from the Xymon server, itself, then the --server variable could be filled in with the localhost ip.
If, however, you're running xymonfetch from a Xymon client, elsewhere, then you should fill the in --server variable with the actual IP of the actual Xymon server.
-- Mike Burger http://www.bubbanfriends.org
"It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
On Sunday, September 8, I'll be participating in the Spokes of Hope ride, to raise money for cancer awareness and make a difference in the lives of cancer victims and their families/friends. If you'd care to donate, please click:
Thank you.
So, really, I just need to worry about setting up the clients to use msgcache?
=G=
From: Mike Burger [mburger at bubbanfriends.org] Sent: Wednesday, August 21, 2013 11:23 AM To: Galen Johnson Cc: xymon at xymon.com Subject: Re: [Xymon] xymonfetch
Hey,
I need to set up some clients to use xymonfetch and the man page isn't exactly clear.
--server=XYMON.SERVER.IP Defines the IP address of the Xymon server where the collected client messages are forwarded to. By default, messages are sent to the loopback address 127.0.0.1, i.e. to a Xymon server running on the same host as xymonfetch.
This implies that I need to have a server instance running...or am I misunderstanding what it's saying? Has anyone done this and could provide a some guidance?
thx
Simply, what it means is that if you're running xymonfetch from the Xymon server, itself, then the --server variable could be filled in with the localhost ip.
If, however, you're running xymonfetch from a Xymon client, elsewhere, then you should fill the in --server variable with the actual IP of the actual Xymon server.
-- Mike Burger http://www.bubbanfriends.org
"It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
On Sunday, September 8, I'll be participating in the Spokes of Hope ride, to raise money for cancer awareness and make a difference in the lives of cancer victims and their families/friends. If you'd care to donate, please click:
Thank you.
I must be doing something wrong.
On my client, I have XYMSRV="127.0.0.1" and I've commented out the "DISABLE" in clientlaunch.cfg. I'm seeing content in the /tmp/msg.myhost.txt file that looks like what I would expect.
On the server, I've added "pulldata" to the entry in etc/hosts.cfg, edited the etc/tasks.cfg to comment out "DISABLE" and set the server IP to my server's IP as well as tried 127.0.0.1. I see the following in my log:
2013-08-21 18:38:06 Whoops ! Failed to send message (Connection failed) 2013-08-21 18:38:06 -> Could not connect to Xymon daemon at 10.40.1.39:1984 (Connection refused) 2013-08-21 18:38:06 -> Recipient '10.40.1.39', timeout 15 2013-08-21 18:38:06 -> 1st line: 'config hosts.cfg' 2013-08-21 18:38:06 Cannot load hosts.cfg from xymond, code 5 2013-08-21 18:38:06 Failed to load from xymond, reverting to file-load 2013-08-21 18:38:06 Connection lost during connect/write to 10.40.1.39:1984 (req 2): Connection refused 2013-08-21 18:48:43 Caught TERM signal, terminating 2013-08-21 18:48:45 Whoops ! Failed to send message (Connection failed) 2013-08-21 18:48:45 -> Could not connect to Xymon daemon at 10.40.1.39:1984 (Connection refused) 2013-08-21 18:48:45 -> Recipient '10.40.1.39', timeout 15 2013-08-21 18:48:45 -> 1st line: 'config hosts.cfg' 2013-08-21 18:48:45 Cannot load hosts.cfg from xymond, code 5 2013-08-21 18:48:45 Failed to load from xymond, reverting to file-load
The server is also not updating anything outside my typical network tests. Anyone have any idea what I may be missing here?
=G=
From: Mike Burger [mburger at bubbanfriends.org] Sent: Wednesday, August 21, 2013 11:23 AM To: Galen Johnson Cc: xymon at xymon.com Subject: Re: [Xymon] xymonfetch
Hey,
I need to set up some clients to use xymonfetch and the man page isn't exactly clear.
--server=XYMON.SERVER.IP Defines the IP address of the Xymon server where the collected client messages are forwarded to. By default, messages are sent to the loopback address 127.0.0.1, i.e. to a Xymon server running on the same host as xymonfetch.
This implies that I need to have a server instance running...or am I misunderstanding what it's saying? Has anyone done this and could provide a some guidance?
thx
Simply, what it means is that if you're running xymonfetch from the Xymon server, itself, then the --server variable could be filled in with the localhost ip.
If, however, you're running xymonfetch from a Xymon client, elsewhere, then you should fill the in --server variable with the actual IP of the actual Xymon server.
-- Mike Burger http://www.bubbanfriends.org
"It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
On Sunday, September 8, I'll be participating in the Spokes of Hope ride, to raise money for cancer awareness and make a difference in the lives of cancer victims and their families/friends. If you'd care to donate, please click:
Thank you.
OK...I got it to stop giving me the errors referenced below by adding "NEEDS xymond" to the xymonfetch block. I've enable debug and it appears to be connecting and returning data but the server page still only shows the network test tabs. Gonna see if letting it sit for a few cycles makes a difference.
=G=
From: Galen Johnson Sent: Wednesday, August 21, 2013 6:52 PM To: xymon at xymon.com Cc: Mike Burger Subject: RE: [Xymon] xymonfetch
I must be doing something wrong.
On my client, I have XYMSRV="127.0.0.1" and I've commented out the "DISABLE" in clientlaunch.cfg. I'm seeing content in the /tmp/msg.myhost.txt file that looks like what I would expect.
On the server, I've added "pulldata" to the entry in etc/hosts.cfg, edited the etc/tasks.cfg to comment out "DISABLE" and set the server IP to my server's IP as well as tried 127.0.0.1. I see the following in my log:
2013-08-21 18:38:06 Whoops ! Failed to send message (Connection failed) 2013-08-21 18:38:06 -> Could not connect to Xymon daemon at 10.40.1.39:1984 (Connection refused) 2013-08-21 18:38:06 -> Recipient '10.40.1.39', timeout 15 2013-08-21 18:38:06 -> 1st line: 'config hosts.cfg' 2013-08-21 18:38:06 Cannot load hosts.cfg from xymond, code 5 2013-08-21 18:38:06 Failed to load from xymond, reverting to file-load 2013-08-21 18:38:06 Connection lost during connect/write to 10.40.1.39:1984 (req 2): Connection refused 2013-08-21 18:48:43 Caught TERM signal, terminating 2013-08-21 18:48:45 Whoops ! Failed to send message (Connection failed) 2013-08-21 18:48:45 -> Could not connect to Xymon daemon at 10.40.1.39:1984 (Connection refused) 2013-08-21 18:48:45 -> Recipient '10.40.1.39', timeout 15 2013-08-21 18:48:45 -> 1st line: 'config hosts.cfg' 2013-08-21 18:48:45 Cannot load hosts.cfg from xymond, code 5 2013-08-21 18:48:45 Failed to load from xymond, reverting to file-load
The server is also not updating anything outside my typical network tests. Anyone have any idea what I may be missing here?
=G=
From: Mike Burger [mburger at bubbanfriends.org] Sent: Wednesday, August 21, 2013 11:23 AM To: Galen Johnson Cc: xymon at xymon.com Subject: Re: [Xymon] xymonfetch
Hey,
I need to set up some clients to use xymonfetch and the man page isn't exactly clear.
--server=XYMON.SERVER.IP Defines the IP address of the Xymon server where the collected client messages are forwarded to. By default, messages are sent to the loopback address 127.0.0.1, i.e. to a Xymon server running on the same host as xymonfetch.
This implies that I need to have a server instance running...or am I misunderstanding what it's saying? Has anyone done this and could provide a some guidance?
thx
Simply, what it means is that if you're running xymonfetch from the Xymon server, itself, then the --server variable could be filled in with the localhost ip.
If, however, you're running xymonfetch from a Xymon client, elsewhere, then you should fill the in --server variable with the actual IP of the actual Xymon server.
-- Mike Burger http://www.bubbanfriends.org
"It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
On Sunday, September 8, I'll be participating in the Spokes of Hope ride, to raise money for cancer awareness and make a difference in the lives of cancer victims and their families/friends. If you'd care to donate, please click:
Thank you.
On 22 August 2013 09:15, Galen Johnson <Galen.Johnson at sas.com> wrote:
OK...I got it to stop giving me the errors referenced below by adding "NEEDS xymond" to the xymonfetch block.
?? This was on the Xymon server? And xymond wasn't running? You shouldn't need the "NEEDS xymond" on a regular xymon server.
I've enable debug and it appears to be connecting and returning data but the server page still only shows the network test tabs. Gonna see if letting it sit for a few cycles makes a difference.
It's as if you're running xymond and xymonfetch on the client as well as msgcache. If so, this is not going to get you anything.
J
I think it was starting xymonfetch before xymond was ready. I did get it working. I found the host on the ghost report and added the short name to CLIENT:.
Sent from my iPhone
On Aug 21, 2013, at 10:08 PM, "Jeremy Laidman" <jlaidman at rebel-it.com.au<mailto:jlaidman at rebel-it.com.au>> wrote:
On 22 August 2013 09:15, Galen Johnson <Galen.Johnson at sas.com<mailto:Galen.Johnson at sas.com>> wrote: OK...I got it to stop giving me the errors referenced below by adding "NEEDS xymond" to the xymonfetch block.
?? This was on the Xymon server? And xymond wasn't running? You shouldn't need the "NEEDS xymond" on a regular xymon server.
I've enable debug and it appears to be connecting and returning data but the server page still only shows the network test tabs. Gonna see if letting it sit for a few cycles makes a difference.
It's as if you're running xymond and xymonfetch on the client as well as msgcache. If so, this is not going to get you anything.
J
On 22 August 2013 08:52, Galen Johnson <Galen.Johnson at sas.com> wrote:
On my client, I have XYMSRV="127.0.0.1" and I've commented out the "DISABLE" in clientlaunch.cfg. I'm seeing content in the /tmp/msg.myhost.txt file that looks like what I would expect.
Good. I'm assuming you commented out "DISABLED" in the [msgcache] section of clientlaunch.cfg and not somewhere else. At that stage, you should be able to connect from the Xymon server to the client on port 1984 (eg with "telnet client.host.name 1984", perhaps sending it a "pullclient" command also). If this works, then the msgcache process is most likely ready for use.
On the server, I've added "pulldata" to the entry in etc/hosts.cfg, edited
the etc/tasks.cfg to comment out "DISABLE"
Again, "DISABLED" in the [xymonfetch] section?
and set the server IP to my server's IP as well as tried 127.0.0.1.
This is the default, so you can leave out the "--server=127.0.0.1" if you want.
I see the following in my log:
Which log?
2013-08-21 18:38:06 Whoops ! Failed to send message (Connection failed) 2013-08-21 18:38:06 -> Could not connect to Xymon daemon at 10.40.1.39:1984(Connection refused) 2013-08-21 18:38:06 -> Recipient '10.40.1.39', timeout 15 2013-08-21 18:38:06 -> 1st line: 'config hosts.cfg' 2013-08-21 18:38:06 Cannot load hosts.cfg from xymond, code 5 2013-08-21 18:38:06 Failed to load from xymond, reverting to file-load
This implies that the logs are on the Xymon server (10.40.1.39?), but the xymond daemon is not running, or at least not on port 1984. Make sure you can do "telnet 10.40.1.39 1984" on the Xymon server.
2013-08-21 18:38:06 Connection lost during connect/write to 10.40.1.39:1984 (req 2): Connection refused
Ah, this message only comes from xymonfetch. So it looks like xymonfetch is unable to send messages into xymond on port 1984.
J
participants (3)
-
Galen.Johnson@sas.com
-
jlaidman@rebel-it.com.au
-
mburger@bubbanfriends.org