The Cloud tab of the Solr Web UI is convenient, but not for monitoring purposes. Just like you, I hate XML and parsing it from shell is more convoluted that it needed to be. But there are some helpful tools. Here’s a quick example of monitoring Solr cores with a shell script.

This will give a shell array containing the status of your Solr cores. You can use the printarray function to recall this data for further processing without having to use temp files or repeatedly query Solr servers. Sample output:

 

Leave A Reply

Please enter your comment!
Please enter your name here