Giter Site home page Giter Site logo

Comments (3)

widhalmt avatar widhalmt commented on September 26, 2024 2

Hi,

I have the same error with Elasticsearch 5.0

Cheers,
Thomas

from nagios-plugin-elasticsearch.

darnux avatar darnux commented on September 26, 2024 1

Had the same problem after upgrading ES from 1.x to 5.x.
An strace showed that prefix is "/" everytime (I do not use a prefix) and this leads to 404 for //_cluster/health in versions newer than 1.x:
strace sample:
sendto(3, "GET //_cluster/health HTTP/1.1\r\n"..., 134, 0, NULL, 0) = 134 recvfrom(3, "HTTP/1.1 404 Not Found\r\nes.index"..., 8192, 0, NULL, NULL) = 508

This fixed it for me (left original version, right my version):

96,97c96,97
< if not prefix.endswith('/'):
< prefix += '/'
---
> #if not prefix.endswith('/'):
> # prefix += '/'

Second problem arised with stats?all=true whereas the parametr all is not valid anymore.
This fixed it for me (left original version, right my version):`

143c143
< 'stats?all=true' % (host, port, prefix))
---
> 'stats' % (host, port, prefix))

Hope this can help you too.

from nagios-plugin-elasticsearch.

kwisatz avatar kwisatz commented on September 26, 2024

I'm astonished that the API failure would also happen on 2.3.1, we've been using it on 2.4.2 without a hitch.

from nagios-plugin-elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.