<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I've already tried running it with a set -x in the script and get the following in the log,<div><br></div><div><div><div>+ rm /xymon/client/tmp/mq-server_name.11677</div><div>+ TMPFILE=/xymon/client/tmp/mq-server_name.11684</div><div>+ touch /xymon/client/tmp/mq-server_name.11684</div><div>+ echo 'client server_name.mqcollect mqcollect'</div><div>+ '[' 1 '!=' 0 ']'</div><div>+ QMGR=PPIM01</div><div>+ shift</div><div>+ sudo -u mqm mqsc PPIM01 'display qstatus(*) curdepth msgage lgetdate lgettime'</div><div>+ '[' 0 '!=' 0 ']'</div><div>+ /xymon/client/bin/xymon ukclamon01 @</div><div>log:/opt/IBM/MDMPIM/logs/workflowengine_server_name/db_manager.log:10240</div><div>log:`find -L /opt/IBM/MDMPIM/logs/\w*server_name/\w*.log -maxdepth 1  -type f ! -size 0`:10240</div><div>log:/applogs/mdmpim/logs/appsvr_server_name/default.log:10240</div><div>log:/opt/IBM/MDMPIM/logs/workflowengine_server_name/customegl.log:20480</div><div>log:/opt/IBM/MDMPIM/logs/workflowengine_server_name/default.log:20480</div><div>ignore INFO</div><div>trigger internal error</div><div>file:`find /applogs/mdmpim/dump -name *.txt`</div><div>file:`find /applogs/mdmpim/dump -name *.phd``</div></div><div><br></div><div>From there I can see that it appears to be the line that sends the message to Xymon that's doing it but U can't see why. </div><div><br></div><div>The line in question is underlined and BOLD below (copied the whole script for context)</div><div><br></div><div><div><br></div><div>TMPFILE="$XYMONTMP/mq-$MACHINE.$$"</div><div><br></div><div>touch $TMPFILE</div><div><br></div><div>echo "client $MACHINE.mqcollect mqcollect" >$TMPFILE</div><div><br></div><div>#</div><div>while [ $# != 0 ]</div><div>do</div><div>    QMGR=$1; shift</div><div>    sudo -u mqm mqsc $QMGR 'display qstatus(*) curdepth msgage lgetdate lgettime' >> $TMPFILE</div><div>    ##(echo 'dis ql(*) curdepth'; echo 'dis chs(*)'; echo 'end') | su - mqm -c "runmqsc $QMGR" >> $TMPFILE</div><div>done</div><div>#</div><div><br></div><div><u><b>$XYMON $XYMSRV "@" < $TMPFILE</b></u></div><div>rm $TMPFILE</div><div><br></div><div>exit 0</div></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 27, 2020 at 5:54 PM Damien Martins via Xymon <<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br><br>---------- Forwarded message ----------<br>From: Damien Martins <<a href="mailto:damien@makelofine.org" target="_blank">damien@makelofine.org</a>><br>To: <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>Cc: <br>Bcc: <br>Date: Mon, 27 Jul 2020 18:44:19 +0200<br>Subject: Re: [Xymon] mq.sh script<br>
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I'm not using this script, but you may run it using:</p>
    <p> bash -x  $XYMONCLIENTHOME/ext/mq.sh queuemanagername</p>
    <p>replace $XYMONCLIENTHOME with the correct path.</p>
    <p>Bash will generate output debug info, so you may see what it is
      doing.</p>
    <p>Also, you may check if the log destination is hardcoded in the
      script.</p>
    <p><br>
    </p>
    <div>Le 27/07/2020 à 16:39, Neil Simmonds a
      écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">Hi all, I'm seeing some really strange
                behaviour from the MQ.SH script/ 
                <div><br>
                </div>
                <div>We have the standard mq.sh script that comes with
                  Xymon and we have it setup in
                  /xymon/client/etc/clientlaunch.cfg as follows </div>
                <div><br>
                </div>
                <div>
                  <div>[mq]</div>
                  <div>        ENVFILE
                    $XYMONCLIENTHOME/etc/xymonclient.cfg</div>
                  <div>        CMD $XYMONCLIENTHOME/ext/mq.sh
                    queuemanagername</div>
                  <div>        LOGFILE
                    $XYMONCLIENTLOGS/xymonmq2client.log</div>
                  <div>        INTERVAL 1m</div>
                </div>
                <div><br>
                </div>
                <div>The behaviour that we are seeing is that,as
                  expected MQ.SH writes nothing in the way of errors
                  into xymonmq2client.log but what it does write into
                  there is the contents of
                  /xymon/client/tmp/logfetch.hostname.cfg </div>
                <div><br>
                </div>
                <div>(i.e.</div>
                <div>
                  <div>log:/applogs/broker/broker.log:20480</div>
                  <div>ignore MARK</div>
                </div>
                <div>)</div>
                <div><br>
                </div>
                <div>I'm at a loss to explain this so am reaching out to
                  the list to see if anyone has come across this  </div>
                <div><br>
                </div>
                <div>Regards,</div>
                <div>Neil.</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Xymon mailing list
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a>
</pre>
    </blockquote>
  </div>

<br><br><br>---------- Forwarded message ----------<br>From: Damien Martins via Xymon <<a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a>><br>To: <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>Cc: <br>Bcc: <br>Date: Mon, 27 Jul 2020 18:44:19 +0200<br>Subject: Re: [Xymon] mq.sh script<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div>