<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Both the tasks.cfg and
clientlaunch.cfg source in the xymon environment so any
processes that are called they have access to the Xymon
environement variables. Your shell likely does not have access
to those variables. So when you run your script manually from
the shell, if you are using the $XYMON, $XYMSRV, and $MACHINE
environment variables in your script, the script will not have
access to those variables.<br>
<br>
In other words, the following command only works if called by
xymon, not if executed from a shell:<br>
</tt><tt></tt>
<pre><tt>$XYMON $XYMSRV "status $MACHINE.$COLUMN $COLOR `date`
</tt></pre>
<tt>My suggestion would be to add logic to the beginning of your
script testing to make sure the $XYMON variable is not blank.
If it is blank, come up with a way to set those variables,
either by hard coding them, or by getting them from another
location.</tt><br>
<br>
<pre class="moz-signature" cols="72">Michael Beatty
</pre>
On 05/02/2013 10:35 AM, deepak deore wrote:<br>
</div>
<blockquote
cite="mid:CABpN7iRt99FOrSX4xwKi65_F+1jh2jc2Lx1L0jKsuTMzUJAoRQ@mail.gmail.com"
type="cite">
<div dir="ltr">ohh, forgot to mention. The script is set on client
side so not related to tasks.cfg<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, May 2, 2013 at 6:58 PM, Root,
Paul T <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:Paul.Root@centurylink.com" target="_blank">Paul.Root@centurylink.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">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.</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<div style="border:none;border-top:solid #b5c4df
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a moz-do-not-send="true"
href="mailto:xymon-bounces@xymon.com"
target="_blank">xymon-bounces@xymon.com</a>
[mailto:<a moz-do-not-send="true"
href="mailto:xymon-bounces@xymon.com"
target="_blank">xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>deepak deore<br>
<b>Sent:</b> Thursday, May 02, 2013 8:20 AM<br>
<b>To:</b> <a moz-do-not-send="true"
href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> [Xymon] manually running custom
script not changing the status</span></p>
</div>
<div class="im">
<p class="MsoNormal"> </p>
<div>
<div>
<div>
<p class="MsoNormal"
style="margin-bottom:12.0pt">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.</p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I
had to wait until its next run, i.e. after 24
hrs.</p>
</div>
<p class="MsoNormal">How can I run the custom script
before its next run time which will change the
xymon status if the issue is resolved?</p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Xymon mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>
<a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>