Hi guys!
I have a problem on my icinga2 server about sending email notification. As of this moment it sends email whenever a servicce is OK, WARNING, CRITICAL, and UNKNOWN but when I"m trying to custom message (with comment) I can't receive any message from icinga2...
Here's the log on /etc/icinga2/icinga3.log
[2016-01-20 09:07:24 +0000] information/ExternalCommandListener: Executing external command: [1453280844] SEND_CUSTOM_SVC_NOTIFICATION;vine;JMX Heap;0;icingaadmin;Check this!
[2016-01-20 09:07:24 +0000] information/Checkable: Checking for configured notifications for object 'vine!JMX Heap'
[2016-01-20 09:07:24 +0000] information/Notification: Sending notification 'vine!JMX Heap!mail-icingaadmin' for user 'icingaadmin'
[2016-01-20 09:07:24 +0000] information/Notification: Completed sending notification 'vine!JMX Heap!mail-icingaadmin' for checkable 'vine!JMX Heap'
[2016-01-20 09:07:24 +0000] warning/PluginNotificationTask: Notification command for object 'vine!JMX Heap' (PID: 6872, arguments: '/etc/icinga2/scripts/mail-service-notification.sh') terminated with exit code 36, output: mail: cannot stat `/root/.mail': Permission denied
mail: Cannot open `/root/.mailrc': Permission denied
mail: cannot send message: Process exited with a non-zero status
mail: Cannot open file /root/dead.letter: Permission denied
I don't understand the problem because I new in icinga. I hope you can help me out on this... Thanks!
I have a problem on my icinga2 server about sending email notification. As of this moment it sends email whenever a servicce is OK, WARNING, CRITICAL, and UNKNOWN but when I"m trying to custom message (with comment) I can't receive any message from icinga2...
Here's the log on /etc/icinga2/icinga3.log
[2016-01-20 09:07:24 +0000] information/ExternalCommandListener: Executing external command: [1453280844] SEND_CUSTOM_SVC_NOTIFICATION;vine;JMX Heap;0;icingaadmin;Check this!
[2016-01-20 09:07:24 +0000] information/Checkable: Checking for configured notifications for object 'vine!JMX Heap'
[2016-01-20 09:07:24 +0000] information/Notification: Sending notification 'vine!JMX Heap!mail-icingaadmin' for user 'icingaadmin'
[2016-01-20 09:07:24 +0000] information/Notification: Completed sending notification 'vine!JMX Heap!mail-icingaadmin' for checkable 'vine!JMX Heap'
[2016-01-20 09:07:24 +0000] warning/PluginNotificationTask: Notification command for object 'vine!JMX Heap' (PID: 6872, arguments: '/etc/icinga2/scripts/mail-service-notification.sh') terminated with exit code 36, output: mail: cannot stat `/root/.mail': Permission denied
mail: Cannot open `/root/.mailrc': Permission denied
mail: cannot send message: Process exited with a non-zero status
mail: Cannot open file /root/dead.letter: Permission denied
I don't understand the problem because I new in icinga. I hope you can help me out on this... Thanks!
