Fix logrotate.d/icinga2 file in the Debian package.

Fixes #6322
Split Utility::GetHostName into two functions.

Fixes #6312