OP#436 add nagios contacts

This commit is contained in:
2026-03-01 14:46:40 +01:00
parent 4448200905
commit 7e462fbd37
5 changed files with 82 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ class confdroid_nagios::nagios::objects::commands (
ensure => present,
command_name => 'notify-host-by-email',
command_line => '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTADDRESS$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTADDRESS$ is $HOSTSTATE$ **" $CONTACTEMAIL$',
owner => 'nagions',
owner => 'nagios',
group => 'nagios',
mode => '0640',
target => $ng_target_command,