For a long time I used Nagios Core without Check_MK or any other GUI for configuration. I used pynag for massive changes, but nothing else.
When I needed to check for something specific, I just wrote what I needed on bash, put as many arguments/parameters/variables I wanted and added it to the commands.cfg file.
But with Check_MK and WATO, that’s a little different. We could add whatever we want as script but configure the arguments it’s not so easy (it’s not hard either). Mathias Kettner explains it very well on the documentation, but I wanted to have my own experience on my blog.
I won’t write about how to do a script. I will just give an example about what I did.
We will create 3 files: the plugin itself – the check function – the manual page
/usr/lib/check_mk_agent/plugins/lxc_mem /usr/share/check_mk/checks/lxc_mem /usr/share/doc/check_mk/checks/lxc_mem.mem
We also will modify this one:
/usr/share/check_mk/web/plugins/wato/check_parameters.py… Continue Reading