<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 9/9/2016 8:37 PM, Foster Patch
wrote:<br>
</div>
<blockquote
cite="mid:60fd3f8246cb47c7a745071cb4abf1c0@EXCH-02.accu.accuwx.com"
type="cite">
<pre wrap="">Should I replace this:
CMD xymonnet --report --ping --checkresponse --timelimit=75 --dns-timeout=5
With this
CMD xymonnet --report --ping --checkresponse --dns-timeout=5 --timelimit=75
Or should I add an additional line to what you put in?
</pre>
</blockquote>
<br>
You should change your existing line to:<br>
<blockquote type="cite" style="color: #000000;">
<pre wrap="">CMD env TASKSLEEP=75 xymonnet --report --ping --checkresponse --dns-timeout=5</pre>
</blockquote>
<br>
That should immediately take effect for you. You can leave the
"--timelimit=75" at the end, but you'll get a warning to the error
log on each run.<br>
<br>
-jc<br>
<br>
<br>
<br>
-----Original Message-----
<blockquote
cite="mid:60fd3f8246cb47c7a745071cb4abf1c0@EXCH-02.accu.accuwx.com"
type="cite">
<pre wrap="">From: J.C. Cleaver [<a class="moz-txt-link-freetext" href="mailto:cleaver@terabithia.org">mailto:cleaver@terabithia.org</a>]
Sent: Friday, September 9, 2016 11:30 PM
To: Foster Patch <a class="moz-txt-link-rfc2396E" href="mailto:Foster.Patch@accuweather.com"><Foster.Patch@accuweather.com></a>
Cc: Xymon Mailing List <a class="moz-txt-link-rfc2396E" href="mailto:xymon@xymon.com"><xymon@xymon.com></a>
Subject: Re: [Xymon] xymonnet alarm (with patch)
Patch now included.
-jc
On Fri, September 9, 2016 8:11 pm, J.C. Cleaver wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Thu, September 8, 2016 11:51 am, Foster Patch wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I added what you recommended, but the alarm still exists. Here is the
tasks.cfg section:
[xymonnet]
ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg
NEEDS xymond
CMD xymonnet --report --ping --checkresponse
--dns-timeout=5 --timelimit=75
LOGFILE $XYMONSERVERLOGS/xymonnet.log
INTERVAL 1m
The xymonnet alarm now says under Error output:
Unknown option –timelimit=75 – try –help
Any suggestions?
Foster
</pre>
</blockquote>
<pre wrap="">
Hi Foster,
Unfortunately, I can confirm that this is a bug in how that option is
processed. As a workaround, you can lie to xymonnet about what
interval it's been told to run (from xymonlaunch) at with:
</pre>
<blockquote type="cite">
<pre wrap="">CMD env TASKSLEEP=75 xymonnet --report --ping --checkresponse
</pre>
</blockquote>
<pre wrap="">--dns-timeout=5
This should result in what you want.
The following patch should fix it for you, and this will be in the
next version.
HTH,
-jc
</pre>
</blockquote>
</blockquote>
<p><br>
</p>
</body>
</html>