I usually setup an agent access rule, to replace agent call with custom
command, and i do something like this :

For directly available host over SSH :

ssh -o ConnectTimeout=10 -l username <IP> check_mk_agent

For host available through another host via ssh :

ssh -o ConnectTimeout=10 -i auth.key -o StrictHostKeyChecking=no -o
UserKnownHostsFile=/dev/null -o ProxyCommand='ssh -o ConnectTimeout=10 -l
gateuser <GATEWAY> exec netcat <IP> %p' -l root <GATEWAY> -v check_mk_agent


where GATEWAY is the intermediary host. In this setup login proceeds to
gateuser@GATEWAY and then the auth.key file is used to connect to root @
target host (key it is not used for first host). The assumption is that you
have ssh key auth set up with gateuser@GATEWAY host already.

The StrictHostKeyChecking and UserKnownHostsFile are used when the ip
address can point to different machines - i use it in trivial hearbeat
clusters where only one machine does all the work at a time and cluster
switch is not something i have to be concerned with - i am just interested
in the service running.  Of course it would be better handled by defining
all nodes as a cluster entirty in check_mk.


2014-05-21 12:36 GMT+02:00 Matthias Henze <[email protected]>:

>
> Perhaps these two links may help:
>
> https://wiki.mhcsoftware.de/check_relay
> https://github.com/gebi/check-receiver
>
>
> Am 21.05.2014 11:18, schrieb Morgan Rongier:
> > Hello,
> >
> > I’m new to check_mk and I installed an omd distribution to monitor my
> servers without any problems.
> > Now, I’m reading your documentation about using ssh instead of
> unencrypted connections. (
> http://mathias-kettner.de/checkmk_datasource_programs.html)
> >
> > Is it possible with an OMD installation ? Do I just have to diable or
> stop xinetd ?
> > My problem is I filled main.mk file and nothing changed on my web
> interface, and I don’t understand how I should proceed. :(
> > Any idea on what I’m doing wrong ?
> >
> > Regards,
> > Morgan
> > _______________________________________________
> > omd-users mailing list
> > [email protected]
> > http://lists.mathias-kettner.de/mailman/listinfo/omd-users
> >
>
>
>
> --
>
> MHC SoftWare GmbH
> Fichtera 17
> 96274 Itzgrund/Germany
>
> voice: +49-(0)9533-92006-0
> fax: +49-(0)9533-92006-6
> e-mail: [email protected]
>
> HR Coburg: B2242
> Geschäftsführer: Matthias Henze
>
>
>
> _______________________________________________
> omd-users mailing list
> [email protected]
> http://lists.mathias-kettner.de/mailman/listinfo/omd-users
>
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users

Reply via email to