使用 zabbix 监控 uwsgi [英] Monitoring uwsgi with zabbix

查看:48
本文介绍了使用 zabbix 监控 uwsgi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用zabbix监控uwsgi.我发现有一些插件:

I would like to monitor uwsgi using zabbix. I found that there is some plugin for that:

uwsgi --stats-push zabbix:127.0.0.1:10051,myinstance ...

但我不确定它应该如何工作.似乎uwsgi将所有统计信息推送到目标zabbix,但我找不到此统计信息的描述,因此我不知道如何在zabbix上设置项目.

but I'm not sure how it is supposed to work. It seems that uwsgi pushes all the stats to the target zabbix but I can't find a description of this stats, hence I don't know how to set item(s) on zabbix.

目前我没有看到任何东西进入我的 zabbix 实例.

For the moment I don't see anything coming to my zabbix instance.

推荐答案

您需要:

  1. 使用以下命令运行 uwsgi:--plugin zabbix --zabbix-template 并获取实际值uwsgi 配置模板.
  2. 将此模板导入 zabbix 并将其应用到带有 uWSGI 服务器的主机.
  3. 使用以下命令运行 uwsgi:--stats-push zabbix:zabbix.host.name[,prefix to keys]

这篇关于使用 zabbix 监控 uwsgi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆