瀏覽模式: 普通 | 列表

Nagios 外掛 NagVIs - 讓 nagios 更圖形化了

www.nagvis.org

功能:

Display of single Hosts and Services
Visualize a complete Host- or Servicegroup with one icon
Display the summary state of a Host and all its services
Display only the real problems
Sub-map icons which represent a complete NagVis Map in one icon (drill down)
Visualization of complete IT processes using self drawn graphics
Online documentation of IT environments including current states
Visualisation of network traffic using weathermap lines
Multilingual capabilities
Web configuration interface (WUI)

需求:

NDoutils : 因為 nagvis 需要讀取資料庫,正好搭配 ndoutils 可以將 nagios 的資料、狀態都寫在資料庫裡

需求套件:

[閱讀全文]

nagios+NConf - php的web管理工具

功能:
  • effortlessly maintain a distributed Nagios topology
  • user-friendly web-GUI
  • host & service templates
  • graphical dependency viewer
  • multiple authentication modes
  • Nagios config importer
  • CSV file importer
  • perl database API
  • data schema customizable and expandable
  • runs on Linux / Apache / PHP / MySQL
需求套件

[閱讀全文]

http://nagiosgraph.sourceforge.net/

環境: fedora 12 x64

需要套件:
perl-GD
perl-rrdtool
http://sourceforge.net/projects/nagiosgraph/files/nagiosgraph/
下載 nagiosgraph-1.4.4-1.fc14.noarch.rpm

rpm 安裝後,它會自動重啟nagios,

好像也不用再動什麼就可以了 !!

增加連結在 nagios 的圖形管理介面裡

[閱讀全文]

環境: fedora 12 x64

需要套件:
httpd
mysql-server
安裝:
yum install nagios*
yum install ndoutils*
設定:

建置使用者、資料庫、權限
create databases nagios;

[閱讀全文]

nagios 2 升級到 3 備註


需求套件

apache
php
gcc
gd

安裝需求套件

yum install httpd php gcc glibc glibc-common gd gd-devel


新增使用者

useradd -c nagios -d /usr/local/nagios -s /bin/bash nagios -m

[閱讀全文]

nagios 可以用來監控主機的服務運作狀態,比方說 ping不ping的到、http可不可以瀏覽等等,

以上都是被監控者不需要作什麼額外設定就可以即時被監控得到的,

假如現在我要監控遠端主機的 CPU、硬碟空間、記憶體等等,怎麼作?

Nagios 提供了一個外掛,叫 NRPE (Nagios Remote Plugin Executor),

它可以讓 nagios server 在固定時間去抓 nagios client 被監控的項目回來判斷是否ok。

如何作 :

Nagios Client 端 (被監控者) ------------------------------

[閱讀全文]

標籤: nagios nrpe 監控

Nagios 監控通知概念

host 的 check-host-alive 使用 check_interval 5,每五分鐘間隔檢查,當發生第一次不  ok 時,檢查間隔變為每10秒一次,檢查十次不ok,變為 HARD 狀態發送通知

check_interval                  5
max_check_attempts       10
notification_interval          25

nagios.log

2008-12-02.10:11:45 [1228183905] HOST ALERT: ssorc.tw;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:11:55 [1228183915] HOST ALERT: ssorc.tw;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:12:05 [1228183925] HOST ALERT: ssorc.tw;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:12:15 [1228183935] HOST ALERT: ssorc.tw;DOWN;SOFT;4;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:12:25 [1228183945] HOST ALERT: ssorc.tw;DOWN;SOFT;5;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:12:35 [1228183955] HOST ALERT: ssorc.tw;DOWN;SOFT;6;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:12:45 [1228183965] HOST ALERT: ssorc.tw;DOWN;SOFT;7;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:12:55 [1228183975] HOST ALERT: ssorc.tw;DOWN;SOFT;8;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:13:05 [1228183985] HOST ALERT: ssorc.tw;DOWN;SOFT;9;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:13:15 [1228183995] HOST ALERT: ssorc.tw;DOWN;HARD;10;CRITICAL - Plugin timed out after 10 seconds
2008-12-02.10:13:15 [1228183995] HOST NOTIFICATION: nagios-admin-email-cross;ssorc.tw;DOWN;host-notify-by-email;CRITICAL - Plugin timed out after 10 seconds

當 Host DOWN 狀態,有其它監控服務時,比方說是 HTTP,此時也是 Critical,它只有呈現紅色顯示,並不會發送通知,

[閱讀全文]

標籤: nagios 監控