zabbix cpu核数 windows_Zabbix的应用(6)----常见错误
常見問題:
問題1:Service "sppsvc" (Software Protection) is not running (startup type automatic delayed)
方法1:Win+R → services.msc → 找到Software Protection →修改啟動(延遲啟動)為啟動模式 → 開啟服務 方法2(管理員運行cmd):> sc config sppsvc start= delayed-auto > sc start sppsvc問題2:Service "clr_optimization_v4.0.30319_64" (Microsoft .NET Framework NGEN v4.0.30319_X64) is not running (startup type automatic delayed)
方法:Win+R → services.msc → 找到Software Protection →Microsoft .NET Framework NGEN v4.0.30319_X64
問題3:Windows 部分服務沒有開啟,如圖:
方法:(以管理員身份運行cmd) 鏈接:http://servicedefaults.com/7/shellhwdetection/ :
sc config ShellHWDetection start= auto sc start ShellHWDetection問題4:zabbix connection to database 'zabbix' failed,具體錯誤如下:
$sudo vim /var/log/zabbix/zabbix_server.log1359:20180123:060245.885 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)1359:20180123:060245.885 database is down: reconnecting in 10 seconds1353:20180123:060246.221 error reason for "BU5-SERVER03:system.cpu.util[,softirq]" changed: Value "0.002084" of type "string" is not suitable for value type "Numeric (unsigned)"1353:20180123:060246.221 [Z3005] query failed: [2006] MySQL server has gone away [update items set error='Value "0.002084" of type "string" is not suitable for value type "Numeric (unsigned)"' where itemid=28366;$ sudo vim /var/log/mysql/error.log2018-01-23T00:25:39.741357Z 0 [Note] Shutting down slave threads2018-01-23T00:25:41.741476Z 0 [Note] Forcefully disconnecting 16 remaining clients2018-01-23T00:25:41.741527Z 0 [Warning] /usr/sbin/mysqld: Forcing close of thread 20 user: 'zabbix'2018-01-23T00:25:41.741559Z 0 [Warning] /usr/sbin/mysqld: Forcing close of thread 17 user: 'zabbix'2018-01-23T00:25:41.741575Z 0 [Warning] /usr/sbin/mysqld: Forcing close of thread 22 user: 'zabbix'2018-01-23T00:25:41.741595Z 0 [Warning] /usr/sbin/mysqld: Forcing close of thread 18 user: 'zabbix'從錯誤上看,zabbix無法鏈接mysql,導致日志鏈接不上(mysql.lock),而mysql同時被zabbix進程強制關閉,導致zabbix無法正常訪問,
$ sudo ll /var/lib/mysql/mysql.sockls: cannot access /var/lib/mysql/mysql.sock: No such file or directory $ sudo vim /etc/zabbix/zabbix_server.confDBSocket=/tmp/mysql.sock$ sudo find / -type f -name mysql.sockfind: ?.run/user/1000/gvfs?. Permission denied/tmp/mysql.sock $ sudo ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock $ sudo /etc/init.d/mysqld restart以后如果遇到其他問題在繼續補充!
更多精彩內容,請滑至頂部點擊右上角關注小宅哦~
來源:華為云社區原創 作者:煙花易冷
總結
以上是生活随笔為你收集整理的zabbix cpu核数 windows_Zabbix的应用(6)----常见错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: scatter的用法 随机颜色_plt.
- 下一篇: java 正则首位8或者9的8位数字_P