The elasticsearch service, a component of the Notifications cache, is only accessible from the local machine. Verify this service is running and serving requests.
Procedure
- Verify elasticsearch is running by typing $ smarts/bin/sm_service show.
The expected result is: RUNNING smarts-elasticsearch
- Verify elasticsearch is serving requests from a browser or using a tool like curl on Linux.
Browser example:
http://localhost:9200/_status
A page specific to the browser appears.
Linux examples:
curl -XGET http://localhost:9200/_status
curl http://localhost:9200/smarts/alert/_count
A JSON page appears indicating success and showing Smarts as one of the indices. For example:
"_shards":{"total":10,"successful":5,"failed":0}
.
.
.
"indices":{"smarts":...
- If the Smarts index does not exist, the setup script has failed. Check the
setup_elasticsearch.log
file. Note that after you first start elasticsearch, it may take a few minutes before the setup script begins running.