Server side external scripts not working
The server has the hosts.cfg file, clients do not. It’s trying to access it. Without knowing what the script is doing, I can’t guess what’s happening.
Don’t take the list out of your emails. I don’t know all the answers. Others might.
From: Payal Gupta [mailto:payalg at cdac.in] Sent: Thursday, April 18, 2013 4:47 AM To: Root, Paul T Subject: RE: [Xymon] Server side external scripts not working
Also for the local xymon client running on xymon server, the test is running fine. But not for the rest of the xymon clients.
Not able to understand why?
On April 18, 2013 at 2:30 PM "Root, Paul T" <Paul.Root at CenturyLink.com<mailto:Paul.Root at CenturyLink.com>> wrote: Probably something in the xymonserver.cfg file.
From: Payal Gupta [mailto:payalg at cdac.in] Sent: Thursday, April 18, 2013 3:43 AM To: Root, Paul T Subject: RE: [Xymon] Server side external scripts not working
No, but i have not used any email address anywhere in my script.
On April 18, 2013 at 1:58 PM "Root, Paul T" <Paul.Root at CenturyLink.com<mailto:Paul.Root at CenturyLink.com>> wrote: Looks like you have an email address where a hostname/ip address should be. The “Could not connect to Xymon daemon at xymon-server-ip:1984 (Connection refused)” is kind of the giveaway.
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com] On Behalf Of Payal Gupta Sent: Thursday, April 18, 2013 3:01 AM To: xymon at xymon.com<mailto:xymon at xymon.com> Subject: [Xymon] Server side external scripts not working
Hi All,
I am using xymon 4.3.10. I have a server side external script in ~xymon/server/ext/. I have added an entry for the script in ~xymon/server/etc/tasks.cfg as follows:
[test] ENVFILE $XYMONHOME/etc/xymonserver.cfg CMD $XYMONHOME/ext/test LOGFILE $XYMONSERVERLOGS/test.log INTERVAL 6m
I have made an entry for the same in hosts.cfg as well. In browser, a new column is updated with this test name but nothing is being shown other than a horizontal line.
When i restarted the xymon server, i got this in my LOGFILE :
2013-04-17 16:14:02 Whoops ! Failed to send message (Connection failed) 2013-04-17 16:14:02 -> Could not connect to Xymon daemon at xymon-server-ip:1984 (Connection refused) 2013-04-17 16:14:02 -> Recipient 'xymon-server-ip', timeout 15 2013-04-17 16:14:02 -> 1st line: 'config hosts.cfg' 2013-04-17 16:14:02 Cannot load hosts.cfg from xymond, code 5 2013-04-17 16:14:02 Failed to load from xymond, reverting to file-load I am not able to understand the problem. Is there anything I had left?
Thanks and Regards,
Payal Gupta Project Engineer National PARAM Supercomputing Facility CDAC Pune Maharashtra
This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken.
This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken.
This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken.
participants (1)
-
Paul.Root@CenturyLink.com