Skip to content

Monit to check Solr status via its API #281

@dvalfre

Description

@dvalfre

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 ~ #

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions