i installed the icinga2 agent on a windows box.
Certificate is signed and the menu shows the hostname in the following format:
This works so far.
Now i wanted to add an snmp trap alerting, using snmptrapd and /var/run/icinga2/cmd/icinga2.cmd.
Sadly it resolves the hostname to hostname.domain.local thus it isn’t matching the hostname configured in icinga correctly and the state will not update.
Of course i could parse the name in a script but i would prefer handling each hostname case insensitive. Is there a way to do this?