Bootstrap FreeKB - SiteScope (Monitoring) - Determine if monitoring is active using REST API
SiteScope (Monitoring) - Determine if monitoring is active using REST API

Updated:   |  SiteScope (Monitoring) articles

You may want to first check out my article on Getting Started with the SiteScope REST API and this MicroFocus PDF.

A GET request can be made to endpoint /api/admin/monitors/status to know if monitoring is active. For example, here is how you could submit the GET request using curl on Linux.

curl --request GET --user <username>:<password> --url http://<SiteScope hostname or IP address>:<port>/SiteScope/api/admin/monitors/status

 

And here is a practical example which returns MONITORING_ACTIVE.

~]# curl --request GET --user john.doe:itsasecret --url http://sitescope.example.com:8080/SiteScope/api/admin/monitors/status
MONITORING_ACTIVE

 

The GET request should return one of the following.

  • MONITORING_PASSIVE__STARTUP
  • MONITORING_ACTIVE
  • MONITORING_PASSIVE__SHUTDOWN



Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 55f179 in the box below so that we can be sure you are a human.