HTML e-mail (Visit this link)

rating3 from 3 votes
Simple shell script to notify contacts via HTML formatted e-mail. Now 3.x compatible.
This is a Unix /bin/sh script that is designed to be called as a Nagios command. It generates an HTML formatted message and passes it to sendmail (by default) for delivery.

Simply edit the first few variables to suit your system, place this file wherever Nagios can get to it (like /usr/local/nagios/libexec) and then edit your misccommands.cfg file to include two new commands:


define command {
command_name service-notify-html-email
command_line /usr/local/nagios/libexec/notify-html-email.sh service
}
define command {
command_name host-notify-html-email
command_line /usr/local/nagios/libexec/notify-html-email.sh host
}


Now you can use these commands in your contacts.cfg

Version 1.7 includes Nagios 3.x compatibility and style.

I have also included a script to test fire Nagios notifications. It reads the Nagios configuration files, populates the NAGIOS_ variables with test data and executes whatever notification for that contact you have configured. It is not related to notify-html-email but I found it very handy during development and testing so I have included it here.

To use:

nagios-notify-test (contact_id)

Submitted by: mgothard
Hits: 4510
Overall downloads: 624
Added: 2006-02-24 00:00:00
Last Modified: 2009-12-16 16:26:04

Filename Preview Size Description DL
notify-html-email.sh Preview 31 kb HTML e-mail script 1641
nagios-notify-test.sh Preview 6 kb Notification test script 705

Comments


Leave a reply

If you just want to rate the project leave the other field empty.
Even though it would be nice if you would drop a line.

Allowed tags: blockquote, strong, a, b, i, u, code

Captcha Reload Image


  • Daily Nagios Report

    rating from 0 votes
    Do you need to send a daily report to your executives of every host that has been down since midnight? If so then do not look any further.
  • Nagios Extended Notification Mail

    rating from 0 votes
    Replacement of the standard nagios mail-notification command. Sends an multipart mail with HTML and text-body. Now iPhone compatible.
  • NAN - Nagios Notification Daemon

    rating from 0 votes
    Highly configurable Nagios notification aggregator and limiter.
  • Notify with SMS

    rating2.5 from 2 votes
    This plugin sends notification messages as SMS to a GSM phone.
  • Nagios2Asterisk

    rating from 0 votes
    A simple script to generate voicealerts via asterisk
  • NagAmp

    rating from 0 votes
    NagAmp notifies the user about the Nagios status using a Cleware \'ampel\' (trafficlight) device.
  • nagiosNotes

    rating from 0 votes
    A script that fetches notes from a MySQL database and includes them into outgoing notifications
  • SMS Notify - Mediaburst

    rating from 0 votes
    Send SMS text message notifications through the Mediaburst HTTP Gateway
  • HTML e-mail-fr

    rating from 0 votes
    script shell de notification au format HTML adapt? en francais bas? sur le script de Mgothard
  • Simple perl mailer

    rating from 0 votes
    A simple Perl based mailer (uses either SMTP or sendmail)
Catalot 1.3.0 (appkit/v0.9.0-dev, Agavi/1.0.0) | www.netways.de | Legal
© 2009 NETWAYS GmbH. The Program is provided AS IS, without warranty. Licensed under GPLv3.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.