Windows system >> Windowsの知識 >  >> Linuxシステムチュートリアル >> Linuxチュートリアル >> CentOS 5.5にインストールされているNagios最新バージョン

CentOS 5.5にインストールされているNagios最新バージョン

  
 

この記事は個人練習のインストールの記録ですが、インストールすると、インターネット上の多数のマスターの傑作を参照することができます。

環境:Centos 5.5 32bitNagios 3.2.3nagios-plugin 1.4.15

1、準備:必須パッケージ:httpd、php、gcc、glibc、gd、gd-devel#yum -yインストールgcc gd gd開発devel httpd php set nagiosユーザーグループ/usr /sbin /useradd nagiosセキュリティ設定nologin /usr /sbin /usermod -s /sbin /nologin nagios#Webから使用するnagcmdグループを作成します。インターフェイスは外部コマンドを実行し、このグループにnagios、apacheを追加します。/usr /sbin /groupadd nagcmd /usr /sbin /usermod -G nagcmd nagios /usr /sbin /usermod -G nagcmd apache

2、ダウンロードソースファイルとプラグインcd /usr /local /srcwget [url] http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.2.3.tar.gz [/url] wget [url] http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz [/url]
、Nagiosコアをコンパイルしてインストールします。cd /usr /local /srctar xzf nagios -3.2.3.tar.gzcd nagios-3.2.3./configure– with-command-group = nagcmdmake allmake installmake install-configmake install-commandmake install-webmode#httpd.confの自動設定、テキストの生成/etc/httpd/conf.d/nagios.confに保存します。

4、プラグインをインストールします。tar xzf nagios-plugins-1.4.15.tar.gzcd nagios-plug-1.4.15./configure– with-nagios-user = nagios - with-nagios-group = nagiosmakemake install

5. nagios管理ユーザーを設定して、nagios Webインターフェースhtpasswd -c /usr /local /nagios /etc /htpasswdにログインします。ユーザーnagiosadminservice httpd restart

6、Eメールアドレスを変更します。vi /usr/local/nagios/etc/objects/contacts.cfg

7、nagiosを設定し、httpdブートchkconfig– nagioschkconfig nagios onchkconfig httpdを追加し、構成ファイルが正しいかどうかを確認します。/usr /local /nagios /bin /nagios -v /usr /local /nagios /etc /nagios.cfgservice nagios start注:selinuxが有効になっている場合は、次の2つのステップを構成する必要があります。 :chcon -R -t httpd_sys_content_t /usr /local /nagios /sbin /chcon -R -t httpd_sys_content_t /usr /local /nagios /share /#SElinuxが不要な場合は、/etc /selinux /configを変更して永久に閉じることもできます。 Setenforce 0

#これで、基本的なインストールは完了しました!ブラウザを開いてNaにアクセスします。 Gios

http://ip /nagios

フォローアップでは、Nagiosを使って Windows
、Linux、およびネットワークデバイスを監視する方法を説明します。引き続き&hellipに注意を払います。;。

Copyright © Windowsの知識 All Rights Reserved