Below is an updated on Capturing Solaris 11.4+ Analytics.
In part 1-4 my configuration used a SQLite Database to store local Stats/Analytics data. I then used a Python HTTP daemon to publish and make the results available for a remote Stats store host.

In this update, the capture / publish process is greatly enhanced, I completely eliminated the need for a SQLite DB and or a Python HTTP server. while the need for SQLite and Python HTTP is still required on pre Solaris 11.4 hosts, its now totally unnecessary on Solaris 11.4+ hosts.

Lets jump right in to the details.
All the latest code is available on the GitHub Repository page.

The new version only needs one service/demon to run on the remote node.
All data captured is stored in the local Stats Store.
The remote Stats Store central server queries / pulls from all the remote client.

The install adds two new SMF services and two new Python applications.

Configuration Example

First Copy the Stats Store (sstore) custom json files to the stats directory.

1

cp/opt/sys_monitor/statsSrc/*.json/usr/lib/sstore/metadata/json/site

Now, restart the Stats Store service for the new stats to be available.

1

svcadm restart svc:/system/sstore:default

There are two applications included, a client and a server.

The client process:The client process is used to collect / capture Analytics data, this data will be stored in the local Stats Store.

The server process:The server process will fetch Analytics/Stats Store data from a list of remote clients and publish the results in the local central Stats Store.

Note: I am not posting any of the code below, because all the code is available on Github.

Now, to use Analytics sample application, follow the steps below.

Clone the git repository in to /opt/sys_monitor with git clone. for example, git clone https://github.com/elik1001/solaris-analytics-publisher

Modify/add you host to /opt/sys_monitor/conf/s12-links.txt, this file contains a list of hosts to fetch data from, the data will then be published to the local central Analytics Stats Store.

Add/replace password in /opt/sys_monitor/conf/chk_db1_apps-ses.sh and /opt/sys_monitor/conf/test_db1_apps.sh with your MySQL DB password (or if you allow localhost without a password, just remove -p option)