Socket
Book a DemoInstallSign in
Socket

notify-by-ses

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notify-by-ses

A script for sending Nagios notifications using SES.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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

  • notify-by-ses is designed to be used along with ansible-nagios.

Keywords

ses

FAQs

Package last updated on 06 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts