HTML e-mail (Visit this link)
3 from 3 votesSimple 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:
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:
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 | ![]() |
31 kb | HTML e-mail script | 1641 |
| nagios-notify-test.sh | ![]() |
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.
-
Daily Nagios Report
from 0 votesDo 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
from 0 votesReplacement of the standard nagios mail-notification command. Sends an multipart mail with HTML and text-body. Now iPhone compatible. -
NAN - Nagios Notification Daemon
from 0 votesHighly configurable Nagios notification aggregator and limiter. -
Notify with SMS
2.5 from 2 votesThis plugin sends notification messages as SMS to a GSM phone. -
Nagios2Asterisk
from 0 votesA simple script to generate voicealerts via asterisk
-
NagAmp
from 0 votesNagAmp notifies the user about the Nagios status using a Cleware \'ampel\' (trafficlight) device. -
nagiosNotes
from 0 votesA script that fetches notes from a MySQL database and includes them into outgoing notifications -
SMS Notify - Mediaburst
from 0 votesSend SMS text message notifications through the Mediaburst HTTP Gateway -
HTML e-mail-fr
from 0 votesscript shell de notification au format HTML adapt? en francais bas? sur le script de Mgothard -
Simple perl mailer
from 0 votesA simple Perl based mailer (uses either SMTP or sendmail)




