Too many processes on Zabbix server   解决办法

新部署的zabbix服务器,上线后在mointoring 页面就有“Too many processes on Zabbix server”的告警。在网上查看了很多资料没能解决。只能按照经验处理

1 ps -axf 查看进程情况,观察一下什么进程比较多。

16838 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: configuration syncer [waiting 60 sec for processes]

16839 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: db watchdog [synced alerts config in 0.001120 sec, idle 60 sec]

16840 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #1 [got 0 values in 0.000004 sec, idle 1 sec]

16842 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #2 [got 0 values in 0.000004 sec, idle 1 sec]

16843 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #3 [got 0 values in 0.000004 sec, idle 1 sec]

16844 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #4 [got 0 values in 0.000004 sec, idle 1 sec]

16845 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #5 [got 3 values in 0.001429 sec, idle 1 sec]

16846 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #6 [got 0 values in 0.000004 sec, idle 1 sec]

16847 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #7 [got 0 values in 0.000004 sec, idle 1 sec]

16848 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #8 [got 0 values in 0.000003 sec, idle 1 sec]

16849 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000004 sec, idle 1 sec]

16850 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: poller #10 [got 0 values in 0.000003 sec, idle 1 sec]

16851 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000027 sec, idle 5 sec]

16852 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for connection]

16853 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection]

16854 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: trapper #3 [processed data in 0.100752 sec, waiting for connection]

16855 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection]

16856 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for connection]

16857 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000004 sec, idle 5 sec]

16858 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: icmp pinger #2 [got 0 values in 0.000004 sec, idle 5 sec]

16859 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: icmp pinger #3 [got 0 values in 0.000004 sec, idle 5 sec]

16860 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: icmp pinger #4 [got 0 values in 0.000005 sec, idle 5 sec]

16861 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: icmp pinger #5 [got 0 values in 0.000003 sec, idle 5 sec]

16862 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: alerter [sent alerts: 0 success, 0 fail in 0.000436 sec, idle 30 sec]

16863 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: housekeeper [deleted 2757 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit it

16864 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: timer #1 [processed 0 triggers, 0 events in 0.000000 sec, 0 maint.periods in 0.000000 sec,

16865 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: http poller #1 [got 0 values in 0.001521 sec, idle 5 sec]

16866 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000441 sec, idle 60 sec]

16867 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: discoverer #2 [processed 0 rules in 0.000576 sec, idle 60 sec]

16868 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: discoverer #3 [processed 0 rules in 0.000486 sec, idle 60 sec]

16869 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: discoverer #4 [processed 0 rules in 0.000771 sec, idle 60 sec]

16870 ?        S      0:00  \_ /usr/local/sbin/zabbix_server: discoverer #5 [processed 0 rules in 0.000450 sec, idle 60 sec]

观察我自己的服务器的时候,发现进程最多的居然就是zabbix自己的服务。

2 按照以往的经验,服务启动的进程数应该都可以在配置文件中配置。于是查看zabbix的配置文件,果然找到类似配置参数

#高级参数

### Option: StartPollers

#   Number of pre-forked instances of pollers.

#

# Mandatory: no

# Range: 0-1000

# Default:

#说明;初始化时,启动子进程数量,数量越多,则服务端吞吐能力越强,对系统资源消耗越大

# StartPollers=5

### Option: StartDiscoverers

#   Number of pre-forked instances of discoverers.

#

# Mandatory: no

# Range: 0-250

# Default:

说明:用于设置自动发现主机的线程数量,若单台代理所管理机器超过500台,可以考虑加大此数值(仅适用于直接AGENT场景)

# StartDiscoverers=1

类似以上的一些参数,具体情况要看ps的结果来对照参数处理。我的这些参数不知道什么原因导致的,都特别的高,实际上应该按照需要调整。

把对应进程的参数调整好后,重启zabbix服务即可解决问题。

时间: 2024-12-29 01:42:52

Too many processes on Zabbix server   解决办法的相关文章

Zabbix监控虚拟主机告警Lack of free swap space on Zabbix server解决办法

Zabbix监控虚拟机的时候有时候会报一下告警 是因为Zabbix监控没有考虑虚拟主机的交换空间情况 解决办法修改配置 原文地址:https://www.cnblogs.com/minseo/p/9120084.html

phpstudy无法访问主页,提示You don't have permission to access / on this server解决办法

1.输入localhost提示:You don't have permission to access / on this server. 新版phpStudy为了安全,取消Apache和nginx列出目录内容. phpStudy如何禁止或允许站点目录列表 请使用『其他选项菜单』-『phpStudy设置』-『允许目录列表』,打上对勾表示允许目录列表,去掉对勾表示禁止目录列表. 2.配置多域名的虚拟主机总是失败,提示You don't have permission to access / on

mysql故障---is not allowed to connect to this MySQL server解决办法

is not allowed to connect to this MySQL server解决办法 ERROR 1130: Host '192.168.1.3′ is not allowed to connect to this MySQL server这是告诉你没有权限连接指定IP的主机,下面我们来看看解决办法. 处理方法有二个 1.(如何解决客户端与服务器端的连接(mysql) :xxx.xxx.xxx.xxx is not allowed to connect to this mysql

VS用C语言连接SQL Server解决办法

我在CSDN论坛上问了这个问题,但是没有人理我,折腾了半天终于搞定了. 原帖链接,没有解决办法,下面提供解决办法. 确认打开了SQL Server服务 首先,从我的电脑->右键->管理进入 确认SQL Server服务打开. 也可以使用cmd(命令行窗口),用管理员身份打开cmd,输入 net start [服务名] 效果如下图所示: 如果服务名中间有空格,请务必加上双引号. 配置ODBC 具体方法见链接. 请一定要注意,代码中的服务器名称必须是数据源的名称,也就是连接中的"SQLS

is not allowed to connect to this MySQL server解决办法

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; myuser:代表你要使用的用户 mypassword:代表你的密码

SpringMVC------在运行项目的时候run as 里面没有run on server 解决办法

1.第一步:选中项目,右键,点击Properties 2.第二步:在查找框里输入Project Facets ,点击蓝色的,如图: 第三步:选中Dynamic Web Module,应用就可以了 转载: https://blog.csdn.net/wang_wen_fang/article/details/79193008 原文地址:https://www.cnblogs.com/tianhengblogs/p/9575730.html

zabbix错误和解决办法

#错误 "You are not able to choose some of the languages, because locales for them are not installed on the web server." 解决办法: 原因是找不到语言包 $ sudo dpkg-reconfigure locales  #查看系统已经安装的语言包 $ sudo vim /usr/share/zabbix/include/locales.inc.php   #找到源码文件 在

cosbench read异常解决办法。 Unable to verify integrity of data download. Client calculated content hash didn't match hash calculated by Amazon S3. The data may be corrupt.

问题:cosbench read测试failed 报错如下 Cosbench v0.4.2.c4 against Ceph (Hammer) / radosgw / HAproxy's HTTP end point. All seems fine except that at the end of the read test, it failed the task and gave following errors com.amazonaws.AmazonClientException: Una

zabbix server is not running解决办法

在安装Zabbix后,发现一直提示zabbix server is not running这个报错, 首先查看Zabbix的日志,tail /tmp/zabbix_server.log,发现一直提示以下报错 肯定是没有数据库的访问权限了,加上权限就OK了