Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

npm/notify-by-ses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notify-by-SES

Send Nagios notifications using SES as the email transport.

Usage

  • npm install notify-by-ses -g
  • use the following configuration as a jumping off point in Nagios:
# contact configuration file used by ansible-nagios.
define contact {
  contact_name                             ses
  alias                                    SES Pseudo-Contact
  service_notification_period              24x7
  host_notification_period                 24x7
  service_notification_options             w,u,c,r
  host_notification_options                d,u,r
  service_notification_commands            notify-by-ses-service
  host_notification_commands               notify-by-ses-host
  pager                                    {{nagios_admin_email}}
}

define command {
  command_name    notify-by-ses-service
  command_line   /usr/bin/notify-by-ses -k "{{nagios_aws_access_key_id}}" -s "{{nagios_aws_access_key_secret}}" -n "$NOTIFICATIONTYPE$" -h "$HOSTNAME$" -t "$SERVICESTATE$" -d "$SERVICEDISPLAYNAME$" -a "$HOSTADDRESS$" -o "$SERVICEOUTPUT$" -p "$CONTACTPAGER$"
}

define command {
  command_name    notify-by-ses-host
  command_line   /usr/bin/notify-by-ses -y Host -k "{{nagios_aws_access_key_id}}" -s "{{nagios_aws_access_key_secret}}" -n "$NOTIFICATIONTYPE$" -h "$HOSTNAME$" -t "$HOSTSTATE$" -d "$HOSTDISPLAYNAME$" -a "$HOSTADDRESS$" -o "$HOSTOUTPUT$" -p "$CONTACTPAGER$"
}

Configuration Options

  • -r: use the -r flag to specify an AWS region, defaults to 'email.us-east-1.amazonaws.com'.

Using With Ansible

About

A script for sending Nagios notifications using SES.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published