Xymon Mailing List Archive search

ext script does not run on client restart

8 messages in this thread

list Iain M Conochie · Sat, 04 Mar 2017 21:09:07 +0000 ·
Hi

   I have an ext script to check for the status of available patches on my hosts. Once I have updated the patches, I restart the xymon-client so that the test will go green again. Occasionally the ext script will not run on restart. Is there a way I can debug what the xymon client is choosing to run? How does xymon track the interval after a restart? My clientlaunch fragment looks like:

[patches]
         ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
         CMD $XYMONCLIENTHOME/ext/hobbit-patch.sh
         LOGFILE $XYMONCLIENTHOME/logs/hobbit-patch.sh
         INTERVAL 6h

Client version:

ii  xymon-client                   4.3.17-6+deb8u1          amd64        client for the Xymon network monitor


Thanks for any advice!

Iain
list Paul Root · Sun, 5 Mar 2017 20:43:54 +0000 ·
Did you look in your $XYMONCLIENTHOME/logs/hobbit-patch.sh log file? Probably should rename that .log.

Also, you could just do a $XYMONCLIENTHOME/bin/xymoncmd $XYMONCLIENT/HOME/ext/hobbit-patch.sh to get it to run.
quoted from Iain M Conochie


-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Iain M Conochie
Sent: Saturday, March 04, 2017 3:09 PM
To: xymon at xymon.com
Subject: [Xymon] ext script does not run on client restart

Hi

   I have an ext script to check for the status of available patches on
my hosts. Once I have updated the patches, I restart the xymon-client so
that the test will go green again. Occasionally the ext script will not
run on restart. Is there a way I can debug what the xymon client is
choosing to run? How does xymon track the interval after a restart? My
clientlaunch fragment looks like:

[patches]
         ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
         CMD $XYMONCLIENTHOME/ext/hobbit-patch.sh
         LOGFILE $XYMONCLIENTHOME/logs/hobbit-patch.sh
         INTERVAL 6h

Client version:

ii  xymon-client                   4.3.17-6+deb8u1          amd64
client for the Xymon network monitor


Thanks for any advice!

Iain

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Bruce White · Mon, 6 Mar 2017 19:00:59 +0000 ·
Does it run after 6 hours?


Bruce White
Senior Enterprise Systems Engineer  | Phone: X-XXX-XXX-XXXX    | user-58f975e8bf9d@xymon.invalid  |  www.fellowes.com

Fellowes Brands
100 Years

Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
quoted from Paul Root

-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Root, Paul T
Sent: Sunday, March 05, 2017 2:44 PM
To: 'Iain M Conochie'; xymon at xymon.com
Subject: Re: [Xymon] ext script does not run on client restart

Did you look in your $XYMONCLIENTHOME/logs/hobbit-patch.sh log file? Probably should rename that .log.

Also, you could just do a $XYMONCLIENTHOME/bin/xymoncmd $XYMONCLIENT/HOME/ext/hobbit-patch.sh to get it to run.


-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Iain M Conochie
Sent: Saturday, March 04, 2017 3:09 PM
To: xymon at xymon.com
Subject: [Xymon] ext script does not run on client restart

Hi

   I have an ext script to check for the status of available patches on
my hosts. Once I have updated the patches, I restart the xymon-client so
that the test will go green again. Occasionally the ext script will not
run on restart. Is there a way I can debug what the xymon client is
choosing to run? How does xymon track the interval after a restart? My
clientlaunch fragment looks like:

[patches]
         ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
         CMD $XYMONCLIENTHOME/ext/hobbit-patch.sh
         LOGFILE $XYMONCLIENTHOME/logs/hobbit-patch.sh
         INTERVAL 6h

Client version:

ii  xymon-client                   4.3.17-6+deb8u1          amd64
client for the Xymon network monitor


Thanks for any advice!

Iain

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Phil Crooker · Mon, 6 Mar 2017 23:12:30 +0000 ·
It may be running but fails and doesn't send an update to the server. Try setting: 

    #! /bin/bash -x

on the first line of the script and then look at the log file. And do rename the logfile to hobbit-patch.log...
quoted from Iain M Conochie


From: Xymon <xymon-bounces at xymon.com> on behalf of Iain M Conochie <user-c784e16a5170@xymon.invalid>
Sent: Sunday, 5 March 2017 7:39 AM
To: xymon at xymon.com
Subject: [Xymon] ext script does not run on client restart

Hi

   I have an ext script to check for the status of available patches on
my hosts. Once I have updated the patches, I restart the xymon-client so
that the test will go green again. Occasionally the ext script will not
run on restart. Is there a way I can debug what the xymon client is
choosing to run? How does xymon track the interval after a restart? My
clientlaunch fragment looks like:

[patches]
         ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
         CMD $XYMONCLIENTHOME/ext/hobbit-patch.sh
         LOGFILE $XYMONCLIENTHOME/logs/hobbit-patch.sh
         INTERVAL 6h

Client version:

ii  xymon-client                   4.3.17-6+deb8u1          amd64
client for the Xymon network monitor


Thanks for any advice!

Iain
list Iain M Conochie · Wed, 8 Mar 2017 10:43:38 +0000 (GMT) ·
quoted from Bruce White
On Sun, 5 Mar 2017, Root, Paul T wrote:
Did you look in your $XYMONCLIENTHOME/logs/hobbit-patch.sh log file? Probably should rename that .log.
Nothing in there at all, as the task is never run :(
Also, you could just do a $XYMONCLIENTHOME/bin/xymoncmd $XYMONCLIENT/HOME/ext/hobbit-patch.sh to get it to run.
Ah - now this may be a good idea. Let me try and get back to you!

Thanks Paul

Iain
quoted from Iain M Conochie

-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Iain M Conochie
Sent: Saturday, March 04, 2017 3:09 PM
To: xymon at xymon.com
Subject: [Xymon] ext script does not run on client restart

Hi

  I have an ext script to check for the status of available patches on
my hosts. Once I have updated the patches, I restart the xymon-client so
that the test will go green again. Occasionally the ext script will not
run on restart. Is there a way I can debug what the xymon client is
choosing to run? How does xymon track the interval after a restart? My
clientlaunch fragment looks like:

[patches]
        ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
        CMD $XYMONCLIENTHOME/ext/hobbit-patch.sh
        LOGFILE $XYMONCLIENTHOME/logs/hobbit-patch.sh
        INTERVAL 6h

Client version:

ii  xymon-client                   4.3.17-6+deb8u1          amd64
client for the Xymon network monitor


Thanks for any advice!

Iain

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Iain M Conochie · Wed, 8 Mar 2017 10:47:00 +0000 (GMT) ·
quoted from Phil Crooker
On Mon, 6 Mar 2017, Phil Crooker wrote:
It may be running but fails and doesn't send an update to the server. Try setting:
Nope - definitely does _not_ run - I can log in to the server in quesiton 
and check the process listing - I never see hobbit-patch.sh process in the 
listing.

I think I will try using xymoncmd to start the script and see if that 
helps.


Thanks!

Iain
quoted from Iain M Conochie
   #! /bin/bash -x

on the first line of the script and then look at the log file. And do rename the logfile to hobbit-patch.log...


From: Xymon <xymon-bounces at xymon.com> on behalf of Iain M Conochie <user-c784e16a5170@xymon.invalid>
Sent: Sunday, 5 March 2017 7:39 AM
To: xymon at xymon.com
Subject: [Xymon] ext script does not run on client restart

Hi

  I have an ext script to check for the status of available patches on
my hosts. Once I have updated the patches, I restart the xymon-client so
that the test will go green again. Occasionally the ext script will not
run on restart. Is there a way I can debug what the xymon client is
choosing to run? How does xymon track the interval after a restart? My
clientlaunch fragment looks like:

[patches]
        ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
        CMD $XYMONCLIENTHOME/ext/hobbit-patch.sh
        LOGFILE $XYMONCLIENTHOME/logs/hobbit-patch.sh
        INTERVAL 6h

Client version:

ii  xymon-client                   4.3.17-6+deb8u1          amd64
client for the Xymon network monitor


Thanks for any advice!

Iain

-- 

This message from ORIX Australia might contain confidential and/or
privileged information. If you are not the intended recipient, any use,
disclosure or copying of this message (or of any attachments to it) is
not authorised.

If you have received this message in error, please notify the sender
immediately and delete the message and any attachments from your
system. Please inform the sender if you do not wish to receive future
communications by email.

The ORIX Australia Privacy Policy outlines what kinds of personal
information we collect and hold, how we collect and handle it and your
rights in regards to your personal information. Our Privacy Policy is
available on our website: http://www.orix.com.au .

We do not accept liability for any loss or damage caused by any computer
viruses or defects that may be transmitted with this message. We
recommend you carry out your own checks for viruses or defects.

list Iain M Conochie · Fri, 10 Mar 2017 09:30:41 +0000 (GMT) ·
On Mon, 6 Mar 2017, White, Bruce wrote:
Does it run after 6 hours?
Hi Bruce

   Yes indeed - it does eventually run, and the test will go from purple to 
green.

Thanks

Iain
quoted from Bruce White
Bruce White
Senior Enterprise Systems Engineer  | Phone: X-XXX-XXX-XXXX    | user-58f975e8bf9d@xymon.invalid  |  www.fellowes.com

Fellowes Brands
100 Years

Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.

-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Root, Paul T
Sent: Sunday, March 05, 2017 2:44 PM
To: 'Iain M Conochie'; xymon at xymon.com
Subject: Re: [Xymon] ext script does not run on client restart

Did you look in your $XYMONCLIENTHOME/logs/hobbit-patch.sh log file? Probably should rename that .log.

Also, you could just do a $XYMONCLIENTHOME/bin/xymoncmd $XYMONCLIENT/HOME/ext/hobbit-patch.sh to get it to run.


-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Iain M Conochie
Sent: Saturday, March 04, 2017 3:09 PM
To: xymon at xymon.com
Subject: [Xymon] ext script does not run on client restart

Hi

  I have an ext script to check for the status of available patches on
my hosts. Once I have updated the patches, I restart the xymon-client so
that the test will go green again. Occasionally the ext script will not
run on restart. Is there a way I can debug what the xymon client is
choosing to run? How does xymon track the interval after a restart? My
clientlaunch fragment looks like:

[patches]
        ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
        CMD $XYMONCLIENTHOME/ext/hobbit-patch.sh
        LOGFILE $XYMONCLIENTHOME/logs/hobbit-patch.sh
        INTERVAL 6h

Client version:

ii  xymon-client                   4.3.17-6+deb8u1          amd64
client for the Xymon network monitor


Thanks for any advice!

Iain

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.

list Galen Johnson · Fri, 10 Mar 2017 14:09:45 +0000 ·
Sounds like the script that sends the message to xymon isn't sending the 'status+6h' or you may want to do 'status+7h' in case there is a slight delay in updating.  Leave the interval in the tasks file at 6h.

=G=
quoted from Iain M Conochie

From: Xymon <xymon-bounces at xymon.com> on behalf of Iain M Conochie <user-c784e16a5170@xymon.invalid>
Sent: Friday, March 10, 2017 4:30 AM
To: White, Bruce
Cc: xymon at xymon.com
Subject: Re: [Xymon] ext script does not run on client restart

On Mon, 6 Mar 2017, White, Bruce wrote:
Does it run after 6 hours?
Hi Bruce

   Yes indeed - it does eventually run, and the test will go from purple to
green.

Thanks

Iain
Bruce White
Senior Enterprise Systems Engineer  | Phone: X-XXX-XXX-XXXX    | user-58f975e8bf9d@xymon.invalid  |  www.fellowes.com

Fellowes Brands
100 Years

Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.

-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Root, Paul T
Sent: Sunday, March 05, 2017 2:44 PM
To: 'Iain M Conochie'; xymon at xymon.com
Subject: Re: [Xymon] ext script does not run on client restart

Did you look in your $XYMONCLIENTHOME/logs/hobbit-patch.sh log file? Probably should rename that .log.

Also, you could just do a $XYMONCLIENTHOME/bin/xymoncmd $XYMONCLIENT/HOME/ext/hobbit-patch.sh to get it to run.


-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Iain M Conochie
Sent: Saturday, March 04, 2017 3:09 PM
To: xymon at xymon.com
Subject: [Xymon] ext script does not run on client restart

Hi

  I have an ext script to check for the status of available patches on
my hosts. Once I have updated the patches, I restart the xymon-client so
that the test will go green again. Occasionally the ext script will not
run on restart. Is there a way I can debug what the xymon client is
choosing to run? How does xymon track the interval after a restart? My
clientlaunch fragment looks like:

[patches]
        ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
        CMD $XYMONCLIENTHOME/ext/hobbit-patch.sh
        LOGFILE $XYMONCLIENTHOME/logs/hobbit-patch.sh
        INTERVAL 6h

Client version:

ii  xymon-client                   4.3.17-6+deb8u1          amd64
client for the Xymon network monitor


Thanks for any advice!

Iain

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.