在 Ubuntu Server 上建置 Nagios 3 和 Cacti 來監測學校 Server 的一些狀態。
不過在 Nagios 3 上卻出現下圖的錯誤訊息[@more@]可是明明就是本機,竟出現這種訊息,依 “CRITICAL – Could not interpret output from ping command” 訊息,在 Google 搜尋了一下,找到了這一篇:
Could not interpret output from ping command – View topic • Nagios Support Forum
解決方式:
1. 更改 ping 的執行權限
原本
# ls -l /bin/ping
-rwxr-xr-x 1 root root 34820 Mar 15 2014 /bin/ping
更改成
# chmod u+s /bin/ping
更改後
# ls -l /bin/ping
-rwsr-xr-x 1 root root 34820 Mar 15 2014 /bin/ping
2. 重新啟動 Nagios 3
# /etc/init.d/nagios3 restart
* Restarting nagios3 monitoring daemon nagios3
[ OK ]