Hello!
Just to add to this post for others looking, I was able to get the health status check working via MAAS CLI. It’s not a direct health-check endpoint, but a good workaround for those looking for solutions.
To get this working, we have a system account on the MAAS server specifically created to act as a monitoring API. Once you have the maas CLI command setup on your server, we’re able to pull a JSON file containing an output of all MAAS statues, I was able to use JQ to parse out the service-specific statuses with the following command:
maas YOUR_CLI_USERNAME rack-controllers read | jq '.[].service_set'
The above command produces the following output:
[
{
"name": "regiond",
"status": "running",
"status_info": ""
},
{
"name": "syslog_region",
"status": "running",
"status_info": ""
},
{
"name": "bind9",
"status": "running",
"status_info": ""
},
{
"name": "proxy",
"status": "running",
"status_info": ""
},
{
"name": "ntp_region",
"status": "running",
"status_info": ""
},
{
"name": "tftp",
"status": "running",
"status_info": ""
},
{
"name": "dns_rack",
"status": "unknown",
"status_info": "managed by the region"
},
{
"name": "ntp_rack",
"status": "unknown",
"status_info": "managed by the region"
},
{
"name": "http",
"status": "running",
"status_info": ""
},
{
"name": "rackd",
"status": "running",
"status_info": ""
},
{
"name": "dhcpd",
"status": "running",
"status_info": ""
},
{
"name": "dhcpd6",
"status": "off",
"status_info": ""
},
{
"name": "syslog_rack",
"status": "unknown",
"status_info": "managed by the region"
},
{
"name": "proxy_rack",
"status": "unknown",
"status_info": "managed by the region"
}
]
From the above, we were able to parse out the health data we needed and feed it to our monitoring system.
Hope this helps someone else looking for a similar solution.