I have my Solr/Jetty up and running well on Ubuntu 12.04. I am trying to hookup my monit
conf to monitor it, but it is having trouble connecting to the service.
I have Solr running on port 8983
and can connect via http://localhost:8983/solr/
, but cannot connect via localhost
, 127.0.0.1
, or 0.0.0.0
in my monit conf file.
Monit conf file:
check process solr with pidfile "/var/run/jetty.pid"
start program = "/usr/sbin/service jetty start"
stop program = "/usr/sbin/service jetty stop"
if failed host 127.0.0.1 port 8983 protocol http then restart
if totalmem is greater than 7268 MB for 10 cycles then restart
if 5 restarts within 5 cycles then timeout
Netstat:
root@ip-10-110-37-29:~# netstat -lnp | grep 8983
tcp 0 0 0.0.0.0:8983 0.0.0.0:* LISTEN 16033/java
I have tried different permutations of if failed
lines, but always get the following monit errors in my logs:
'solr' failed, cannot open a connection to INET[localhost:8983] via TCP
What am I doing wrong here?