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

* 1. Purpose * 2. Usage * 2.1. CM.com * 2.1.1. Usage Example * 2.1.2. Command Line Parameters * 3. License , (*2)

1. Purpose

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

2. Usage

CmDotCom is currently the only available notification plugin., (*4)

2.1. CM.com

Sends notifications using [CM.com][4]., (*5)

2.1.1. Usage Example

<?php

use randomhost\Icinga\Notification\CmDotCom\Factory;

include $_composer_autoload_path ?? __DIR__.'/../../vendor/autoload.php';

$notification = (new Factory())->getNotification();
$notification
    ->setOptions(
        getopt(
            $notification->getShortOptions(),
            $notification->getLongOptions()
        )
    )
    ->run()
;

echo $notification->getMessage();

exit($notification->getCode());

This will instantiate the CM.com notification plugin and send a text message to the phone number provided on the command line., (*6)

2.1.2. 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
--phone Phone number in international format (e.g. +12065550199)
--apikey CM.com API key

3. License

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

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