Download the PHP package renjiangfeng/rabbitmq-monitor without Composer

On this page you can find all versions of the php package renjiangfeng/rabbitmq-monitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rabbitmq-monitor

PHP版本 - rabbitmq-monitor

简介

rabbitmq-monitor使用PHP实现,配合定时计划任务或者supervisor,对Rabbitmq服务监控预警

功能实现

  1. rabbitmq服务连接是否正常
  2. rabbitmq队列是否存在消息积压

特点

  1. 使用swoole process派生子进程,对rabbitmq服务和队列的消息长度进行监控
  2. 使用redis对队列消息积压的次数进行记录
  3. 当服务需要告警,可使用钉钉/邮件/短信方式预警(目前只实现了钉钉通知)。
  4. 可以单独作为服务使用,也可以与PHP框架无缝结合。

钉钉机器人注意事项

钉钉机器人配置(在PC端群组找智能助手添加自定义机器人),参考地址:https://open.dingtalk.com/document/group/custom-robot-access, 这里 自定义机器人 Webhook 的消息推送,安全设置 自定义关键词是:Error 和 Notice , Webhook 的地址复制出来,里面的access_token就是配中的 钉钉机器人token,需要注意的是管给的调用频率是:每个机器人每分钟最多发送20条消息到群里,如果超过20条,会限流10分钟。

安装

环境依赖:

  1. php >= 7.0
  2. swoole扩展(版本无要求)
  3. redis扩展 >= 2.6
  4. amqp扩展(操作rabbitmq)

docker安装扩展

独立安装:
接入项目:

使用

复制根目录下的config.demo.php,并重命名为:config.php,修改配置文件里的参数。 主要配置说明:

启动

由于rabbitmq-warning不是常驻进程,需使用定时计划任务配合,例: * php /PATH/server start (每分钟执行一次) 参考 server 文件

支持

swoole

laravel 安装使用:


All versions of rabbitmq-monitor with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-swoole Version *
ext-redis Version >=2.6
ext-amqp Version *
enqueue/amqp-ext Version ^0.8
cheprasov/php-redis-client Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package renjiangfeng/rabbitmq-monitor contains the following files

Loading the files please wait ....