2017 © Pedro Peláez
 

library php_send_nsca

PHP implementation of NSCA client

image

mizzrym/php_send_nsca

PHP implementation of NSCA client

  • Thursday, June 7, 2018
  • by nueaf
  • Repository
  • 2 Watchers
  • 3 Stars
  • 564 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 10 Versions
  • 29 % Grown

The README.md

php send nsca

send nsca implementation in PHP for nagios., (*1)

compatibility

For php versions lower than 7.0.0 use v3.0-, (*2)

No support for php versions lower than 5.3. C'mon guys, it's 2019., (*3)

usage

If you don't know exactly what kind of encryptor you want to use, make use of the SendNscaFactory., (*4)

You have to provide a connection string like 'nagios.local', a cipher and a password. There is a list of constants for the ciphers available in interfaces/Ciphers.php, but you can also just copy&paste the integer value from your nsca configuration, since they match the constants., (*5)

If you know what you're doing you can also construct SendNsca yourself. You have to pick from three encryptors however. - use the XorEncryptor for Xor Encryption only - use the OpenSslEncryptor for DES and Triple-DES encryption - use the LegacyEncryptor for anything else, but keep in mind that it uses the mcrypt extension which was dropped in php 7.2, (*6)

important

"Be aware of bugs in the following code. I've only proved it correct, not tested it". Of course, it's not that kind of extreme, but be aware that i've only tested the code in my environment, where we only use triple DES encryption with NSCA. If you use any other kind of encryption consider yourself a testsubject. Also check how the encryption is called in PHPs mcrypt extension on your system. I've encountered a really old SuSE box where the name of the triple DES encryption in mcrypt was different from the newer debian boxes., (*7)

The Versions

07/06 2018

dev-master

9999999-dev

PHP implementation of NSCA client

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

07/06 2018

2.0.4

2.0.4.0

PHP implementation of NSCA client

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

06/06 2018

2.0.3

2.0.3.0

PHP implementation of NSCA client

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

27/12 2017

2.0.2

2.0.2.0

PHP implementation of NSCA client

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

26/12 2017

2.0.1

2.0.1.0

PHP implementation of NSCA client

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

23/10 2017

dev-openssl

dev-openssl

PHP implementation of NSCA client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

29/07 2017

dev-ISSUE-9

dev-ISSUE-9

PHP implementation of NSCA client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

13/07 2017

1.1.3

1.1.3.0

PHP implementation of NSCA client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

11/07 2017

1.1.2

1.1.2.0

PHP implementation of NSCA client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

10/07 2016

dev-patch-1

dev-patch-1

NSCA

  Sources   Download

GPL-3.0

The Requires

  • php >=5.3.0