I'am using Apache Solr 3.6.2 integrated with Drupal 7.*. Sometimes Apache solr service goes down, and I am completely clueless that Solr is down. I don't have any other choice than manually login to the Linux server and start solr.
Is there any PHP library or piece of code that I can write so that whenever Solr service is down, it will notify me by triggering email (using php) or it will automatically restart apache solr. I am looking for some PHP PECL.
Is there a better way than PECL? Let me know if it is possible? If possible, How can I implement this in PHP?