<html style="direction: ltr;">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-charset-is-forced="true" style="direction: ltr;"
    text="#000000" bgcolor="#FFFFFF">
    <p><font size="+1"><font face="Arial">Nailed it. set -xv in the
          xymonclient.sh and noticed that every other run it can't find
          the logfetch.$MACHINEDOTS.status, so don't not run logfetch.</font></font></p>
    <p><font size="+1"><font face="Arial"><span style="font-size: 16px">Apparently
            there is another test (silly me!) which collects data from
            other hosts into the tmp directory, and on cleanup deletesĀ 
            the *hosts* files, among them the status file.</span></font></font></p>
    <p><font size="+1"><font face="Arial"><span style="font-size: 16px">cheers</span></font></font></p>
    <p><font size="+1"><font face="Arial"><span style="font-size: 16px">Ron<br>
          </span></font></font></p>
    <p><font size="+1"><font face="Arial"><span style="font-size: 16px"></span><br>
        </font></font></p>
    <div class="moz-cite-prefix">On 25/04/2019 20:21, Japheth Cleaver
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:61164b5a-f38e-fb28-0cb6-06730d6f46fa@terabithia.org">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">On 4/25/2019 7:27 AM, Ron Cohen
        wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAK=Ff3XwDQ8DNjoqNmztA=z1YzBF9bVQZO8PAFZ0DN5+=k_nYw@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div dir="ltr">
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">Hi</div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">have
            one server which keeps flapping on msgs. Spent hours to look
            for the obvious culprit (another feeder) until it dawn on me
            that it must be the logfetch, since there are no issues with
            other columns.</div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">And
            indeed, after running logfetch with --debug=stderr, I
            discovered that it is not always running - I mean not
            triggered at all - which triggered the flapping status.</div>
          <div class="gmail_default"
            style="font-family:verdana,sans-serif;font-size:small">I dug
            here and there, to no avail. Any bright ideas are welcome..</div>
        </div>
      </blockquote>
      <p>After the initial two runs, it should run and generate with
        each xymonclient-linux.sh execution. Make sure you're running as
        the appropriate user and with write privileges into the
        logfetch.status file when executing it by hand.</p>
      <p>For debugging, you can wrap the call in the shell code with
        whichever output you'd like and it will return in the temporary
        .msg file as it's constructed. If it's executing, but not doing
        anything, you could prepend an strace to see if it's short
        exiting for some reason. <br>
      </p>
      <p>For what should be a last result, you could try clearing that
        file out to force it to rescan all log files from their start
        position.</p>
      <p>HTH,</p>
      <p>-jc<br>
      </p>
      <p><br>
      </p>
    </blockquote>
  </body>
</html>