Create Date

hi all,

its possible to find out when I connect a host to Check_MK (Date)?

Best Regards

You can search through the audit.log either by clicking on “pending changes” or “no changes” then “Audit Log” at the top or by going to the file directly in ~/var/check_mk/wato/log/audit.log".

Search for the term “create-host” to find the correct entries.

1 Like

thanks for your answer… so thats the only way?
I want to see in a custom attribute the created date… its a little bit complicated… everytime to read the audit log file…

Write a check plugin that runs on your cmk server that parses the audit.log and use that info as piggyback data for all your hosts. Then you have a whole new service.
I guess you also can add custom attributes via web api. So it would be possible to run a script that parses the audit.log and adds the custom attributes to the hosts via api.

Just be creative! :wink:
You know at which place the information is available, it is up to you to use this info correctly.

1 Like

very good idea :slight_smile:

I’ll do that :slight_smile:

thank you so much