Nagios-Windows本体モニタ



本論文の転送先:http://www.yylog.org/?p=4279
Windowsモニタ端の設定
NSClient++インストール
NSClient++最新版をダウンロードして、ホームページで住所をダウンロードします。http://www.nsclient.org NSCliennt+0-03.90-x 64.msiインストールパッケージを実行して、ウィザードモードのインストールに入り、次のステップをクリックしてください。設置過程は図のように構成されています。Allowed hosts:Nagiosサーバアドレスを設定し、NSClient password:NSClient端とNagiosサーバが通信する時のパスワードを設定して、設定しなくてもいいです。次のステップでインストールが完了します。のインストールが完了すると、WindowsサービスにNSClient+(x 64)のサービスが追加されます。図のように、はこのサービスのダイアログをクリックして、登録項目の「許可サービスとデスクトップのインタラクション」をチェックしてから終了します。は、コマンドラインにおいて、nsclient++SysTray install を実行して、インストールするNSClient+0-03.80-Win 32の下に入って、nsc.iniファイルを編集する。[modules]の項目のすべての.dllファイルのコメントをキャンセルし、CheckWMI.dllとRemoteConfigrations.dllは除外します。[Settings]項からallowed_を削除します。ホーム前のコメントは、Nagiosサーバーのアドレスを記入したり、空にしたりして、自動的にNagiosサーバーに接続させます。は、「NSClient」の項目でポーリング前のコメントを削除し、このポートを有効にします。デフォルトはポート番号は12489です。はコマンドラインのウィンドウを開けて、nsclient+/startを入力してNSClientサービスを起動すればいいです。12489ポートが傍受するかどうかチェックしてください。ポートは傍受して、以上のwindowsクライアントは設定OKです。
Nagiosサーバーの配置
nagios.cfgプロファイルを編集し、cfg_を定義します。file=/usr/local/nagios/etc/objecs/windows 7.cfg芬.Definitions for monight the local(Linux)host cfg_file=/usr/local/nagios/etc/object/local host.cfg_file=/usr/local/nagios/etc/object/192.168.1.60.fg cfg_file=/usr/local/nagios/etc/object/windows 7.cfg复制windows.cnf模式ファイル[root@localhostObjecs"((zhi cp windows.cfg windows 7.cfg修正windows 7.cnfコピーしたモダリティファイル)は、Windows監視対象を定義します。[root@localhostobjecs.⑵objecs.com定義監視クライアントのホストコンピュータdefine host{use windows-server;Inheit default values from a template hostine windows 7;The name weess’re giving to this host.1 My Windows therver;loassity(zhen定義モニタクライアントバージョンdefine service{use generic-service hostuname windows 7 service 7 servicement+Version check mant!CLIENTVERION}クライアント起動時間define serviceを定義します。モニタクライアントCPU使用率define service{use generic-service hostuname windows 7 servicecccd CPU Load checkmand!CPU LOAD!-l 5,80,90-[Muscevice]は、クライアントメモリ使用率define viceを定義します。-c 90}皎定義監視クライアントC:ディスク使用率define service{use generanic-service hostuuname windows 7 servicecd 7 serviced C:\Drive Space check chockchunt!USEDISKSPACE!-l c 80-c 90'sクライアントfidevice定義モニタサービス{use generanic-service hostment!-d SHOW-l W 3 SVC check W 3 SVC checkmand checktwork!SERVICESTATE!-d SHOW-W 3 SVCを定義します。Explorerプロセスモニタdefine service{use genervice-servisthochectchectchement!exe}nagiosプロファイルを確認する[root@localhost~」(菗/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg

Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0
nagiosサービスを再開しますroot@localhost~」(芫servicenagios restort Running configration check...done.Stoping nagios:done.Starting nagios:done.最後にNagios監視システムを調べたら、Windowsクライアントが監視されていることが分かりました。そうすると、windows監視が配置されました。