How to make CMK forget about a host with same name, but different IP now - fast :)

OK, unti yesterday I had a server under observation. Let’s call it “badserver”. Finally I was able to make all run.

This morning I had to setup a new server on a completely different machine, but same name “badserver”. DNS records have been redirected to the new IP.

If I ping the host on my CMK server, I get the correct IP resolved, the new one.

However, I can see, that cmk --debug -vvn badserver is still using the old IP, hence no services can be enumerated and attempts to establish TLS connections fail.

I was deleting the old host from CMK and inserting the new (same name) again. But that seems to be not sufficient, since CMK works internally with the old IPs.

A cool. RTFM

ckm --update-dns-cache

Solved

2 Likes

Yep. Or in the web interface, while editing the host, there is a button “Update site DNS cache” as well as an item in the “Host” menu [“For all hosts on site …”] “Update DNS Cache”

2 Likes

Actually cmk --update-dns-cache

1 Like

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.