Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

A nagios-notification-google-calendar documentation

nagios-notification-google-calendar is a Nagios-plugin that send Nagios notifications via google calendar SMS reminder

Attention

Google disable SMS notifications for calendar events after June 27, 2015. Therefore after this date this plugin useless.

Installation

  • Obtain your copy of source code from git repository: git clone https://github.com/vint21h/nagios-notification-google-calendar.git. Or download latest release from https://github.com/vint21h/nagios-notification-google-calendar/tags.

  • Run python ./setup.py install from repository source tree or unpacked archive under root user. Or use pip: pip install nagios-notification-google-calendar.

Configuration

  • Read and understand Nagios documentation.

  • Create Nagios commands definitions like this:

# "host-notify-by-sms" command
define command{
    command_name    notify-host-by-sms
    command_line    /usr/bin/notification_google_calendar.py -u $CONTACTNAME$ -m "Host '$HOSTALIAS$' is $HOSTSTATE$ - Info: $HOSTOUTPUT$" -C $CONTACTADDRESS1$ -t $CONTACTADDRESS2$
}

# "service-notify-by-sms" command
define command{
    command_name    notify-by-sms
    command_line    /usr/bin/notification_google_calendar.py -u $CONTACTNAME$ -m "$NOTIFICATIONTYPE$ $HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ $SERVICEOUTPUT$ $LONGDATETIME$" -C $CONTACTADDRESS1$ -t $CONTACTADDRESS2$
}
  • Go to https://code.google.com/apis/console/ and create new project.

  • Enable calendar API for project.

  • Create an OAuth 2.0 client ID for project with Installed application type and download JSON client secrets file.

  • Copy /usr/share/doc/nagios-notification-google-calendar/notification_google_calendar.ini to /etc/nagios with your settings. Attention: nagios user must have notification_google_calendar.ini read permissions, and credentials directory read/write permissions.

  • Modify contacts definitions:
    • Add addressX option to contact definition with contact google calendar ID.

    • Add addressX option to contact definition with contact preferred timezone (in human readable format from TZ database). This is dirty hack, but i don’t know how do this better way.

    • Get and save credentials by run notification_google_calendar.py -g -u USERNAME where USERNAME - nagios contact name.

    • Add commands to the lists of service and host notifications commands for contact.

    • Configure google calendar for mobile devices.

Licensing

nagios-notification-google-calendar is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. For complete license text see COPYING file.

Contacts

Project Website: https://github.com/vint21h/nagios-notification-google-calendar

Author: Alexei Andrushievich <vint21h@vint21h.pp.ua>

For other authors list see AUTHORS file.

Metadata

Release files for nagios-notification-google-calendar 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for nagios-notification-google-calendar 0.3.1
File Size Uploaded
nagios-notification-google-calendar-0.3.1.tar.gz 18.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nagios-notification-google-calendar 0.3.1
File Interpreter ABI Platform
nagios_notification_google_calendar-0.3.1-py2-none-any.whl Python 2 none any Details

Total release size: 41.7 kB

Release files / nagios-notification-google-calendar-0.3.1.tar.gz

Download URL nagios-notification-google-calendar-0.3.1.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
87c3c0b1013363deab4a79e9b4de28101f1e5e774480ce791fbf9044fc0c1186
BLAKE2b-256 checksum
How to use checksums
c96f216ca9a8b3e9260ff6e9a99b8eaebe2fd2c216944a740e25b951c5d76d9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / nagios_notification_google_calendar-0.3.1-py2-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL nagios_notification_google_calendar-0.3.1-py2-none-any.whl
Size 23.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
bca8d30b3432acf685fe65ecee4fffed4fd656509e277e59e64e87f8e97e085e
BLAKE2b-256 checksum
How to use checksums
a8c79a3da233937f48c1c62beb4187276f5b855419a76f0e212e2a595da54ed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.8

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page