Install checkmk agent on vCenter?

I want to monitor a vCenter (and the “connected” ESXi hosts and VMs). The datasource rule “Check state of VMWare ESX via vSphere” lets me select a query type.

I chose “Queried host is a vCenter” and eveything works fine. But I can also pick “Queried host is a vCenter with Check_MK Agent installed”:

image

This makes me wonder how I would install the Check_MK agent on a vCenter? Has anyone done that?

Another question: If I select “Queried host is a host system”, what does that mean? Does it refer to one of the ESXi hosts?

This is a relic from ancient CMK versions :smiley:
Before you had the possibility to select the nice settings for agent and SNMP, there was only the option agent, SNMP, booth or nothing.
And only one datasource per host was allowed.
With this trick it was possible to have two datasources on one host. vCenter was also possible to install on normal Windows servers and then you wanted to have monitoring for the Windows and the vCenter.
The same applies to the first Linux vCenter appliances. This was a normal Linux with vCenter software.

1 Like

Hi,

This makes me wonder how I would install the Check_MK agent on a vCenter? Has anyone done that?

Agent on VCSA: Just install rpm package, automatic update ist working. You need to install xinetd.

Open TCP:6556: In VSCA VAMI enter IP address of checkmk host in firewall settings. On appliance create a script:

/etc/vmware/appliance/firewall/checkmk

{
  "firewall": {
    "enable": true,
    "rules": [
      {
        "direction": "inbound",
        "name": "checkmk",
        "port": "6556",
        "portoffset": 0,
        "porttype": "dst",
        "protocol": "tcp"
      }
    ]
  }
}

and reload firewall:

/usr/lib/applmgmt/networking/bin/firewall-reload

"Queried host is a host system”, what does that mean?

You query ESX, not vCenter.

Regards,
ttr

2 Likes

Thank you both very much for the replies. I cannot decide who gets the “solution” medal so I choose @ttr because @andreas-doehler has already collected a lot of them :blush:

Our security policies are very restrictive and installing the agent on the vCenter will probably not be allowed but it’s good to know it would be possible.

That’s the same problem with every appliance and the discussion if it is “allowed” to install something.
:smiley:

2 Likes

and the discussion if it is “allowed” to install something

That’s true, you might experience vendor support problems. But those new Photon-OS appliances just work like a charm with checkmk and VMware support never complained.

Regards,
ttr

1 Like

Hello
we used this in “ancient” times when vCenter required a Windows Server to run on.
But the option “Queried host is a host system with Check_MK agent installed” is new to me though :wink:

BR Thomas

I’ve never installed an agent on vCenter appliance.
What you can do is enable SNMP on the appliance and monitor it using SNMP.

Regards,
Erik

1 Like

Don’t do it :smiley: the data is more like gaze into a crystal ball.

1 Like