<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 &quot;/usr/lib64/nagios/plugins/gluster/discovery.py&quot;, line 510, in &lt;module&gt;</div><div>    clusterdata = discoverCluster(args.hostip, args.cluster, args.timeout)</div><div>  File &quot;/usr/lib64/nagios/plugins/gluster/discovery.py&quot;, line 88, in discoverCluster</div><div>    componentlist = discoverVolumes(hostip, timeout)</div><div>  File &quot;/usr/lib64/nagios/plugins/gluster/discovery.py&quot;, line 56, in discoverVolumes</div><div>    timeout=timeout)</div><div>  File &quot;/usr/lib64/nagios/plugins/gluster/server_utils.py&quot;, line 107, in execNRPECommand</div><div>    resultDict = json.loads(outputStr)</div><div>  File &quot;/usr/lib64/python2.6/json/__init__.py&quot;, line 307, in loads</div><div>    return _default_decoder.decode(s)</div><div>  File &quot;/usr/lib64/python2.6/json/decoder.py&quot;, line 319, in decode</div><div>    obj, end = self.raw_decode(s, idx=_w(s, 0).end())</div><div>  File &quot;/usr/lib64/python2.6/json/decoder.py&quot;, line 336, in raw_decode</div><div>    obj, end = self._scanner.iterscan(s, **kw).next()</div><div>  File &quot;/usr/lib64/python2.6/json/scanner.py&quot;, line 55, in iterscan</div><div>    rval, next_pos = action(m, context)</div><div>  File &quot;/usr/lib64/python2.6/json/decoder.py&quot;, line 183, in JSONObject</div><div>    value, end = iterscan(s, idx=end, context=context).next()</div><div>  File &quot;/usr/lib64/python2.6/json/scanner.py&quot;, line 55, in iterscan</div><div>    rval, next_pos = action(m, context)</div><div>  File &quot;/usr/lib64/python2.6/json/decoder.py&quot;, line 183, in JSONObject</div><div>    value, end = iterscan(s, idx=end, context=context).next()</div><div>  File &quot;/usr/lib64/python2.6/json/scanner.py&quot;, line 55, in iterscan</div><div>    rval, next_pos = action(m, context)</div><div>  File &quot;/usr/lib64/python2.6/json/decoder.py&quot;, line 217, in JSONArray</div><div>    value, end = iterscan(s, idx=end, context=context).next()</div><div>  File &quot;/usr/lib64/python2.6/json/scanner.py&quot;, line 55, in iterscan</div><div>    rval, next_pos = action(m, context)</div><div>  File &quot;/usr/lib64/python2.6/json/decoder.py&quot;, line 183, in JSONObject</div><div>    value, end = iterscan(s, idx=end, context=context).next()</div><div>  File &quot;/usr/lib64/python2.6/json/scanner.py&quot;, line 55, in iterscan</div><div>    rval, next_pos = action(m, context)</div><div>  File &quot;/usr/lib64/python2.6/json/decoder.py&quot;, line 155, in JSONString</div><div>    return scanstring(match.string, match.end(), encoding, strict)</div><div>ValueError: (&#39;Invalid control character at: line 1 column 1023 (char 1023)&#39;, &#39;{&quot;ssd&quot;: {&quot;name&quot;: &quot;ssd&quot;, &quot;disperseCount&quot;: &quot;0&quot;, &quot;bricks&quot;: [{&quot;brickpath&quot;: &quot;/bricks/b/vol1&quot;, &quot;brickaddress&quot;: &quot;stor1&quot;, &quot;hostUuid&quot;: &quot;5fcb5150-f0a5-4af8-b383-11fa5d3f82f0&quot;}, {&quot;brickpath&quot;: &quot;/bricks/b/vol1&quot;, &quot;brickaddress&quot;: &quot;stor2&quot;, &quot;hostUuid&quot;: &quot;b78d42c1-6ad7-4044-b900-3ccfe915859f&quot;}, {&quot;brickpath&quot;: &quot;/bricks/b/vol1&quot;, &quot;brickaddress&quot;: &quot;stor3&quot;, &quot;hostUuid&quot;: &quot;40500a9d-418d-4cc0-aec5-6efbfb3c24e5&quot;}, {&quot;brickpath&quot;: &quot;/bricks/b/vol1&quot;, &quot;brickaddress&quot;: &quot;stor4&quot;, &quot;hostUuid&quot;: &quot;5886ef94-df5e-4845-a54c-0e01546d66ea&quot;}, {&quot;brickpath&quot;: &quot;/bricks/c/vol1&quot;, &quot;brickaddress&quot;: &quot;stor1&quot;, &quot;hostUuid&quot;: &quot;5fcb5150-f0a5-4af8-b383-11fa5d3f82f0&quot;}, {&quot;brickpath&quot;: &quot;/bricks/c/vol1&quot;, &quot;brickaddress&quot;: &quot;stor2&quot;, &quot;hostUuid&quot;: &quot;b78d42c1-6ad7-4044-b900-3ccfe915859f&quot;}, {&quot;brickpath&quot;: &quot;/bricks/c/vol1&quot;, &quot;brickaddress&quot;: &quot;stor3&quot;, &quot;hostUuid&quot;: &quot;40500a9d-418d-4cc0-aec5-6efbfb3c24e5&quot;}, {&quot;brickpath&quot;: &quot;/bricks/c/vol1&quot;, &quot;brickaddress&quot;: &quot;stor4&quot;, &quot;hostUuid&quot;: &quot;5886ef94-df5e-4845-a54c-0e01546d66ea&quot;}, {&quot;brickpath&quot;: &quot;/bricks/d/vol1&quot;, &quot;brickaddress&quot;: &quot;stor1&quot;, &quot;hostUuid&quot;: &quot;5fcb5150-f0a5-4a\n&#39;)</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>{&quot;ssd&quot;: {&quot;type&quot;: &quot;DISTRIBUTED_REPLICATE&quot;, &quot;name&quot;: &quot;ssd&quot;}, &quot;lockvol&quot;: {&quot;type&quot;: &quot;REPLICATE&quot;, &quot;name&quot;: &quot;lockvol&quot;}}</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 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
          &quot;constants.py&quot;.</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 &#39;discover_volume_list&#39; in host &#39;192.168.1.11&#39;</span></div>
          <div><span style="font-size:12.8px">Error : NRPE:
              Command &#39;discover_volume_list&#39; not defined</span></div>
          <div><span style="font-size:12.8px">Make sure NRPE
              server in host &#39;192.168.1.11&#39; 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
              &#39;discover_volume_list&#39; 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 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"> 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&#39;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 &quot;discovery.py&quot;, line 541, in
                        &lt;module&gt;</div>
                      <div>    clusterdata =
                        discoverCluster(args.hostip, args.cluster,
                        args.timeout)</div>
                      <div>  File &quot;discovery.py&quot;, line 90, in
                        discoverCluster</div>
                      <div>    componentlist = discoverVolumes(hostip,
                        timeout)</div>
                      <div>  File &quot;discovery.py&quot;, line 53, in
                        discoverVolumes</div>
                      <div>    timeout=timeout)</div>
                      <div>  File
                        &quot;/usr/local/lib/nagios/plugins/gluster/server_utils.py&quot;,
                        line 114, in execNRPECommand</div>
                      <div>    (returncode, outputStr, err) =
                        utils.execCmd(nrpeCmd, raw=True)</div>
                      <div>  File
                        &quot;/usr/lib/python2.7/dist-packages/glusternagios/utils.py&quot;,
                        line 403, in execCmd</div>
                      <div>    deathSignal=deathSignal,
                        childUmask=childUmask)</div>
                      <div>  File
                        &quot;/usr/local/lib/python2.7/dist-packages/cpopen/__init__.py&quot;,
                        line 63, in __init__</div>
                      <div>    **kw)</div>
                      <div>  File &quot;/usr/lib/python2.7/subprocess.py&quot;,
                        line 710, in __init__</div>
                      <div>    errread, errwrite)</div>
                      <div>  File
                        &quot;/usr/local/lib/python2.7/dist-packages/cpopen/__init__.py&quot;,
                        line 82, in _execute_child_v276</div>
                      <div>    restore_sigpipe=restore_sigpipe</div>
                      <div>  File
                        &quot;/usr/local/lib/python2.7/dist-packages/cpopen/__init__.py&quot;,
                        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 href="mailto:humble.devassy@gmail.com" target="_blank">humble.devassy@gmail.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 dir="ltr">
                            <div>The EL7 rpms of gluster-nagios are
                              available @ <a 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 href="mailto:sabose@redhat.com" target="_blank"></a><a 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"> We will publish
                                      the EL7 builds soon.<br>
                                      <br>
                                      The source tarballs are now
                                      available at - <a href="http://download.gluster.org/pub/gluster/glusterfs-nagios/" target="_blank"></a><a href="http://download.gluster.org/pub/gluster/glusterfs-nagios/" target="_blank">http://download.gluster.org/pub/gluster/glusterfs-nagios/</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 href="http://download.gluster.org/pub/gluster/glusterfs-nagios/" target="_blank"></a><a href="http://download.gluster.org/pub/gluster/glusterfs-nagios/" target="_blank">http://download.gluster.org/pub/gluster/glusterfs-nagios/</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 href="mailto:michael@schefczyk.net" target="_blank"></a><a href="mailto:michael@schefczyk.net" target="_blank">michael@schefczyk.net</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 href="http://ftp.redhat.de/pub/redhat/linux/enterprise/7Server/en/RHS/SRPMS/" target="_blank"></a><a href="http://ftp.redhat.de/pub/redhat/linux/enterprise/7Server/en/RHS/SRPMS/" target="_blank">http://ftp.redhat.de/pub/redhat/linux/enterprise/7Server/en/RHS/SRPMS/</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 href="mailto:Gluster-users@gluster.org" target="_blank"></a><a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
                                                  <a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank"></a><a href="http://www.gluster.org/mailman/listinfo/gluster-users" 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>
                            </div>
                          </div>
                          <br>
_______________________________________________<br>
                          Gluster-users mailing list<br>
                          <a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
                          <a 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 href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a 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>