1. 程式人生 > 實用技巧 >Zabbix icmp pinger processes more than 75% busy

Zabbix icmp pinger processes more than 75% busy

Zabbix icmp pinger processes more than 75% busy

Zabbix server"Zabbix icmp pinger processes more than 75% busy",之所以出現這個錯誤,因為昨天將模板Template Module ICMP Ping連結到到Template OS Windows by Zabbix agent下和Template OS Linux by Zabbix agent下去了,而又忘記修改引數StartPingers,此時由於只有預設的一個執行緒在在ping,所以出現了這個告警。具體過程如下:

檢查發現引數StartPingers

沒有配置,使用預設的值為1,此引數用於設定啟用icmp協議PING主機方式啟動執行緒數量。如果執行緒數量太小,監控的伺服器數量過多的話,那麼它有可能處於非常繁忙的狀態。我們可以適當的調整其大小值

#grep StartPingers /etc/zabbix/zabbix_server.conf 
### Option: StartPingers
# StartPingers=1

調整引數大小後,重啟Zabbix-Server服務,發現出錯。具體情況如下所示:

# systemctl restart zabbix-server
Job for zabbix-server.service failed because the control process
exited with error code.
See "systemctl status zabbix-server.service" and "journalctl -xe"for details.

檢查錯誤資訊,發現是引數設定錯誤,正確的引數是StartPingers,但是我漏掉了一個s,設定成StartPinger,出現了下面錯誤。修改後,重啟Zabbix-Server服務,解決問題。

# journalctl -xe
..............................................
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Automatic restarting of the unit zabbix-server.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 20 10:13:26 xxxxxx systemd[1]: Stopped Zabbix Server.
-- Subject: Unit zabbix-server.service has finished shutting down
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit zabbix-server.service has finished shutting down.
Aug 20 10:13:26 xxxxxx systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit zabbix-server.service has begun starting up.
Aug 20 10:13:26 xxxxxx zabbix_server[2873831]: zabbix_server [2873831]: unknown parameter "StartPinger"in config file "/etc/zabbix/zabbix_server.conf", line 242
Aug 20 10:13:26 xxxxxx systemd[1]: zabbix-server.service: Control process exited, code=exited status=1
Aug 20 10:13:26 xxxxxx systemd[1]: zabbix-server.service: Failed with result 'exit-code'.
Aug 20 10:13:26 xxxxxx systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
-- 
-- Unit zabbix-server.service has failed.
-- 
-- The result is failed.