Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nagios Alert Emailer

Featured Replies

This script is a direct replacement for the basic Nagios emailer. 

 

This perl script provides the following features: 

* Allows you to specify the senders email address 

* Allows you to specify the destination email address/group 

* Allows you to differentiate between Host and Service outages 

* Allows you to connect directly to any SMTP server 

* Doesn't require any local sendmail configuration 

* Uses standard Net::SMTP module 

* Runs within Nagios's embedded perl interpreter 

* Allows you to format the alert message subject and body 

* Allows you to send emails to different alert groups based on nagios configuration 

Configuration steps -------------- 

 

 

I put this in the nagios plugins directory /etc/nagios/libexec but you can put it anywhere. 

 

commands.cfg 



define command{ 


command_name notify-by-email 
command_line $USER1$/send_mail.pl -n "$NOTIFICATIONTYPE$" -h "$HOSTNAME$" -s "$HOSTSTATE$" -a "$HOSTADDRESS$" -i "$HOSTOUTPUT$" -d "$LONGDATETIME$" -e "$CONTACTEMAIL$" 



define command{ 


command_name host-notify-by-email 
command_line $USER1$/send_mail.pl -n "HOST $NOTIFICATIONTYPE$" -h "$HOSTNAME$" -s "$HOSTSTATE$" -a "$HOSTADDRESS$" -i "$HOSTOUTPUT$" -d "$LONGDATETIME$" -e "$CONTACTEMAIL$" 



define command{ 


command_name service-notify-by-email 
command_line $USER1$/send_mail.pl -n "SERVICE $NOTIFICATIONTYPE$" -h "$HOSTNAME$" -s "$SERVICESTATE$" -a "$HOSTADDRESS$" -i "$SERVICEDESC$ - $SERVICEOUTPUT$ - $SERVICECHECKCOMMAND$" -d "$LONGDATETIME$" -e "$CONTACTEMAIL$" 





contacts.cfg 



define contact{ 


contact_name contact 
host_notification_commands host-notify-by-email 
service_notification_commands service-notify-by-email 
email email@address.com 
.... rest of contact details .... 


}


 


send_mail.pl.txt


send_mail.pl.txt

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.