[omd-users] OMD and check-mk plugins

Andreas Döhler andreas.doehler at gmail.com
Tue Aug 22 21:12:17 CEST 2017

You can use it with command line configuration. There the old style main.mk
file will be edited and with calling "cmk -R" you generate classic Nagios
checks and then restart the core.
The templates are needed for this check generation.
If you configure with the GUI then in the background the same commands are
issued and the configuration is generated.

What is also a great help is to configure a host inside WATO and then take
a look at the generated .mk files inside
/omd/sites/<your-site>/etc/check_mk/conf.d/wato/hosts.mk and rules.mk
Then it is possible if you prefer a hand made configuration to take theses
files as an example how to build your own .mk files and generate the Nagios
config with "cmk -R".

The following link gives a short explanation what are these .mk files are
doing - https://mathias-kettner.de/checkmk_configfiles.html


Zach LaCelle <lacelle at roboticresearch.com> schrieb am Di., 22. Aug. 2017 um
21:05 Uhr:

> Hello Andreas,
> I'm currently using the Thruk2 UI, and navigating simply to http://
> <your-host>/<your-site>.
> If we can't use the check_mk tools with traditional Nagios, why are there
> check_mk templates all over the place?
> I will go to the check_mk URL and learn about the WATO tool.  Thank you!
> -Zach
> On 08/22/2017 03:03 PM, Andreas Döhler wrote:
> Hi Zach,
> you cannot define old school Nagios service definitions for check_mk.
> What type of webgui do you use? Classic Nagios GUI or Check_MK Multisite
> or Thruk?
> Try the following URL -->  http://<your-host/<your-site>/check_mk/
> login with your admin account then you have the possibility to edit the
> check_mk configuration inside WATO (web administration tool).
> br
> Andreas
> Zach LaCelle <lacelle at roboticresearch.com> schrieb am Di., 22. Aug. 2017
> um 19:21 Uhr:
>> Hello,
>> I'm trying out OMD as a replacement to custom-configured Nagios3, and so
>> far I like a lot of the changes.  However, I'm having issues getting
>> check_mk to run within the framework.  Hopefully this is a simple fix.
>> I've followed the instructions to get a Nagios site running, and have
>> installed the check_mk_agent package on a test server.  I can telnet to
>> that server from the OMD server and see the outputs of the
>> check_mk_agent process, so it looks like the agent is running correctly.
>> However, when I set up a service inside of Nagios on the OMD site, it
>> complains about the following:
>> (No output on stdout) stderr: python: can't open file
>> '/omd/sites/nagios/var/check_mk/precompiled/<machine name>': [Errno 2]
>> No such file or directory
>> The service I've set up look as follows:
>> define service {
>>    service_description            check-mk
>>    host_name                      <machine name>
>>    use                            check_mk_active
>>    check_command                  check-mk
>>    contact_groups                 sysadmins
>> }
>> What is the correct way to set up the configuration from the OMD
>> website, so that it precompiles the plugins to run and runs the correct
>> binary?
>> Thank you!
>> _______________________________________________
>> omd-users mailing list
>> omd-users at lists.mathias-kettner.de
>> http://lists.mathias-kettner.de/mailman/listinfo/omd-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/omd-users/attachments/20170822/4c030b4d/attachment.html>

More information about the omd-users mailing list