Hi,
I’m trying to modify mail-service-notification.sh and mail-host-notification.sh located at /etc/icinga2/scripts and add Agent Host Name to the email get sent by icinga but I can’t find a way to do it. I haven’t customized scripts yet so it’s still the default one.
Hmm, sounds like your check is executed on your master instead on your agent as the host in any notification is the corresponding host by default.Therefore, I’d assume your service object(s) does not have
One person other than me who is managing our servers doesn’t know all Machine display name. He wants to know what machine name it is to be able to fix it when I’m away without knowing the purpose of the machine. I fixed the issue by including Host name when I setup agent in Display name. Thanks for all comments
ie:
Host Name: Computer1
Display Name: Build Machine (Computer1)