Is there a better way to send a notification if this service is not running? I am guessing the 1 represents one instance running. Is there a better plugin or check to monitor this service?
I check via the ElasticSearch API. The service could be running while ElasticSearch is totally hung, so I think the API is more reliable. If ElasticSearch is hung, the API will typically also be hung. check_http can tackle this on a basic level.
As a side note, this is probably my favorite place for super specific Nagios plugins and includes ElasticSearch options (even though they're almost all written in Perl ) https://github.com/HariSekhon/nagios-plugins