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

  1. Verify elasticsearch is running by typing $ smarts/bin/sm_service show.
    The expected result is: RUNNING smarts-elasticsearch
  2. Verify elasticsearch is serving requests from a browser on the same machine on Windows 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":...
    
  3. 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.

Example