$ZBX_SERVER_PORT = '10051'; $ZBX_SERVER_NAME = 'monitor_server'; $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG; 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 登录管理页面 初始用户名 admin 初始密码 zabbix 软件使用 :修改语言 修...
*/5 * * * * /usr/bin/php /www/wwwroot/www.xxx.com/cron/status.cron.php #重载crontab service crond reload 1. 2. 3. 4. 5. 6. 7. 8. 查看PHP路径方法:which php,然后版上面的/usr/local/php/bin/php改成自己PHP路径 status.cron.php为PHP Server Monitor脚本地址,请填写绝对路径 宝塔计时...
319### Option: UserParameter320# User-defined parameter to monitor. There can be several user-defined parameters.321# Format: UserParameter=<key>,<shell command>322# See 'zabbix_agentd' directory for examples.323#324# Mandatory: no325# Default:326# UserParameter=490# Include configuration file...
[root@zabbix-nginx ~]# systemctl start zabbix-agent[root@zabbix-nginx ~]# cd /etc/zabbix/zabbix_agentd.d/[root@zabbix-nginx ~]# vim nginx_monitor.sh#!/bin/bashNGINX_COMMAND=$1CACHEFILE="/tmp/nginx_status.txt"CMD="/usr/bin/curl http://127.0.0.1/nginx_status/"if[ ! -f$CACHEFILE...
2. 在Zabbix Web界面中创建主机。 此主机将代表您的 Linux 计算机。 3. 在接口参数中,添加Agent接口,并指定安装agent的 Linux 计算机的 IP 地址或 DNS 名称。 4. 在模板参数中,键入或选择Linux by Zabbix agent。 Zabbix agent 打开Zabbix agent配置文件(默认路径为/usr/local/etc/zabbix_agentd.conf): ...
Action, 当Trigger符合设定值后,zabbix指定的动作, 如发个邮件给运维,说服务器有问题了。 Zabbix程序组件: zabbix_server,服务端守护进程 zabbix_agentd,agent守护进程 zabbix_proxy,代理服务器 zabbix_database,存储系统,mysql,pgsql zabbix_web,web GUI图形化界面 ...
Linux老司机带你学Zabbix从入门到精通(万字长文) zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案,在企业中有非常全面的应用,本文是Linux运维老司机撰写,一站式帮你解决zabbix的难题。 第1章 zabbix监控 1.1 为什么要监控...
[root@bogon /]# yum install -y mariadb-server # 设置开机自启 [root@bogon /]# systemctl enable mariadb Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service. [root@bogon /]# systemctl enable --now mariadb # (以上...
#关闭防火墙并设置开机不启动 [root@zabbix-server ~]# systemctl disable firewalld Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. 关闭SElinux安全模式 [root@zabbix-server ~]# setenforce 0...
由配置文件可以知道,在Linux系统中需要在zabbix-agent home目录中创建.my.cnf(默认情况下为/var/lib/zabbix),并且文件必须以下有三个字符串: [client] user=zbx_monitor password=`` [root@localhost ~]# cat /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf#template_db_mysql.conf created by Zab...