4

Zabbix经验分享-缺包常见问题处理

 2 years ago
source link: https://blog.51cto.com/u_14483703/5044916
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Zabbix经验分享-缺包常见问题处理

原创

乐维IT君 2022-02-24 14:30:04 ©著作权

文章标签 zabbix zabbix二次开发 运维监控 文章分类 其他 系统/运维 阅读数245

一、部署时

​1、缺少OpenIPMI包

​​Zabbix经验分享-缺包常见问题处理_运维监控

yum install -y OpenIPMI

rpm -ivh OpenIPMI-devel-2.0.16-14.el6.x86_64.rpm

​附:RPM包搜索下载地址:http://rpm.pbone.net/

​​Zabbix经验分享-缺包常见问题处理_zabbix二次开发_02

​​2、缺少libssh2包

​​Zabbix经验分享-缺包常见问题处理_运维监控_03

​rpm -ivh libssh2-devel-1.4.2-1.el6.x86_64.rpm

注:如果包版本不对则要查找相应版本的包,或者编译安装libssh2-1.8.0.tar.gz和ssh2-0.13.tgz

tar vxzf libssh2-1.8.0.tar.gz

cd libssh2-1.8.0

./configure

make install

tar vxzf ssh2-0.13.tgz

cd ssh2-0.13

/usr/local/php/bin/phpize

./configure --with-ssh2

#make install

二、监控时

1、数据库连接报错

connection to database ‘zabbix’ failed:[1040] Too many connections

原因:数据库连接数过低,连接数大于配置的最大连接数

解决方法:扩大数据库连接数

临时(重启数据库失效):登录数据库,执行set global max_connections=2000 (设置最大连接数)

永久:在数据库配置文件上添加 max_connections=2000

2、agent监控报错

agent日志报错:cannot send list of active checks to “192.168.1.23”:host [test] not found

原因:agent主动推送数据到server,查询不到对应的主机名;界面上配置的主机名与agent配置文件中的Hostname不一致导致

解决方法:

方法1、修改界面上该对象的主机名

方法2、调整agent配置文件的Hostname参数与界面一致后,重启agent

3、snmp监控报错

snmp界面报错:snmp time out

原因:根据已配置的snmp 团体名,进行snmp agent 获取数据超时

解决方法:检查设备配置的snmp版本是否与模板配置的一致;配置的团体名是否正常;可在操作系统通过命令snmpwalk进行测试

  • 打赏
  • 收藏
  • 评论
  • 分享
  • 举报

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK