File send_mail_nagios of Package nagios-eventhandlers-send_mail

# 'notify-host-by-email' command definition
define command {
    command_name    notify-host-by-email
    command_line    /usr/lib/nagios/plugins/eventhandler/send_mail \
                    --config "/etc/nagios/send_mail.cfg" \
                    --notificationtype "$NOTIFICATIONTYPE$" \
                    --state "$HOSTSTATE$" \
                    --hostname "$HOSTNAME$" \
                    --longdatetime "$LONGDATETIME$" \
                    --url "http://localhost/nagios/cgi-bin/extinfo.cgi" \
                    --output "$HOSTOUTPUT$" \
                    --email "$CONTACTEMAIL$" \
                    --authorname "$HOSTACKAUTHORNAME$" \
                    --comment "$HOSTACKCOMMENT$ $HOSTOUTPUT$"
}

# 'notify-service-by-email' command definition
define command {
    command_name    notify-service-by-email
    command_line /usr/lib/nagios/plugins/eventhandler/send_mail \
                 --config "/etc/nagios/send_mail.cfg" \
                 --notificationtype "$NOTIFICATIONTYPE$" \
                 --state "$SERVICESTATE$" \
                 --hostname "$HOSTNAME$" \
                 --longdatetime "$LONGDATETIME$" \
                 --url "http://localhost/nagios/cgi-bin/extinfo.cgi" \
                 --output "$SERVICEOUTPUT$" \
                 --servicename "$SERVICEDESC$" \
                 --longserviceoutput "$LONGSERVICEOUTPUT$" \
                 --email "$CONTACTEMAIL$" \
                 --authorname "$SERVICEACKAUTHORNAME$" \
                 --comment "$SERVICEACKCOMMENT$ $SERVICEOUTPUT$"
}

openSUSE Build Service is sponsored by