カスタム検索
tomo.gif (1144 ツバツイツト)line.gif (927 ツバツイツト)line.gif (927 ツバツイツト)line.gif (927 ツバツイツト)To previous pageTo home pageMailing to me

ログをとる方法

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ファイルの読み込みに失敗していました。


To previous pageTo home pageMailing to meJump to Top of pageline.gif (927 ツバツイツト)line.gif (927 ツバツイツト)tomo.gif (1144 ツバツイツト)
カスタム検索


Tweet