Hostname Translation / Matching for Piggyback data and Network Scan

CMK version: 2.2.0p27
OS version: Oracle Linux 7

Hello, I would like to ask if it is possible to match hostnames case insensitively.
I have a CheckMK environment where hosts have upper, lower and sometimes camel case names. These hosts are VMware VMs. In the vCenter they also don’t have a uniform case spelling. Lastly the case spelling within the DNS is also not uniform.

The spelling itself (names/letters) are all the same. Just the case is different. For example in CheckMK a host name is “Myhost”. The same host is called “myHost” in vCenter and “MYHOST” in the DNS.

I like to find a solution how to easily (1) assign the correct piggyback data to the hosts and (2) prevent the hosts from appearing in the network scan, because the DNS responds with a different case spelling.

I have worked with the “hostname translation for piggybacked hosts” as well as the hostname translation in the network scan folder properties. But I just seem to be able to translate the hostnames for the piggyback / network scan results, but not for the CheckMK hostnames. I thought I could translate the piggyback / dns names to lowercase and then translate my CheckMK hostnames to lowercase as well and then compare. But apparently this is not possible, or is it?

I have about 250 hosts which are inconsistently named. So writing individual translations for each hostname is not really an option.

Thanks in advance!
Sven

If you set all the translation rules to the same configuration (lower or upper case), then you need only to create all hosts inside CMK with the same settings.
Only create upper or lower case host names.
If your hosts inside CMK are inconsistently named then you need to fix this. Rename the hosts or recreate it with the correct naming.

The original “problem” is that the host names are case sensitive inside Nagios core.

This might be to late but is is an option just to re-create the hosts?
We use dns names for all our hosts and the piggyback VMware uses the same

sometimes its easier to start over than to create all kinds of rules.

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.