Xymon Mailing List Archive search

Server side external scripts not working

4 messages in this thread

list Payal Gupta · Thu, 18 Apr 2013 13:30:53 +0530 (IST) ·
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.
list Paul Root · Thu, 18 Apr 2013 08:28:51 +0000 ·
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.
quoted from Payal Gupta

From: 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
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.
list Martin Flemming · Thu, 18 Apr 2013 10:51:29 +0200 (CEST) ·
quoted from Payal Gupta
On Thu, 18 Apr 2013, Payal Gupta wrote:
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
Hopeing, it's a typo and you're entry looks like

[test]
ENVFILE $XYMONHOME/etc/xymonserver.cfg   
CMD $XYMONHOME/ext/test
LOGFILE $XYMONSERVERLOGS/test.log
INTERVAL 6m
   

how looks your entry for this host in host.cfg
and how looks the
1st line: 'config hosts.cfg'
1st line in your hosts.cfg ?

how looks your entry for xymond in your tasks.cfg ?

by the way, you needn't restart the server,
after 5 minutes it should run anyway ...


cheers,
 	martin
quoted from Paul Root

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.
0
list Paul Root · Thu, 18 Apr 2013 09:52:27 +0000 ·
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:user-0eded6597dc2@xymon.invalid]
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" <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>> wrote:
Probably something in the xymonserver.cfg file.


From: Payal Gupta [mailto:user-0eded6597dc2@xymon.invalid]
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.
quoted from Martin Flemming


On April 18, 2013 at 1:58 PM "Root, Paul T" <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>> 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.