mizzrym/php_send_nsca 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mizzrym/php_send_nsca

最新稳定版本:3.0.3

Composer 安装命令:

composer require mizzrym/php_send_nsca

包简介

PHP implementation of NSCA client

README 文档

README

send nsca implementation in PHP for nagios.

compatibility

For php versions lower than 7.0.0 use v3.0-

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

usage

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

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.

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

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.

统计信息

  • 总下载量: 113.39k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固