cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
IMPORTANT: Currently some Knowledge Base content may be unavailable. We are working diligently to restore these articles and appreciate your patience.

EDR: How to monitor Event Forwarder service status via API

EDR: How to monitor Event Forwarder service status via API

Environment

  • EDR Server: 7.1 and Higher (formerly CB Response)
  • EDR Event Forwarder: 3.7.0 and Higher

 

Objective

Set up monitoring for the service status of Event Forwarder and start services if stopped

 

Resolution

  1. Determine how often to check the running state of the service
  2. Decide which scripting language / services to use to query the API
  3. Add a GET request for the status of the service
    • https://<SERVER>/api/v1/event_forwarder/control
  4. Use the "state" field returned to determine if the service is running. Different states are Running,Stopped, and Unknown
  5. If stopped, send a POST request to the same control to start services with the following body
    • {"action":"START"}

 

Related Content

 

Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎09-02-2020
Views:
62
Contributors