Artica Wiki

Use the Artica REST API to monitor all services in Nagios

With Artica's REST API Web service, you can collect all the information you need on local services managed by Artica.

When Artica is in charge of a service (Reverse-Proxy, Proxy, databases..) , it monitors the entire health (CPU, memory, file descriptors, I/O flows, network).
The Service Wep API lets you publish all this information via a json.
This JSON can then be used by the Nagios server.
This API is added on Artica v4.50 Service Pack 1 and Hotfix 20250226-22 

Example: Monitor the Proxy service CPU percentage

According to  /system/monit/json  API the main key of the proxy service is APP_SQUID.

the root for the CPU value ( in percentage ) is Services > APP_SQUID > Memory > Percent for the memory usage and Services > APP_SQUID > CPU > Percent for the CPU percentage

On the nagios server go to Configure and on the left menu, go to Advanced configuration > Core Config Manager

-u 'http://1.2.3.4:9503/system/monit/json' -k 'Services.APP_SQUID.Memory.Percent' -w 90 -c 95