Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monit to check Solr status via its API #281

Open
dvalfre opened this issue Jul 10, 2016 · 1 comment
Open

Monit to check Solr status via its API #281

dvalfre opened this issue Jul 10, 2016 · 1 comment

Comments

@dvalfre
Copy link
Contributor

dvalfre commented Jul 10, 2016

It should be possible to extend Monit configuration for Solr by adding an HTTP query. A HTTP response other than 200 should mean it's down, although processing the output will be nicer :)

Solr-test-host ~ # curl "http://localhost:8983/solr/admin/ping?wt=json&indent=on"
{
  "responseHeader":{
    "status":0,
    "QTime":3,
    "params":{
      "q":"solrpingquery",
      "indent":"on",
      "wt":"json",
      "echoParams":"all",
      "distrib":"false",
      "df":"text",
      "rows":"10"}},
  "status":"OK"}
Solr-test-host ~ #
@radamanthus
Copy link
Contributor

With the introduction of cores in Solr 5, the ping url is now

curl "http://localhost:8983/solr/<core-name>/admin/ping?wt=json&indent=on"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants