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.
***** Service Monitoring on ~~~~~~.com *****
[Service Name] on [Host Diplay name] is OK!
Info: DISK OK - free space: / 48372 MB (67.51% inode=98%); /data 462118 MB (99.98% inode=100%);
When: 2020-07-23 09:42:44 +0000
Service: [Service Name]
Host: [Master Common Name]
I want to add [Client Common Name]