How can I add own position to action menu? (like “Open log” in Log service). I have to monitor RAID events like write fail counts (which can only increase), detect changes and as a result set a proper service state (WARN, CRIT, OK). It works very well, but I have to have possibility to acknowledge state as OK (i.e. after replacing disk in RAID), because this counters can only rise.
My idea is to add option to action menu to clear service state, like 'Open Log" in logwatch plugin. And my question is: How to do that?
I am not sure if this is a solution. The only action is URL call, is it possible to call any procedure that allow modify stored data in check plugin context? I use get_value_store() to remember the number of errors, and I have to modify this value. I have read the REST API documentation, and I cant see any API call to do this.