I’ve been trying to extract one service from one of my host via and OID
(in my case, dynamic OID, explaining the need to write a snmp plugin that checks based on a name and a base OID).
For this i’ve created a python file which i moved into /omd/sites/mysite/local/lib/python3/cmk/base/plugins/agent_based
My initial issue was that the file would dissapear. I’ve read that this is because i am working on a checkMK satellite which is not the master.
Now that i have rights on the master checkMK as well, even if i put the file in the same place on the master, obviously my satellite checkMK will not see the file and not check the service.
Can anyone help me with that ? where am i supposed to put the file ?
The paths looks ok. The push of the file will afik only take place on the activation of a configuration change. It might be better to create a second site on the satellite for development When you have finished developing your plugin, create an MKP file and place it on the master site. The next time you activate a config change, it will be transferred to the satellite sites.
Yes, there is. Just use the rule “Process discovery” to specify which processes to create a service for. There you can also specify a whole bunch of metric levels to check.
If it is ok or not depends on the levels you define either in process discovery (changes there require to remove and re-add the service as they are some kind of “defaults”) or by using the rule " State and count of processes" to modify the levels after discovery.