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

by
Jeremy Canfield |
Updated: February 24 2023
| 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