Auto register into specific folders

CMK version: 2.3.0p13
OS version: RHEL 9

Hey all,

Using Cloud edition (free about to pay) and we’re trying to see if a certain functionality exists.

We’d like to auto register hosts into certain folders based on certain criteria.

For example, id like hosts to auto register to Folder A if its within a certain IP Address subnet (ex 10.10.1.0/24)

Is this functionality possible? if not, what options do i have to ‘auto file’ hosts into certain folders in checkmk?

Thanks!

Hello,

You should be able to do that with the Setup → Hosts → Dynamic host management Rule.

For Azure Environments you should have one Azure Piggyback Host integrated for each Subscription (Setup → Agents → VM, Cloud, Container → Microsoft Azure).
You then create a dynamic host management rule for each of those Hosts and declare inside each Rule where the Piggyback Hosts should be created and to only create matching Hosts based on regex. You can also define several folders inside one Rule.

The issue here is that checkmk does not know the IP address of the piggyback hosts as long as they are not created/have no agent or snmp. So unfortunately I’m not sure if your approach with IP Subnet is possible if all Hosts are in the same subscription, but it may be if you are using Azure Tags for your subnets and only gather piggyback data of hosts that have a certain Azure Tag set.

The easiest method would be to create Hosts based on the Hostname and Subscription.
The Rule would look something like this:

Hope it helps.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.