Execvpe(/etc/icinga2/scripts/mail-service-notification.sh) failed: Permission denied

  • Director version (System - About): 1.7.2
  • Icinga Web 2 version and modules (System - About): 2.8.2
  • Icinga 2 version (icinga2 --version): 2.12.3
  • Operating System and version: CentOS 7
  • Webserver, PHP versions: Webserver httpd, PHP 7.3.20

Hello,

W have a Problem that when Icinga will send mail host notification it works perfect but when Icinga will send mail service notification the following error come:

[2021-06-30 14:40:42 +0200] warning/PluginNotificationTask: Notification command for object ‘srv-sec.local!Memory Check’ (PID: 28668, arguments: ‘/etc/icinga2/scripts/mail-service-notification.sh’ ‘-d’ ‘2021-06-30 14:40:42 +0200’ ‘-e’ ‘Memory Check’ ‘-l’ ‘srv-sec.local’ ‘-n’ ‘srv-sec.local’ ‘-o’ ‘MEMORY OK - 72.5091% free’ ‘-r’ ‘ouremail@address.de’ ‘-s’ ‘OK’ ‘-t’ ‘CUSTOM’ ‘-u’ ‘Memory Check’) terminated with exit code 128, output: execvpe(/etc/icinga2/scripts/mail-service-notification.sh) failed: Permission denied

The two Script File have the same Permission, anyone can help?

Hello @Monitor2021!

What does ls -lha /etc/icinga2/scripts say?

Best,
AK

We discuss this on Github