Modified: 28 May 2006
うまくいかないときは、デバッグモードでログをとってみます。
デバッグモードにする
"/usr/local/nagios/etc/nrpe.cfg"を以下のように変更します。
: # DEBUGGING OPTION # This option determines whether or not debugging messages are logged to the # syslog facility. # Values: 0=debugging off, 1=debugging on debug=1 :
ログを見てみる
"/var/log/messages"を見てみます。
: May 28 13:57:26 baimail ntpd[704]: time reset -0.945777 s May 28 13:57:26 baimail ntpd[704]: kernel time discipline status change 41 May 28 13:57:26 baimail ntpd[704]: synchronisation lost May 28 13:58:19 baimail nrpe[871]: Unable to open config file '/usr/local/nagios/etc/nrpe.cfg' for reading May 28 13:58:19 baimail nrpe[871]: Config file '/usr/local/nagios/etc/nrpe.cfg' contained errors, bailing out...起動時に、アクセス権の問題で、configファイルの読み込みに失敗していました。