Linux

Nagios Alerts via gmail and python

Description:

A simple replacement for the standard Nagios email command. It consists of a Python script to send Nagios Alert Notifications (email) with Gmail using TLS.

Current Version

Last Release Date

June 18, 2009

Compatible With


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
Use at your own risk... See (installation_notes.txt) for instructions. Updated 2008.04.09, corrected issue where script would not send to multiple addresses.
Reviews (1) Add a Review
It is really helpful
by frankhe, April 30, 2012
But the installation note needs some modification, otherwise, the email subject/body will not be correct.

Modified version:
*)notify-host-by-email

command_line /usr/bin/python /usr/lib64/nagios/plugins/send_gmail.py -a $CONTACTEMAIL$ -b "***** Nagios *****nnnnnnNotification Type: $NOTIFICATIONTYPE$nnnHost: $HOSTNAME$nnnState: $HOSTSTATE$nnnAddress: $HOSTADDRESS$nnnInfo: $HOSTOUTPUT$nnnDate/Time: $LONGDATETIME$" -s "** Nagios $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **"

*) notify-service-by-email

command_line /usr/bin/python /usr/lib64/nagios/plugins/send_gmail.py -a $CONTACTEMAIL$ -b "***** Nagios *****nnnnnnNotification Type: $NOTIFICATIONTYPE$nnnService: $SERVICEDESC$nnnHost: $HOSTALIAS$nnnAddress: $HOSTADDRESS$nnnState: $SERVICESTATE$nnnDate/Time: $LONGDATETIME$nnnAdditional Info: $SERVICEOUTPUT$" -s "** Nagios $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.5 (2)
Favorites
0
Views
168,714