Xymon Mailing List Archive search

manually running custom script not changing the status

list Ralph Mitchell
Thu, 2 May 2013 19:26:23 -0400
Message-Id: <user-e7b7b49f058c@xymon.invalid>

You can set up the environment properly by prefixing the script with
xymoncmd.  E.g.

/home/xymon/server/bin/xymoncmd  your_script,sh

Ralph Mitchell
On May 2, 2013 12:40 PM, "Root, Paul T" <user-76fdb6883669@xymon.invalid> wrote:
 Well, if it runs outside of xymon, and that’s how we do most of our
custom scripts, then you need to make sure your environment is correct. So
that the script knows the pertinent xymon information. ****

** **

Did you possibly run the script as yourself vs root, and so it couldn’t
read the xymonclient.cfg file or something?****

** **

Without details and/or output of your hand running of the script, we can
only guess. My guess is that you either didn’t have path to the xymon
command or you didn’t have the server ip right in that command.****

** **

*From:* deepak deore [mailto:user-7b03b2a1ee70@xymon.invalid]
*Sent:* Thursday, May 02, 2013 9:35 AM
*To:* Root, Paul T
*Cc:* xymon at xymon.com
*Subject:* Re: [Xymon] manually running custom script not changing the
status****

** **

ohh, forgot to mention. The script is set on client side so not related to
tasks.cfg****

** **

On Thu, May 2, 2013 at 6:58 PM, Root, Paul T <user-76fdb6883669@xymon.invalid>
wrote:****

If you are running the script from tasks.cfg. You probably want to use
xymoncmd to run the script, so you’ll get the proper environment.****

 ****

*From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On
Behalf Of *deepak deore
*Sent:* Thursday, May 02, 2013 8:20 AM
*To:* xymon at xymon.com
*Subject:* [Xymon] manually running custom script not changing the status*
***

 ****

I have a script which runs after 24 hrs interval, if we get an alert we
work on it and after resolving the issue I tried to run that custom script
manually but it didnt change the status into green.****

I had to wait until its next run, i.e. after 24 hrs.****

How can I run the custom script before its next run time which will change
the xymon status if the issue is resolved?****

** **