Kind of difficult to make assumptions from remote but did I understand you correctly that this command (-t 'PROBLEM') didn't send the mail:
> > This is a sample of how the mail script trigger shows in the debug log: > [2018-04-09 13:55:40 +0300] notice/Process: Running command > '/usr/local/bin/gen-notification-new.py' 'mail' '--service' '-a' > '10.0.6.194' '-b' '' '-c' '' '-d' '2018-04-09 13:55:40' '-i' 'Windows Host > Memory use' '-l' 'MTL-SP13-APP02' '-m' '' '-o' 'No data was received from > host! > could not fetch information from server' '-s' 'WARNING' '-t' 'PROBLEM': > PID 19512 > > But this one (-t 'RECOVERY') did?: > > [2018-04-09 14:02:19 +0300] notice/Process: Running command > '/usr/local/bin/gen-notification-new.py' 'mail' '--service' '-a' > '10.0.6.194' '-b' '' '-c' '' '-d' '2018-04-09 14:02:19' '-i' 'Windows Host > Memory use' '-l' 'MTL-SP13-APP02' '-m' '' '-o' 'Memory usage: > total:49951.92 MB - used: 0.00 MB (0%) - free: 49951.92 MB (100%) ' '-s' > 'OK' '-t' 'RECOVERY': PID 19559 > I don't know if it's just a copy+paste mistake, but I see that the command was split into a newline after the exclamation mark ( No data was received from host! ). Maybe the problem is the exclamation mark? Have you tried to send a manual CRITICAL notification, once with and once without exclamation mark? I'd be surprised though, as this is a typical warning output from NSClient so you most likely have other services returning the same output ( No data was received from host! could not fetch information from server ) and they do work?
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users