nagios
文書の過去の版を表示しています。
ubunt18.04にnagios
apt-get install nagios3
password設定
cd /etc/nagios3 ##パスワードを再設定 sudo htpasswd ./htpasswd.users nagiosadmin ##パスワード入力
- /etc/nagios3/nagios.cfg nagiosのメイン設定ファイル。各cfgファイルのパスを設定
ubunt12.04にnagios
apt-get install nagios3
postfix install → internet site
https://www.digitalocean.com/community/tutorials/how-to-install-nagios-on-ubuntu-12-10
設定方法
- /etc/nagios3/nagios.cfg nagiosのメイン設定ファイル。各cfgファイルのパスを設定
- /etc/nagios3/contancts.cfg 異常が発生した際の通知先を指定。
- /etc/nagios3/commands.cfg チェックコマンド一覧。実際に実行されるのはnagios plugin。
- /etc/nagios3/任意ファイル名 /etc/nagios3/nagios.cfg にてファイル名を指定。登録するホスト、サービス一覧
- /etc/nagios-plugins/config/ping.cfg 各種コマンド
/etc/nagios3/conf.d/generic-host_nagios2.cfg
をコピーして設定ファイルを作成し
define host{ use check-host host_name host.xxxxx.jp alias dns address xxx.xxx.xxx.xxx(or fqdn) }
/etc/nagios3/host.cfgを作成 とりあえずhost設定だけで死活監視ができた。
check-hostの内容は・・
/etc/nagios-plugins/config/ping.cfg
を編集
nagios.1570083843.txt.gz · 最終更新: 2019/10/03 15:24 by nabezo