Hi,
The output of maxctrl show monitor
<monitor-name> has the information: it's stored in
the primary field of the monitor diagnostic (read the last
paragraph in the documentation). Alternatively, you can use
the maxctrl api get command to
fetch the raw JSON result or connect directly to the REST API with
curl. The REST API resource you'd be
looking into is the
monitor resource. It also happens to contain the example
output from a mariadbmon and it does have the primary
field.
Markus
--
You received this message because you are subscribed to the Google Groups "MaxScale" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxscale+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/maxscale/ff6387d6-ef58-4836-8c22-2a63e02f3252n%40googlegroups.com.
-- Markus Mäkelä, Senior Software Engineer MariaDB Corporation