I need to store locally on checkmk server some data by my check plugin
I try to monitor some hardware built with module boards, so I need to store quantity and types of used boards to detect if there is any change, and to have possibility to accept changes. I need behavior like log analyze plugin - it store logged events and they can be accepted by pressing “Acknowledge problems” button.
I assume you are looking for something like the Logwatch Plugin?
If not, then you probably mean the logs found in Out-Of-Band Management Boards like the HP iLO IML. CheckMK can monitor this and the service will switch back to “OK” upon acknowledging these logs inside the webinterface.
I’m not sure though, I still can’t make any sense of
I got monitoring data by SNMP, board list are included, and it work fine. All I need is to store board list and configuration locally on checkmk server. I can use file = open (“/tmp/my_file_name”, “w”), and file.write "(“my data here”) in my check agent, but it is dirty hack. I suppose that there is some nice and legal way to this.
And still don’t know how to add any kind of “acknowledge” button. I try to analyze logwatch.py to find how to do it, with no results. I do not use python, only for checkmk so maybe it is the reason.