To answer question 2: think what you are looking for is a Datasource program
I use this to pull data from a P1-meter (in a very simple form)
The howto is on the forum at https://forum.checkmk.com/t/howto-p1-meter-monitoring-in-cmk/49317
Hope this can act as an example for your case.
- Glowsome