歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> [nagios監控] NRPE: Unable to read output的原因及排除

[nagios監控] NRPE: Unable to read output的原因及排除

日期:2017/3/1 15:37:17   编辑:關於Linux
[nagios監控] NRPE: Unable to read output的原因及排除 nrpe被監控端運行定義命令正常,監控端運行 #/usr/local/nagios/libexec/check_nrpe -H 117.121.9.200 -c check_oracle_tablespace 錯誤提示: NRPE: Unable to read output 監控端運行:#/usr/local/nagios/libexec/check_nrpe -H 117.121.9.200 可以返回nrpe版本信息,說明nrpe通信正常。 被監控端 check_oracle_tablespace 的定義: /usr/local/nagios/etc/nrpe.cfg command[check_oracle_tablespace]=/usr/bin/sudo /usr/local/nagios/libexec/check_tablespace.sh 腳本路徑沒有錯,同時擁有執行權限。經過認真排查,應該編輯 /etc/sudoers文件 #vim /etc/sudoers nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_tablespace.sh 同時得注釋掉一下行,表示不需要控制終端 #Defaults requiretty 否則,仍然會出現:NRPE: Unable to read output 錯誤
Copyright © Linux教程網 All Rights Reserved