<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 1/26/2017 3:31 PM, Asif Iqbal wrote:<br>
    </div>
    <blockquote
cite="mid:CAOHBbgX=FEidRcP0=yypSxdTAi25sOAxxhb2s0c_GrOFkAYyAg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">
            <div>Forgot to mention, I am using centos 6.8 and I do see
              the sections dir here ( and no local dir ).</div>
            <div> /usr/share/xymon-client/sections</div>
            <div>under that dir I do see few scripts</div>
            <div><br>
            </div>
            <div>
              <div># ls</div>
              <div>ipcs  meminfo  mounts  README  vmstats</div>
            </div>
            <div><br>
            </div>
            <div>I have xymon-client-4.3.21-4.el6.x86_64 installed</div>
            <div>I went ahead and added a script called lscpu</div>
            <div><br>
            </div>
            <div>
              <div># cat /usr/share/xymon-client/sections/lscpu </div>
              <div>#!/bin/dash</div>
              <div># collecting cpu info</div>
              <div><br>
              </div>
              <div>exec /usr/bin/lscpu 2>/dev/null</div>
            </div>
            <div><br>
            </div>
            <div>Do I need to restart the xymon client? So, if I
              understand correctly, this script will survive a yum
              update xymon-client?</div>
            <div><br>
            </div>
            <div>Thanks a lot for such a detail description!</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Nope, it scans the directory each time executes, so it should be
    visible in the next report. Just make sure the script is chmod +x<br>
    If a 'local' directory is present it's searched, otherwise it's not.
    The README there (or the README-local and README-sections in
    /usr/share/doc/xymon-client-*/) has a fuller explanation. The actual
    reading is done inside xymonclient.sh (not xymonclient-linux.sh), so
    this applies equally to all OS's.<br>
    <br>
    And yes, any file left in there should be untouched by RPM when an
    update occurs.<br>
    <br>
    Regards,<br>
    -jc<br>
  </body>
</html>