2017 © Pedro Peláez
 

library icinga-notification

Provides common notification commands for the randomhost/icinga package.

image

randomhost/icinga-notification

Provides common notification commands for the randomhost/icinga package.

  • Monday, May 21, 2018
  • by Chi-Yu
  • Repository
  • 2 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

randomhost/icinga-notification

This package provides a set of common notification commands to a accompany the randomhost/icinga package., (*2)

Usage

NotifyMyAndroid is currently the only available notification plugin but more will follow in the future., (*3)

NotifyMyAndroid

Sends notifications using NotifyMyAndroid., (*4)

Usage example

<?php
namespace randomhost\Icinga\Notification;

require_once '/path/to/vendor/autoload.php';

use randomhost\NotifyMyAndroid\Client as NmaClient;

$nmaClient = new NmaClient();

$notification = new NotifyMyAndroid($nmaClient);
$notification->setOptions(
    getopt(
        $notification->getShortOptions(),
        $notification->getLongOptions()
    )
);
$notification->run();

echo $notification->getMessage();
exit($notification->getCode());

This will instantiate the NotifyMyAndroid notification plugin and send a push notification to the NMA API key provided on the command line., (*5)

Command line parameters

Parameter Description
--type Notification type
--service Service name
--host Host name
--address Host address
--state Service state
--time Notification time
--output Check plugin output
--apikey NotifyMyAndroid API key

License

See LICENSE.txt for full license details., (*6)

The Versions

21/05 2018

dev-master

9999999-dev https://www.random-host.com

Provides common notification commands for the randomhost/icinga package.

  Sources   Download

BSD-3-Clause new-bsd

The Requires

 

The Development Requires

nagios icinga

21/05 2018

0.0.5

0.0.5.0 https://www.random-host.com

Provides common notification commands for the randomhost/icinga package.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

nagios icinga

08/10 2016

0.0.4

0.0.4.0 https://www.random-host.com

Provides common notification commands for the randomhost/icinga package.

  Sources   Download

new-bsd

The Requires

 

The Development Requires

nagios icinga

08/10 2016

0.0.3

0.0.3.0 https://www.random-host.com

Provides common notification commands for the randomhost/icinga package.

  Sources   Download

new-bsd

The Requires

 

The Development Requires

nagios icinga

08/10 2016

0.0.2

0.0.2.0 https://www.random-host.com

Provides common notification commands for the randomhost/icinga package.

  Sources   Download

new-bsd

The Requires

 

The Development Requires

nagios icinga

02/10 2016

0.0.1

0.0.1.0 https://www.random-host.com

Provides common notification commands for the randomhost/icinga package.

  Sources   Download

new-bsd

The Requires

 

The Development Requires

nagios icinga