<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Looks like you are hitting the NRPE Payload issue. Standard NRPE
    packages from epel/fedora has 1024 bytes payload limit. We have to
    increment this to 8192 to fix this. You can see more info at <a
href="http://serverfault.com/questions/613288/truncating-return-data-as-it-is-bigger-then-nrpe-allows"><a class="moz-txt-link-freetext" href="http://serverfault.com/questions/613288/truncating-return-data-as-it-is-bigger-then-nrpe-allows">http://serverfault.com/questions/613288/truncating-return-data-as-it-is-bigger-then-nrpe-allows</a></a>.
    <br>
    <br>
    Let me know if u need any more info.<br>
    <br>
    Regards,<br>
    Ramesh<br>
    <br>
    <div class="moz-cite-prefix">On 10/08/2015 02:48 PM, Punit Dambiwal
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGZcrBnSRpUMnPz-KKbcUaa7-H=33U12_KeqNukpeZKw+XT7Hg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I am getting the following error :- </div>
        <div><br>
        </div>
        <div>----------------</div>
        <div>
          <div>[root@monitor-001 yum.repos.d]#
            /usr/lib64/nagios/plugins/gluster/discovery.py -c ssd -H
            stor1</div>
          <div>Traceback (most recent call last):</div>
          <div>  File "/usr/lib64/nagios/plugins/gluster/discovery.py",
            line 510, in &lt;module&gt;</div>
          <div>    clusterdata = discoverCluster(args.hostip,
            args.cluster, args.timeout)</div>
          <div>  File "/usr/lib64/nagios/plugins/gluster/discovery.py",
            line 88, in discoverCluster</div>
          <div>    componentlist = discoverVolumes(hostip, timeout)</div>
          <div>  File "/usr/lib64/nagios/plugins/gluster/discovery.py",
            line 56, in discoverVolumes</div>
          <div>    timeout=timeout)</div>
          <div>  File
            "/usr/lib64/nagios/plugins/gluster/server_utils.py", line
            107, in execNRPECommand</div>
          <div>    resultDict = json.loads(outputStr)</div>
          <div>  File "/usr/lib64/python2.6/json/__init__.py", line 307,
            in loads</div>
          <div>    return _default_decoder.decode(s)</div>
          <div>  File "/usr/lib64/python2.6/json/decoder.py", line 319,
            in decode</div>
          <div>    obj, end = self.raw_decode(s, idx=_w(s, 0).end())</div>
          <div>  File "/usr/lib64/python2.6/json/decoder.py", line 336,
            in raw_decode</div>
          <div>    obj, end = self._scanner.iterscan(s, **kw).next()</div>
          <div>  File "/usr/lib64/python2.6/json/scanner.py", line 55,
            in iterscan</div>
          <div>    rval, next_pos = action(m, context)</div>
          <div>  File "/usr/lib64/python2.6/json/decoder.py", line 183,
            in JSONObject</div>
          <div>    value, end = iterscan(s, idx=end,
            context=context).next()</div>
          <div>  File "/usr/lib64/python2.6/json/scanner.py", line 55,
            in iterscan</div>
          <div>    rval, next_pos = action(m, context)</div>
          <div>  File "/usr/lib64/python2.6/json/decoder.py", line 183,
            in JSONObject</div>
          <div>    value, end = iterscan(s, idx=end,
            context=context).next()</div>
          <div>  File "/usr/lib64/python2.6/json/scanner.py", line 55,
            in iterscan</div>
          <div>    rval, next_pos = action(m, context)</div>
          <div>  File "/usr/lib64/python2.6/json/decoder.py", line 217,
            in JSONArray</div>
          <div>    value, end = iterscan(s, idx=end,
            context=context).next()</div>
          <div>  File "/usr/lib64/python2.6/json/scanner.py", line 55,
            in iterscan</div>
          <div>    rval, next_pos = action(m, context)</div>
          <div>  File "/usr/lib64/python2.6/json/decoder.py", line 183,
            in JSONObject</div>
          <div>    value, end = iterscan(s, idx=end,
            context=context).next()</div>
          <div>  File "/usr/lib64/python2.6/json/scanner.py", line 55,
            in iterscan</div>
          <div>    rval, next_pos = action(m, context)</div>
          <div>  File "/usr/lib64/python2.6/json/decoder.py", line 155,
            in JSONString</div>
          <div>    return scanstring(match.string, match.end(),
            encoding, strict)</div>
          <div>ValueError: ('Invalid control character at: line 1 column
            1023 (char 1023)', '{"ssd": {"name": "ssd", "disperseCount":
            "0", "bricks": [{"brickpath": "/bricks/b/vol1",
            "brickaddress": "stor1", "hostUuid":
            "5fcb5150-f0a5-4af8-b383-11fa5d3f82f0"}, {"brickpath":
            "/bricks/b/vol1", "brickaddress": "stor2", "hostUuid":
            "b78d42c1-6ad7-4044-b900-3ccfe915859f"}, {"brickpath":
            "/bricks/b/vol1", "brickaddress": "stor3", "hostUuid":
            "40500a9d-418d-4cc0-aec5-6efbfb3c24e5"}, {"brickpath":
            "/bricks/b/vol1", "brickaddress": "stor4", "hostUuid":
            "5886ef94-df5e-4845-a54c-0e01546d66ea"}, {"brickpath":
            "/bricks/c/vol1", "brickaddress": "stor1", "hostUuid":
            "5fcb5150-f0a5-4af8-b383-11fa5d3f82f0"}, {"brickpath":
            "/bricks/c/vol1", "brickaddress": "stor2", "hostUuid":
            "b78d42c1-6ad7-4044-b900-3ccfe915859f"}, {"brickpath":
            "/bricks/c/vol1", "brickaddress": "stor3", "hostUuid":
            "40500a9d-418d-4cc0-aec5-6efbfb3c24e5"}, {"brickpath":
            "/bricks/c/vol1", "brickaddress": "stor4", "hostUuid":
            "5886ef94-df5e-4845-a54c-0e01546d66ea"}, {"brickpath":
            "/bricks/d/vol1", "brickaddress": "stor1", "hostUuid":
            "5fcb5150-f0a5-4a\n')</div>
          <div>[root@monitor-001 yum.repos.d]#</div>
        </div>
        <div>-------------------------</div>
        <div><br>
        </div>
        <div>--------------</div>
        <div>
          <div>[root@monitor-001 yum.repos.d]#
            /usr/lib64/nagios/plugins/check_nrpe -H stor1 -c
            discover_volume_list</div>
          <div>{"ssd": {"type": "DISTRIBUTED_REPLICATE", "name": "ssd"},
            "lockvol": {"type": "REPLICATE", "name": "lockvol"}}</div>
          <div>[root@monitor-001 yum.repos.d]#</div>
        </div>
        <div>--------------</div>
        <div><br>
        </div>
        <div>Please help me to solve this issue...</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Punit</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Oct 2, 2015 at 12:15 AM, Sahina
          Bose <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:sabose@redhat.com" target="_blank">sabose@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> The gluster-nagios
              packages have not been tested on Ubuntu<br>
              <br>
              Looking at the error below, it looks like the rpm has not
              updated the nrpe.cfg correctly. You may need to edit the
              spec file for the config file paths on Ubuntu and rebuild.
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 10/01/2015 05:45 PM, Amudhan P wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr"><span style="font-size:12.8px">OSError:
                        [Errno 2] No such file or directory is now
                        sorted out by </span><span
                        style="font-size:12.8px">by changing NRPE_PATH
                         in "constants.py".</span>
                      <div><span style="font-size:12.8px"><br>
                        </span></div>
                      <div><span style="font-size:12.8px">now if i run
                          discovery.py</span></div>
                      <div>
                        <div><span style="font-size:12.8px"><br>
                          </span></div>
                        <div><span style="font-size:12.8px">testusr@gfsovirt:/usr/local/lib/nagios/plugins/gluster$

                            sudo python discovery.py -c vm-gfs -H
                            192.168.1.11</span></div>
                        <div><span style="font-size:12.8px">Failed to
                            execute NRPE command 'discover_volume_list'
                            in host '192.168.1.11'</span></div>
                        <div><span style="font-size:12.8px">Error :
                            NRPE: Command 'discover_volume_list' not
                            defined</span></div>
                        <div><span style="font-size:12.8px">Make sure
                            NRPE server in host '192.168.1.11' is
                            configured to accept requests from Nagios
                            server</span></div>
                        <div style="font-size:12.8px"><br>
                        </div>
                      </div>
                      <div style="font-size:12.8px"><br>
                      </div>
                      <div>
                        <div><span style="font-size:12.8px">testusr@gfsovirt:/usr/local/lib/nagios/plugins/gluster$

                            /usr/lib/nagios/plugins/check_nrpe -H
                            192.168.1.11 -c discover_volume_list</span></div>
                        <div><span style="font-size:12.8px">NRPE:
                            Command 'discover_volume_list' not defined</span></div>
                        <div><span style="font-size:12.8px"><br>
                          </span></div>
                        <div>
                          <div style="font-size:12.8px"><br>
                          </div>
                          <div style="font-size:12.8px">My client is
                            responding to other nrpe command.</div>
                          <div style="font-size:12.8px">
                            <div style="font-size:12.8px">testusr@gfsovirt:/usr/local/lib/nagios/plugins/gluster$

                              /usr/lib/nagios/plugins/check_nrpe -H
                              192.168.1.11 -c check_load</div>
                            <div style="font-size:12.8px">OK - load
                              average: 0.01, 0.03,
                              0.10|load1=0.010;15.000;30.000;0;
                              load5=0.030;10.000;25.000;0;
                              load15=0.100;5.000;20.000;0;</div>
                            <div><br>
                            </div>
                          </div>
                        </div>
                        <div style="font-size:12.8px"><br>
                        </div>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Thu, Oct 1, 2015 at
                        5:20 PM, Sahina Bose <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:sabose@redhat.com"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sabose@redhat.com">sabose@redhat.com</a></a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> Looks
                            like a conflict in versions of python and
                            python-cpopen. <br>
                            Can you give us the version of these
                            packages?<br>
                            <br>
                            Also, what's the output of <br>
                             /usr/lib64/nagios/plugins/check_nrpe -H
                            192.168.1.11 -c discover_volume_list
                            <div>
                              <div><br>
                                <br>
                                <br>
                                <br>
                                <div>On 10/01/2015 04:10 PM, Amudhan P
                                  wrote:<br>
                                </div>
                                <blockquote type="cite">
                                  <div dir="ltr">Hi,
                                    <div><br>
                                    </div>
                                    <div>I am getting a error when i run
                                      discovery.py.</div>
                                    <div><br>
                                    </div>
                                    <div>discovery.py -c vm-gfs -H
                                      192.168.1.11</div>
                                    <div><br>
                                    </div>
                                    <div>Traceback (most recent call
                                      last):</div>
                                    <div>  File "discovery.py", line
                                      541, in &lt;module&gt;</div>
                                    <div>    clusterdata =
                                      discoverCluster(args.hostip,
                                      args.cluster, args.timeout)</div>
                                    <div>  File "discovery.py", line 90,
                                      in discoverCluster</div>
                                    <div>    componentlist =
                                      discoverVolumes(hostip, timeout)</div>
                                    <div>  File "discovery.py", line 53,
                                      in discoverVolumes</div>
                                    <div>    timeout=timeout)</div>
                                    <div>  File
                                      "/usr/local/lib/nagios/plugins/gluster/server_utils.py",
                                      line 114, in execNRPECommand</div>
                                    <div>    (returncode, outputStr,
                                      err) = utils.execCmd(nrpeCmd,
                                      raw=True)</div>
                                    <div>  File
                                      "/usr/lib/python2.7/dist-packages/glusternagios/utils.py",
                                      line 403, in execCmd</div>
                                    <div>    deathSignal=deathSignal,
                                      childUmask=childUmask)</div>
                                    <div>  File
                                      "/usr/local/lib/python2.7/dist-packages/cpopen/__init__.py",
                                      line 63, in __init__</div>
                                    <div>    **kw)</div>
                                    <div>  File
                                      "/usr/lib/python2.7/subprocess.py",
                                      line 710, in __init__</div>
                                    <div>    errread, errwrite)</div>
                                    <div>  File
                                      "/usr/local/lib/python2.7/dist-packages/cpopen/__init__.py",
                                      line 82, in _execute_child_v276</div>
                                    <div>   
                                      restore_sigpipe=restore_sigpipe</div>
                                    <div>  File
                                      "/usr/local/lib/python2.7/dist-packages/cpopen/__init__.py",
                                      line 107, in _execute_child_v275</div>
                                    <div>    restore_sigpipe</div>
                                    <div>OSError: [Errno 2] No such file
                                      or directory</div>
                                    <div><br>
                                    </div>
                                    <div>Gluster version : 3.7.4</div>
                                    <div>OS : Ubuntu 14.04</div>
                                    <div>Complied from source tar file.<br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>regards</div>
                                    <div>Amudhan</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                  </div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">On Wed, Sep
                                      30, 2015 at 6:21 PM, Humble
                                      Devassy Chirammal <span dir="ltr">&lt;<a
                                          moz-do-not-send="true"
                                          href="mailto:humble.devassy@gmail.com"
                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:humble.devassy@gmail.com">humble.devassy@gmail.com</a></a>&gt;</span>
                                      wrote:<br>
                                      <blockquote class="gmail_quote"
                                        style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div dir="ltr">
                                          <div>The EL7 rpms of
                                            gluster-nagios are available
                                            @ <a moz-do-not-send="true"
href="http://download.gluster.org/pub/gluster/glusterfs-nagios/1.1.0/"
                                              target="_blank">http://download.gluster.org/pub/gluster/glusterfs-nagios/1.1.0/</a><br>
                                            <br>
                                          </div>
                                          Hope it helps!<span><font
                                              color="#888888"><br>
                                            </font></span></div>
                                        <div class="gmail_extra"><span><font
                                              color="#888888"><br
                                                clear="all">
                                              <div>
                                                <div>
                                                  <div dir="ltr">
                                                    <div>--Humble<br>
                                                    </div>
                                                    <br>
                                                  </div>
                                                </div>
                                              </div>
                                            </font></span>
                                          <div>
                                            <div> <br>
                                              <div class="gmail_quote">On
                                                Tue, Sep 29, 2015 at
                                                10:56 AM, Sahina Bose <span
                                                  dir="ltr">&lt;<a
                                                    moz-do-not-send="true"
href="mailto:sabose@redhat.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sabose@redhat.com">sabose@redhat.com</a></a>&gt;</span>
                                                wrote:<br>
                                                <blockquote
                                                  class="gmail_quote"
                                                  style="margin:0 0 0
                                                  .8ex;border-left:1px
                                                  #ccc
                                                  solid;padding-left:1ex">
                                                  <div text="#000000"
                                                    bgcolor="#FFFFFF">
                                                    We will publish the
                                                    EL7 builds soon.<br>
                                                    <br>
                                                    The source tarballs
                                                    are now available at
                                                    - <a
                                                      moz-do-not-send="true"
href="http://download.gluster.org/pub/gluster/glusterfs-nagios/"
                                                      target="_blank"><a class="moz-txt-link-freetext" href="http://download.gluster.org/pub/gluster/glusterfs-nagios/">http://download.gluster.org/pub/gluster/glusterfs-nagios/</a></a><br>
                                                    <br>
                                                    thanks<span><font
                                                        color="#888888"><br>
                                                        sahina</font></span>
                                                    <div>
                                                      <div><br>
                                                        <br>
                                                        <div>On
                                                          09/25/2015
                                                          12:55 PM,
                                                          Humble Devassy
                                                          Chirammal
                                                          wrote:<br>
                                                        </div>
                                                        <blockquote
                                                          type="cite">
                                                          <div dir="ltr">HI
                                                          Michael,<br>
                                                          <br>
                                                          Yes, only el6
                                                          packages are
                                                          available @ <a
moz-do-not-send="true"
                                                          href="http://download.gluster.org/pub/gluster/glusterfs-nagios/"
target="_blank"><a class="moz-txt-link-freetext" href="http://download.gluster.org/pub/gluster/glusterfs-nagios/">http://download.gluster.org/pub/gluster/glusterfs-nagios/</a></a>
                                                          . I am looping
                                                          nagios project
                                                          team leads to
                                                          this thread.
                                                          Lets wait for
                                                          them to
                                                          revert.<br>
                                                          </div>
                                                          <div
                                                          class="gmail_extra"><br
                                                          clear="all">
                                                          <div>
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>--Humble<br>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <br>
                                                          <div
                                                          class="gmail_quote">On

                                                          Sun, Sep 20,
                                                          2015 at 2:32
                                                          PM, Prof. Dr.
                                                          Michael
                                                          Schefczyk <span
                                                          dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:michael@schefczyk.net"
                                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:michael@schefczyk.net">michael@schefczyk.net</a></a>&gt;</span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">Dear

                                                          All,<br>
                                                          <br>
                                                          In June 2014,
                                                          the
                                                          gluster-nagios
                                                          team (thanks!)
                                                          published the
                                                          availability
                                                          of
                                                          gluster-nagios-common
                                                          and
                                                          gluster-nagios-addons
                                                          on this list.
                                                          As far as I
                                                          can tell, this
                                                          quite
                                                          extensive
                                                          gluster nagios
                                                          monitoring
                                                          tool is
                                                          available for
                                                          el6 only. Are
                                                          there known
                                                          plans to make
                                                          this available
                                                          for el7
                                                          outside the
                                                          RHEL-repos (<a
moz-do-not-send="true"
href="http://ftp.redhat.de/pub/redhat/linux/enterprise/7Server/en/RHS/SRPMS/"
target="_blank"><a class="moz-txt-link-freetext" href="http://ftp.redhat.de/pub/redhat/linux/enterprise/7Server/en/RHS/SRPMS/">http://ftp.redhat.de/pub/redhat/linux/enterprise/7Server/en/RHS/SRPMS/</a></a>),



                                                          e.g. for use
                                                          with oVirt /
                                                          Centos 7 also?
                                                          It would be
                                                          good to be
                                                          able to
                                                          monitor
                                                          gluster
                                                          without
                                                          playing around
                                                          with scripts
                                                          from sources
                                                          other than a
                                                          rpm repo.<br>
                                                          <br>
                                                          Regards,<br>
                                                          <br>
                                                          Michael<br>
_______________________________________________<br>
                                                          Gluster-users
                                                          mailing list<br>
                                                          <a
                                                          moz-do-not-send="true"
href="mailto:Gluster-users@gluster.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a></a><br>
                                                          <a
                                                          moz-do-not-send="true"
href="http://www.gluster.org/mailman/listinfo/gluster-users"
                                                          target="_blank"><a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></a><br>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                        </blockquote>
                                                        <br>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </blockquote>
                                              </div>
                                              <br>
                                            </div>
                                          </div>
                                        </div>
                                        <br>
_______________________________________________<br>
                                        Gluster-users mailing list<br>
                                        <a moz-do-not-send="true"
                                          href="mailto:Gluster-users@gluster.org"
                                          target="_blank">Gluster-users@gluster.org</a><br>
                                        <a moz-do-not-send="true"
                                          href="http://www.gluster.org/mailman/listinfo/gluster-users"
                                          rel="noreferrer"
                                          target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
                                      </blockquote>
                                    </div>
                                    <br>
                                  </div>
                                </blockquote>
                                <br>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Gluster-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.gluster.org/mailman/listinfo/gluster-users"
              rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>