[ 
https://issues.apache.org/jira/browse/SOLR-1855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13664143#comment-13664143
 ] 

Leonardo Fedalto edited comment on SOLR-1855 at 5/22/13 2:33 PM:
-----------------------------------------------------------------

Really useful. Great work.

I changed the script a little bit to meet my needs and I'm uploading my changes 
back here.

The checksolr-2.sh have some changes worth pointing out:
* It doesn't have the assumption that the core name should start with _core__. 
It should work regardless of the name. I didn't test with special characters 
thought.
* It checks if a Solr Core could not be initialized.
* Checks if the slave could not get the master index version (maybe because 
master is down or network issues).
* It checks if each core is a master or a slave, so it does not have the 
_--slave_ option
* Tested on Linux and OS X
* Tested using Solr 4.1 API
                
      was (Author: fedalto):
    Really useful. Great work.

I changed the script a little bit to meet my needs and I'm uploading my changes 
back here.

The checksolr-2.sh have some changes worth pointing out:
* It doesn't have the assumption that the core name should start with _core__. 
It should work regardless of the name. I didn't test with special characters 
thought.
* It checks if a Solr Core could not be initialized.
* Checks if the slave could not get the master index version (maybe because 
master is down or network issues).
* It checks if each core is a master or a slave, so it does not have the 
_--slave_ option
* Tested on Linux and OSX
                  
> Script to monitor Solr health including replication status
> ----------------------------------------------------------
>
>                 Key: SOLR-1855
>                 URL: https://issues.apache.org/jira/browse/SOLR-1855
>             Project: Solr
>          Issue Type: New Feature
>          Components: replication (java)
>    Affects Versions: 1.4
>            Reporter: Shawn Smith
>         Attachments: checksolr, checksolr-2.sh
>
>
> It would be useful to have a simple monitor script that checks the health of 
> all cores on a solr server.
> # Call the "ping" command and verify success.
> # Check for replication failures, for replication slaves.
> The script should return a non-zero exit code if any serious errors are 
> discovered.  This should make it easy to plug the script into a monitoring 
> framework (Nagios, etc.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to