Nagios
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
* [[Nagios]]
ネットワークサービスの監視ツールです。サーバが増えてきて...
#contents
** インストール
http://www.nagios.org/からnagios-2.0.tar.gzをダウンロード...
tar xzvf nagios-2.0.tar.gz
展開されたディレクトリにINSTALLINGファイルがあり、その中...
./configure --prefix=PREFIX --with-cgiurl=CGIURL --with-...
--with-nagios-user=SOMEUSER --with-nagios-grp=SOMEGROUP
とありますので、まずnagios用にユーザとグループを作成しま...
groupadd nagios
useradd -d /usr/local/nagios -g nagios nagios -s /bin/fa...
またINSTALLINGファイルにデフォルトの値が書いてありますの...
./configure --prefix=/usr/local/nagios --with-cgiurl=/na...
--with-htmurl=/nagios --with-nagios-user=nagios
--with-nagios-group=nagios
make all
make install
make install-config #/etc/init.d/nagiosができているはず
make install-init
では次にhttp://www.nagios.org/download/からPluginsをダウ...
tar xzvf nagios-plugins-1.4.tar.gz
./configure --prefix=PREFIX --with-cgiurl=CGIURL --with-...
--with-nagios-grp=SOMEGROUP
make all
make install
また必要に応じて、http://www.nagios.org/download/extras.p...
cp -p bigger.cfg-sample bigger.cfg
cp -p cgi.cfg-sample cgi.cfg
cp -p checkcommands.cfg-sample checkcommands.cfg
cp -p minimal.cfg-sample minimal.cfg
cp -p misccommands.cfg-sample misccommands.cfg
cp -p nagios.cfg-sample nagios.cfg
cp -p resource.cfg-sample resource.cfg
さてブラウザからアクセスしてみましょう。
Error: Could not read object configuration data!
Here are some things you should check in order to resolv...
1. Verify configuration options using the -v command-l...
2. Check the Nagios log file for messages relating to ...
3. Make sure you've compiled the main program and the ...
ん~ どれ押しても上記のメッセージです。nagios.cnfをみて...
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/na...
を実行すると
Total Warnings: 0
Total Errors: 0
とは出てました。エラーがでている場合は、直しておきましょ...
chkconfig --add nagios
/etc/init.d/nagios start
ではブラウザからアクセスしてみましょう。ちょっと前進しま...
It appears as though you do not have permission to view ...
とエラーが出力さてます。cgi.cfgの
use_authentication=1
になっている場合、認証が必要となるので、とりあえずいまは...
nagios.cfgで
date_format=us
を
date_format=iso8601 # (YYYY-MM-DD HH:MM:SS)
admin_email=nagios
を
admin_email=nagios@hoge.ho
minimal.cfgのdefine contact{.. emailを修正
httpd.conf
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/
Alias /nagios "/usr/local/nagios/share/"
<Location /nagios>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd
require valid-user
</Location>
<Location "/usr/local/nagios/sbin/">
Options ExecCGI FollowSymLinks
AllowOverride All
Order allow,deny
Allow from All
</Location>
パスワード作成
cd /usr/local/nagios/etc
htpasswd -cb htpasswd nagiosadmin hogehoge
cgi.cfg
authorized_forで始まる行のコメントをとりnagiosadminを追加
**プラグイン
/usr/local/nagios/libexec/check_http --help
とかしてヘルプを見ておきましょう。
http://cubic9.com/Nagios/に丁寧な解説があります。
**TIPS
***qmailで送信
http://www.b-dash.net/solaris/nagios.html
**未解決
ログを見ているとvar/nagios.logに
Error: Cannot open main configuration file '/usr/local/n...
と出力されてます。なんだ?
** リンク
http://nagios.x-trans.jp/Nagios-doc/JAPANESE/~
[[Nagiosでネットワークを監視する>http://pcweb.mycom.co.jp...
[[Webサーバの24×365監視を実現する>http://www.atmarkit.co....
http://www.atmarkit.co.jp/fnetwork/rensai/netman06/netman...
** 参考書籍
** コメント
-#comment
終了行:
* [[Nagios]]
ネットワークサービスの監視ツールです。サーバが増えてきて...
#contents
** インストール
http://www.nagios.org/からnagios-2.0.tar.gzをダウンロード...
tar xzvf nagios-2.0.tar.gz
展開されたディレクトリにINSTALLINGファイルがあり、その中...
./configure --prefix=PREFIX --with-cgiurl=CGIURL --with-...
--with-nagios-user=SOMEUSER --with-nagios-grp=SOMEGROUP
とありますので、まずnagios用にユーザとグループを作成しま...
groupadd nagios
useradd -d /usr/local/nagios -g nagios nagios -s /bin/fa...
またINSTALLINGファイルにデフォルトの値が書いてありますの...
./configure --prefix=/usr/local/nagios --with-cgiurl=/na...
--with-htmurl=/nagios --with-nagios-user=nagios
--with-nagios-group=nagios
make all
make install
make install-config #/etc/init.d/nagiosができているはず
make install-init
では次にhttp://www.nagios.org/download/からPluginsをダウ...
tar xzvf nagios-plugins-1.4.tar.gz
./configure --prefix=PREFIX --with-cgiurl=CGIURL --with-...
--with-nagios-grp=SOMEGROUP
make all
make install
また必要に応じて、http://www.nagios.org/download/extras.p...
cp -p bigger.cfg-sample bigger.cfg
cp -p cgi.cfg-sample cgi.cfg
cp -p checkcommands.cfg-sample checkcommands.cfg
cp -p minimal.cfg-sample minimal.cfg
cp -p misccommands.cfg-sample misccommands.cfg
cp -p nagios.cfg-sample nagios.cfg
cp -p resource.cfg-sample resource.cfg
さてブラウザからアクセスしてみましょう。
Error: Could not read object configuration data!
Here are some things you should check in order to resolv...
1. Verify configuration options using the -v command-l...
2. Check the Nagios log file for messages relating to ...
3. Make sure you've compiled the main program and the ...
ん~ どれ押しても上記のメッセージです。nagios.cnfをみて...
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/na...
を実行すると
Total Warnings: 0
Total Errors: 0
とは出てました。エラーがでている場合は、直しておきましょ...
chkconfig --add nagios
/etc/init.d/nagios start
ではブラウザからアクセスしてみましょう。ちょっと前進しま...
It appears as though you do not have permission to view ...
とエラーが出力さてます。cgi.cfgの
use_authentication=1
になっている場合、認証が必要となるので、とりあえずいまは...
nagios.cfgで
date_format=us
を
date_format=iso8601 # (YYYY-MM-DD HH:MM:SS)
admin_email=nagios
を
admin_email=nagios@hoge.ho
minimal.cfgのdefine contact{.. emailを修正
httpd.conf
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/
Alias /nagios "/usr/local/nagios/share/"
<Location /nagios>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd
require valid-user
</Location>
<Location "/usr/local/nagios/sbin/">
Options ExecCGI FollowSymLinks
AllowOverride All
Order allow,deny
Allow from All
</Location>
パスワード作成
cd /usr/local/nagios/etc
htpasswd -cb htpasswd nagiosadmin hogehoge
cgi.cfg
authorized_forで始まる行のコメントをとりnagiosadminを追加
**プラグイン
/usr/local/nagios/libexec/check_http --help
とかしてヘルプを見ておきましょう。
http://cubic9.com/Nagios/に丁寧な解説があります。
**TIPS
***qmailで送信
http://www.b-dash.net/solaris/nagios.html
**未解決
ログを見ているとvar/nagios.logに
Error: Cannot open main configuration file '/usr/local/n...
と出力されてます。なんだ?
** リンク
http://nagios.x-trans.jp/Nagios-doc/JAPANESE/~
[[Nagiosでネットワークを監視する>http://pcweb.mycom.co.jp...
[[Webサーバの24×365監視を実現する>http://www.atmarkit.co....
http://www.atmarkit.co.jp/fnetwork/rensai/netman06/netman...
** 参考書籍
** コメント
-#comment
ページ名: