HTML Email issues

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

HTML Email issues

Post by nathanplatt »

Hi Everyone,

I'm trying to use a pl script from http://nagios.fm4dd.com/howto/nagios-fl ... ations.htm to enable HTML emails for notifications. I'm on 4.1 Nagios and can't seem to get this to work. I haven't copied their set-up exactly as I didn't want to separate from the commands.cfg. Can you give me any advice?

The plugin is in libexec folder as this is where the other plugins work (and they all work so far)

Commands.cfg

Code: Select all

# 'service-email-html-int-en' command definition
# sends HTML e-mails in English and includes Nagios URL for Intranet access
define command{
        command_name    service-email-html-int-en
        command_line    /usr/local/nagios/libexec/nagios_send_service_mail.pl \
-c "$CONTACTADDRESS1$" \
-f html -u
}
Contacts.cfg

Code: Select all

define contact{
        contact_name                    itsupport
        alias                           IT Support
        service_notification_period     workhours
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,r
        service_notification_commands   notify-service-by-email
        host_notification_commands      service-email-html-int-en
        email                           [email protected]
        }
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: HTML Email issues

Post by nathanplatt »

HI Guys,

I managed to sort this, the macros where off and the permissions to the perl script where incorrect.

Thank you

Nathan
Locked