Customise email notifications
Posted: Mon Mar 12, 2018 1:20 am
I have email notifications for warning and critical situations and it works well.
I would like to customise these notifications where possible starting with the sender address.
Presently all emails received originate from: nagios@localhost.localdomain
I would like the emails to be sent from: myserver@mydomain.com
I thought the networking config was set correctly as per below however the hosts file still has the default settings.
[root@myserver ~]# hostname
myserver.mydomain.com
[root@myserver ~]#
[root@myserver ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
[root@myserver ~]#
I would like to customise these notifications where possible starting with the sender address.
Presently all emails received originate from: nagios@localhost.localdomain
I would like the emails to be sent from: myserver@mydomain.com
I thought the networking config was set correctly as per below however the hosts file still has the default settings.
[root@myserver ~]# hostname
myserver.mydomain.com
[root@myserver ~]#
[root@myserver ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
[root@myserver ~]#