[Xymon] ext script does not run on client restart
Iain M Conochie
iain at shihad.org
Wed Mar 8 11:47:00 CET 2017
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
>
> #! /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 <iain at shihad.org>
> 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
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
> --
>
> 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.
>
>
More information about the Xymon
mailing list