Cyd solo miner board checks

I’m running cmk 2.4.0p16.cre. I have a few solo miner boards and each one sends a unicast packet every 2 seconds that has a few interesting tidbits. With a little help from AI I’ve got python code that listens for one of those packets from a board and outputs to be some services:

OMD[iceomd]:~/local/lib/python3/cmk_addons/plugins/cyd_miner/rulesets$ /opt/omd/sites/iceomd/local/lib/python3/cmk_addons/plugins/cyd_miner/libexec/agent_cyd_miner 10.10.3.101
<<<cyd_miner_check>>>
0 HashRate HashRate=908.43KH/s HashRate is 908.43KH/s (Source IP: 10.10.3.101)
0 Version - Version is v1.8.22
0 BoardType - BoardType is cyd 2.8
0 PoolInUse - PoolInUse is public-pool.io:21496
0 LastDiff - Value: 0.085
0 BestDiff - Value: 37.52 92.57
0 Uptime - Value: 002d 23:24:54022d 20:34:50

All my attempts so far to get cmk to run that python script like an agent and set up those services for the board haven’t worked at all.

The python runs as needed from command line. Tried defining it as an “individual program call instead of agent access” and that doesn’t work. The attached txt file is the python code I’m using.

agent_cyd_miner.txt (4.6 KB)

Am I missing a step here or is this just not a possible way to get these checks working?

1 Like

Did you try running that as a local check?

I have set it up as a local check on the server running check_mk. It piggybacks the data for miners and one other different type of miner and that seems to be working okay. Even getting perf data for hash rate. I may revisit this later to set it up as an agent for these devices but since it’s working now I can move on to other things.

1 Like