[수정] Opsview 설치 방법 (Nagios enhancement)

junilove의 이미지

09.8.6 설치과정에 오류가 있어 수정하였습니다.
09.11.27 3.5.0 버전이 발표되어, 이에 맞게 수정하였습니다.
09.12.21 SMS 문자발송 내용을 추가하였습니다.

Nagios(http://www.nagios.org/)가 설치방법이 약간 어려운점이 없지 않아 여러 확장 프로그램중에서 opsview를 추천받아(http://kldp.org/node/106520#comment-492950) 테스트를 진행하였습니다.

참조 문서 : http://docs.opsview.org/doku.php?id=opsview-community:centos-installation

간단한 목표는 아래와 같습니다.
- 리눅스(90%)/윈도우(10%) 서버에 대해 상태 및 성능 모니터링
- 네트워크 스위치/라우터의 트래픽 모니터링
- 장애 발생시 이력(이벤트) 기록 가능(또는 관리)

Firefox에서만 이미지가 보이네요.

간단한 nagios의 구성은 다음과 같다.

Opsview의 구성은 다음과 같다.

참조 : http://docs.opsview.org/doku.php?id=opsview-community:architecture

1. Opsview 설치

Yum 설정(i386 을 기준으로 작성함)

[root@localhost ~]# rpm -Uvh <a href="http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm" class="bb-url" rel="nofollow"><a href="http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm" rel="nofollow">http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm</a></a>
[root@localhost ~]# rpm -Uvh <a href="http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm" class="bb-url" rel="nofollow">http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm</a>
[root@localhost ~]# vi /etc/yum.repos.d/opsview.repo 

[opsview]
name = Opsview
baseurl = <a href="http://downloads.opsera.com/opsview/yum/community/centos/5/$basearch
enabled" rel="nofollow">http://downloads.opsera.com/opsview/yum/community/centos/5/$basearch
enabled</a> = 1
protect = 0
gpgcheck = 0

패키지 설치

[root@localhost ~]# yum install mod_ssl openssl-devel rrdtool dejavu-lgc-fonts
[root@localhost ~]# yum install opsview 

설치되는 패키지 목록
opsview-3.5.0.3643-1.ct5
opsview-base-3.5.0.3643-1.ct5
opsview-core-3.5.0.3643-1.ct5
opsview-perl-3.5.0.256-1.ct5
opsview-reports-2.2.2.251-1.ct5
opsview-web-3.5.0.3643-1.ct5

DB설정 준비 (먼저 MySQL가 실행되고 있고, DB root 패스워드를 알고 있어야 한다.)

[root@localhost ~]# su - nagios
[nagios@localhost ~]$ vi /usr/local/nagios/etc/opsview.conf

$dbpasswd = "changeme"                     -> 자동으로 생성될 db 유저의 비밀번호를 지정한다.
$runtime_dbpasswd = "1q2w3e";
$odw_dbpasswd = "1q2w3e";
$reports_dbpasswd = "1q2w3e";

퍼미션이 필요한 Opsview MySQL 유저 설정(명령결과에 아무런 메시지가 없는게 정상)
[nagios@localhost ~]$ /usr/local/nagios/bin/db_mysql -u opsview -p비밀번호

필요한 DB설치(명령결과에 아무런 메시지가 없는게 정상)

[nagios@localhost ~]$ /usr/local/nagios/bin/db_opsview db_install
[nagios@localhost ~]$ /usr/local/nagios/bin/db_runtime db_install
[nagios@localhost ~]$ /usr/local/nagios/bin/db_odw db_install
[nagios@localhost ~]$ /usr/local/nagios/bin/db_reports db_install

Opsview와 Nagio를 실행하는데 필요한 필수 파일 생성

[nagios@localhost ~]$ /usr/local/nagios/bin/rc.opsview gen_config
Fri Nov 27 18:35:27 2009 Starting
Fri Nov 27 18:35:27 2009 --> Writing config files for Master Monitoring Server
Fri Nov 27 18:35:27 2009 28 commands written to checkcommands.cfg
Fri Nov 27 18:35:27 2009 16 service definitions written to services.cfg
Fri Nov 27 18:35:27 2009 1 hosts written to hosts.cfg
Fri Nov 27 18:35:27 2009 1 hostgroups written to hostgroups.cfg
Fri Nov 27 18:35:27 2009 1 contacts written to contacts.cfg
Fri Nov 27 18:35:27 2009 1 contacts written to htpasswd.users
Fri Nov 27 18:35:27 2009 3 groups written to contactgroups.cfg
Written nagios.cfg
Written cgi.cfg
Written misccommands.cfg
Written timeperiods.cfg
Written snmptraps.cfg
Written nsca.cfg
Written send_nsca.cfg
Written ndo2db.cfg
Written ndomod.cfg
Fri Nov 27 18:35:27 2009 0 dependencies written to services.cfg
 
Nagios config re-generated in 0.717 seconds

root권한으로 돌아와서 웹 서버 실행
[nagios@localhost ~]$ exit
logout
[root@localhost ~]# /etc/init.d/opsview-web start
Starting opsview-web: You can connect to your server at http://localhost.localdomain:3000

프로세스 확인

[root@localhost ~]# ps -ef | grep nagios | grep -v grep
nagios    6226     1  0 18:28 ?        00:00:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
nagios    6377     1  0 18:28 ?        00:00:00 master.pl
nagios    9804     1  0 18:35 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios    9805     1  0 18:35 ?        00:00:00 import_ndologsd
nagios    9807     1  0 18:35 ?        00:00:00 /usr/local/nagios/bin/nagios -uxd /usr/local/nagios/etc/nagios.cfg
nagios    9810     1  0 18:35 ?        00:00:00 opsviewd
nagios    9812     1  0 18:35 ?        00:00:00 /usr/local/nagios/bin/nsca -c /usr/local/nagios/etc/nsca.cfg --single
nagios   10005     1  0 18:36 ?        00:00:01 /usr/bin/perl -w script/opsview_web_server.pl -f -b --pidfile /var/run/opsview/opsview-web.pid

웹 브라우져로 접속
http://your.server:3000/

username: admin
password: initial


모니터링 대상 서버에 에이전트 설치 (CentOS 5.3, i386 기준)
YUM 작업

[root@localhost ~]# vi /etc/yum.repos.d/opsview.repo 
[opsview]
name = Opsview
baseurl = <a href="http://downloads.opsera.com/opsview/yum/community/centos/5/$basearch
enabled" rel="nofollow">http://downloads.opsera.com/opsview/yum/community/centos/5/$basearch
enabled</a> = 1
protect = 0
gpgcheck = 0
exclude = opsview-base

Agent 패키지 설치 (i386 환경 기준)

[root@localhost ~]# yum install opsview-agent
  Installing     : libmcrypt                                       [ 1/3] 
  Installing     : libtool-ltdl                                      [ 2/3] 
  Installing     : opsview-base                                    [3/3] 
NRPE is not running
NRPE started

[root@localhost ~]# ps -ef | grep nagio
nagios    3098     1  0 02:34 ?        00:00:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
root      3103  2690  0 02:34 pts/0    00:00:00 grep nagio

WEB GUI에 로그인 한 후 Configuration -> Host 에서 추가하면 된다.
(모니터링 설정에 대해서는 추후에 작성한다. 사실...이게 어려운 것이다. Nagios 3 버전에 대한 원서가 2권 나와있음.)

WEB GUI의 사용방법은 다음 링크를 참조한다.
http://docs.opsview.org/doku.php?id=opsview-community:quickstart

2. 문제 해결
에러: checking for SSL headers… configure: error: Cannot find ssl headers
해결책: openssl-devel 패키지를 설치한다.

에러 : Error - Could not complete SSL handshake
해결책 : 다음 파일을 점검하여 ACL이 걸려있지 않는지 확인한다.
/etc/xinetd.d/nrpe, /etc/hosts.allow, /etc/hosts.deny

에러 : It appears as though you do not have permission to view information for this service...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
해결책 : 아직 알수 없음, 깔끔한 상태에서 opsview를 재설치해볼것

에러 : Connection refused or timed out
해결책 : 방화벽(iptables, tcp wrapper) 정책에 차단되고 있지 않는지 확인한다.

에러 : check_http를 이용한 감시에서 HTTP CRITICAL - Unable to open TCP socket
해결책 : check_http -H 127.0.0.1 -p 웹포트

3. 참조 :
The Opsview Quick Start Guide
http://docs.opsview.org/doku.php?id=opsview3.0:quickstart

Nagios NRPE to Monitor Remote Linux Server
http://www.kernelhardware.org/nagios-nrpe-to-monitor-remote-linux-server/

Monitor a Remote Red Hat Based Linux Server with Nagios
http://docs.cslabs.clarkson.edu/wiki/Monitor_a_Remote_Red_Hat_Based_Linux_Server_with_Nagios#Install_Needed_Packages

Install NRPE in Linux
http://felipeferreira.net/?p=61

GridMonitoringNcgYaimTutorial
https://twiki.cern.ch/twiki/bin/view/EGEE/GridMonitoringNcgYaimTutorial

The geek stuff Nagios tutorial
http://www.thegeekstuff.com/tag/nagios/

한 일주일 정도 매달렸는데... 단점이 있습니다.

현재 파악된 문제점
1. 느린 웹UI 속도 -> prefork 설정을 추가해주면 된다.
참조 : http://docs.opsview.org/doku.php?id=opsview-community:prefork

/etc/init.d/opsview-web stop
vi /usr/local/nagios/etc/opsview.conf 해서 1; 윗줄에 아래와 같이 추가
 
$use_prefork = 1;
1;
 
/etc/init.d/opsview-web start

2. 설정이 복잡합 -> 동일한 서버군이라면 1대에 대해 설정후 복사하면 됨
3. 성능 모니터링 셋팅 하기가 어려움 -> 모니터링할 서버에 SNMP를 설정해야하는데 아직 정확하게 파악못함. 에이전트에서 해주었으면 좋겠는데...

-----------
091130 추가할 내용
- 호스트 추가, 서비스 추가, 연락(메일,SMS 문자) 추가방법

연락(메일,SMS 문자) 추가방법
--------------------------

LGDACOM SMS 문자발송 서비스 기준이다.

먼저 문자발송을 위한 스크립트를 작성하여, 경로에 둔다. 755 실행권한과 소유자가 nagios 이여야한다.

Quote:

[root@ns etc]# ls -al /usr/local/nagios/libexec/notifications/submit_sms_lgsms
-rwxr-xr-x 1 nagios nagios 608 12월 20 16:25 /usr/local/nagios/libexec/notifications/submit_sms_lgsms

Quote:

#!/usr/bin/php
<?php
$con = mysql_connect("DB서버주소","계정","암호");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
$db_selected = mysql_select_db('DB명', $con);
if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}
$sql_statement = "INSERT INTO SC_TRAN (tr_senddate, tr_sendstat, tr_phone, tr_callback ,tr_msg)
VALUES (now(), '0', '$argv[1]', '발신자번호', '$argv[2] $argv[3] $argv[4] $argv[5] $argv[6] $argv[7] $argv[8]')";
//$argv[1] $CONTACTPAGER$ 관리자 핸드폰 번호, Opsview 홈페이지에서 지정하는 번호
//$argv[2] ~ [8] 은 Nagios 인자를 받기위해 등록함
$qry = mysql_query($sql_statement, $con);
mysql_close($con);
?>

위에서 작성한 스크립트를 nagios(Opsview)에서 사용하기 위해 miscommands.cfg 에 추가한다.
$CONTACTPAGER$, $NOTIFICATIONTYPE$, $SERVICEDESC$, $SERVICESTATE$, $HOSTNAME$와 같은 변수는 nagios에서 제공하는 변수이다.

Quote:

[root@ns etc]# cat /usr/local/nagios/etc/misccommands.cfg | tail -5
define command{
command_name notify-by-lgsms
command_line /usr/local/nagios/libexec/notifications/submit_sms_lgsms $CONTACTPAGER$ "$NOTIFICATIONTYPE$ : $SERVICEDESC$ is $SERVICESTATE$ on $HOSTNAME$"
}

이벤트가 생겼을때 SMS보내는 기본 주기는 60분이다.
이것을 변경하기 위해서는 hosts.cfg 를 수정한다.

Quote:

# 29-SVN_renewal host definition
define host {
host_name 29-SVN_renewal
alias 29-SVN_renewal
address 29번서버주소
hostgroups Monitoring Servers
check_interval 0
retry_interval 1
max_check_attempts 2
icon_image linux.png
icon_image_alt LOGO - Linux Penguin
vrml_image linux.png
statusmap_image linux.png
action_url /info/host/36
check_period 24x7
contact_groups hostgroup2_servicegroup5,hostgroup2_servicegroup1,hostgroup2_servicegroup10,hostgroup2_servicegroup3,hostgroup2_servicegroup8
check_command check_host_7!-H $HOSTADDRESS$
parents opsview
notifications_enabled 1
notification_interval 60
notification_period 24x7
notification_options u,d,r,f
use host-global
}

# 31-bizmail host definition
define host {
host_name 31-bizmail
alias 31-bizmail
address 31번서버주소
hostgroups Monitoring Servers
check_interval 0
retry_interval 1
max_check_attempts 2
icon_image linux.png
icon_image_alt LOGO - Linux Penguin
vrml_image linux.png
statusmap_image linux.png
action_url /info/host/30
check_period 24x7
contact_groups hostgroup2_servicegroup5,hostgroup2_servicegroup1,hostgroup2_servicegroup10,hostgroup2_servicegroup3,hostgroup2_servicegroup8
check_command check_host_7!-H $HOSTADDRESS$
parents opsview
notifications_enabled 1
notification_interval 1
notification_period 24x7
notification_options u,d,r,f
use host-global
}

hosts.cfh를 1분으로 변경하더라고 5분마다 문자가 온다는 것을 알게 되는데
이것은 services.cfg 에서 각 서비스별 체크하여 notification을 하는 주기가 기본값 5분으로 되어있기 때문이다.
(이주기는 service 설정에 따라 다르다. 가령 ssh check같은 경우는 기본값이 1분이다.)

Quote:

# / service definition for host 31-bizmail
define service {
host_name 31-bizmail
service_description /
check_command check_nrpe!-H $HOSTADDRESS$ -c check_disk -a '-w 3% -c 1% -p /'
normal_check_interval 1
retry_check_interval 1
check_period 24x7
max_check_attempts 3
flap_detection_enabled 1
notifications_enabled 1
notification_period 24x7
notification_interval 1
notification_options c,r,w
contact_groups hostgroup2_servicegroup8
notes OS - Base Unix Agent:Utilisation of / partition
notes_url /graph?host=$HOSTNAME$&service=$SERVICEDESC$
icon_image graph.png
icon_image_alt View graphs
use service-global
}

결국 보통의 SMS처럼 1분마다 check를 해서 연락를 받고 싶다면 hosts.cfg와 services.cfg에서 notification_interval를 원하는 시간으로 조정하면 된다.

File attachments: 
첨부파일 크기
Image icon nrpe_1.JPG18.33 KB
Image icon master_architecture.JPG22.37 KB
Forums: 
aero의 이미지

opsview는 nagios의 fork가 아니고 enhancement입니다.( groundworks, centron 등등 )
nagios의 fork는 icinga( http://www.icinga.org/ ) 하나 뿐입니다.
다른 것은 nagios를 그대로 core로 사용하고 사용성/편리성을 높인 것(enhancement)들이죠.

현재 파악된 문제점
1. 느린 웹UI 속도 -> 별도 웹서버를 설정하면 해결된다고함

http://docs.opsview.org/doku.php?id=opsview3.1:prefork 를 참고로 하셔서 opsview가 쓰는 웹프레임웍인 Catalyst가
process를 여러개 fork해서 대기하도록 하시면 반응속도가 빨라집니다. 여기에 apache까지 front로 쓰시면 좀 더 낫고..

2. 설정이 복잡합 -> 동일한 서버군이라면 1대에 대해 설정후 복사하면 됨

nagios 플러그인 마다 설정이 좀 다르긴 하지만 도움말을 참고하면 다 나옵니다. 방식도 위험,경로 레벨을 지정하는 건 비슷하구요.
말씀대로 일단 와꾸만 잡아놓고 나면 템플릿을 지정하든지 그냥 복사해서 그대로 쓰면되죠

3. 성능 모니터링 셋팅 하기가 어려움 -> 모니터링할 서버에 SNMP를 설정해야하는데 아직 정확하게 파악못함. 에이전트에서 해주었으면 좋겠는데...

nagios는 전용 nagios 에이젼트(nrpe daemon), snmp 에이젼트 모두를 사용할 수 있지만 중복해서 하실필요는 없고 nagios agent를 사용하시면 모든 것은 nagios agent를 통해서 모니터링 하시면 됩니다. nagios agent의 장점은 snmp로는 커버하기 힘든 어떤 값이든 커스트마이징해서 모니터링 할 수 있다는 것이죠.
Linux의 경우 opsview에서 제공하는 opsview-agent 패키지를 사용해도 되고 아니면 각 리눅스 배포본에서 제공하는 nagios agent 패키지를 깔아 써도 됩니다. Windows의 경우 NSClient++( http://nsclient.org/nscp/ ) 하나면 못하는게 없죠.

junilove의 이미지

답글 및 내용 정정에 대해 감사드립니다. 설정의 어려움때문에 zenoss도 퇴근직전에 설치하고 나서, 이글을 올렸는데요.
다시금 nagios에 대해 연구를 해봐야겠다는 생각이 듭니다.
aero님도 현장에서 nagios를 적용하고 계시는 건가요? 문태준님 글 이외에 참조할만한 한글문서가 없어서 이참에 좀 먼가 정리를 해나가고 싶네요. nagios agent(nrpe 데몬이지요?)에서 성능모니터링도 가능하다니 좀더 문서를 잘 살펴봐야겠습니다. 스크린샷으로 보는 centreon는 매력있어보이던데요. opsview와 비교했는 경우 어떠한가요?

aero의 이미지

위에서 제가 말씀드린 prefork 설정에 문제가 좀 있네요
http://lists.opsview.org/lurker/message/20090728.014945.2532eb97.en.html
를 참고하셔서 좀 수정을 하셔야 제대로 동작합니다.

centreon은 화면은 예뻐보이지만 nagios를 core로 쓰면서도 에이젼트는 snmp를 사용해서 하는 게 기본인 것 같더군요.
( 모니터링 시스템은 눈요기하자고 구축하는게 아니라 실제 원하는 문제점을 찾고자 구축하는 것임을 명심! )
전 서버모니터링에 있어 snmp agent를 사용하는 것은 별로 메리트가 없다고 봅니다. nagios의 기본 방식인
NRPE를 통한 방식이 customize된 모니터링에 훨씬 유리하죠. 단 그 기본 구조를 잡는데 좀 시간이 걸리고 노력이
필요하지만 그건 충분히 감수할 만하다고 봅니다.

junilove의 이미지

Opsview에도 보안이슈가 있었네요. 최근 버전에서는 조치가 되었다고합니다.

http://teamcrak.tistory.com/181

junilove의 이미지


Nagios core 3.2.1 기반으로 업그레이드 되었네요.

http://opsview.org/opsview_community_3.7.0

This documents the major changes between releases

3.7.0 29th April 2010
FEATURE:
Notification profiles - a contact can have multiple profiles to fine tune your notification requirements
Extended notification methods - can now create your own notification methods, with per contact variables
New plugin, check_opsview_keyword, to show summarised state of keywords
New Alert Every Failure option, which respects the re-notification interval. Useful for passive alerts
New execution dependency, so checks are not run if the dependency has failed. Integrated with existing notification dependencies field
opsview_sync_ldap will now synchronise the user each time based on the XML data received.
WARNING: As opsview_sync_ldap now synchronises, access information may change if more permissions have been granted after the initial creation
WARNING: notification information is now stored in notification profiles and newly created users with opsview_sync_ldap will have no
notification profiles created

ENHANCEMENTS:
Set Nagios' log initial states to always off
Added new plugins: check_sql_advanced, check_dnsbl, check_aql_sms_credit, check_mysql_performance, check_ldap_sync
Added check_ldap (was missing on some platforms)
Improved service and template configuration - better out of the box support for common applications and app servers
Copy bad nagios configurations into tmp area for diagnosis. Cleanup via daily housekeeping
Added multiline plugin output to notification emails
Link between object in status pages to events view and notifications view
Added acknowledgement for single host or service
check_snmp_sysinfo returns CRITICAL if agent does not respond (was returning WARNING)
Added new application monitors for Alfresco, JBoss, Atlassian, Puppet, VMWare ESX, Foundry, Wordpress and JasperReports
Updated initial database configuration to have two keywords: opsview and opsview-components
Enable SNMPv3 support in MRTG - must have at least MRTG version 2.15.0
Added flap detection checkbox to host edit configuration page
Added /rrdfetch?keyword={name}
Updated check_snmp_uptime to cope with 32 bit counter rollover (thanks to Mike Dorman)
Updated check_memory to take account of reclaimable memory NOTE: this may appear to cause a significant change in statistics due to the slightly different calculations used (thanks to Stuart Teasdale)
Allow RSS users via /atom to authenticate using LDAP or cookie mechanism
Added new access: CONFIGUREVIEW and CONFIGURESAVE
Added extra index on runtime.opsview_host_services
Additional logging from import_runtime
Improve how PERL5LIB is set on Solaris for finding RRDTool perl libs
Spanish translations, contributed by Capside
Updated Nagios to 3.2.1
Updated login page and enterprise/community logos
Reduced retention time for nagios_conninfo table in runtime db to 1 week
Improved ODW importing time by 30%
Changed UI button on right to be Options or Actions based on type of information

FIXES:
Fixed parsing unusual port names (i.e. with brackets) for mrtg
Ensure 'custom.css' is used on all admin, graph and cgi generated pages
Fixed graph's y-units on new graphs with no overview data.
Fixed graphs not being displayed (only affects new installs of Opsview Enterprise 3.6.0.3920)
Fixed events auto_refresh not turning off.
Fixed creation of nagvis.ini.php file on postinstall of opsview-base
Made graph 'add series' button unavailable for unauthorised users.
Fixed graph requesting 3 sets of graph data.
Order rancid vendors by name by default
Fixed IE bug where the graph drop down menu was hidden under the next graph.
Fixed status API for /status/hostgroup when querying a leaf hostgroup
Fixed permissions for Solaris on etc/
Fixed web UI error when service check no longer exists for SNMP trap exceptions (OPS-572)
Fixed IE7 bug where page search button was in wrong position
Fixed date and time provided in atom feeds
Fixed configuration generation error when service check is excluded where a dependency exists on same host
Fixed extraneous SMS notifications on master when SMS set to send from master and an SMS number is defined for contact
Fix to allow check_ldap from nagios-plugins to compile on Solaris
Fixed listing of all service checks in notification dependency box for new service checks
Fixed service check edit screen when stale state set to OK
Fixed notification escalations when SMS notifications defined from master only and monitored on the master for a host
Fixed quoting issue for SNMP interfaces where interface name contained a single quote
Fixed validation of required OID field for SNMP polling check
Fixed soft state dependencies being set based on database value
Ignore plugin names in libexec/ which have .dpkg-tmp, .tmp or .bak at the end
Disabled 24x7 timeperiod from being edited
Fixed events view to respect auto_refresh value off
Fixed SNMP host query with SNMP v3 devices
Graphing rollover displays precise Y value with no rounding.
Fixed graph links so are now url-encoded.
Fixed display of resolved service checks
Fixed output of db_mysql when opsview.sh errored
Fixed bug on DST changeover day (moving hour back) when calculating next valid time
Fixed utf8 characters for host and host group wiki info
Fixed some check_radius_ih compile problems
Fixed call_nmis on solaris as it was using incorrect ps arguments"
Fixed bug where page search incorrectly adds a "." at end of search parameter (bug in webkit)
Fixed hosticon_admin to work on png files rather than gif's
Change name searches for hostgroups to redirect to number id instead

junilove의 이미지

참조 링크 :
http://www.opsview.com/company/news-room/press-releases/2010-09-28/opsview-community-390-released
https://secure.opsera.com/wsvn/wsvn/opsview/tags/release-3.9.0/CHANGES

This documents the major changes between releases

3.9.0 28th September 2010
FEATURES:
Added new API for configuration data via REST interface at /rest. See
http://docs.opsview.org/doku.php?id=opsview-community:restapi
opsview_rest for a command line interface to REST API
import_json for a batch import interface to REST API
export_host_template to export host template configuration and all related information
Added performance viewport with sparkline graphs /viewport/{keyword}?style=performance
Can now dynamically update viewport style
Graphs have an export to CSV option
Added Amazon EC2 monitoring feature
Added Amazon EC2 Environment monitoring option
Added Amazon Simple Storage Services(S3) Bucket monitoring option
Added Slicehost monitoring feature to monitor bandwidth utilization or status of a slice

ENHANCEMENTS:
Complain if 'su - nagios' not run when rc.opsview start
Updated Italian translation file
Updated tagcloud viewport summary style to display highest failure state
Removed some dependencies on ksh (OPS-340)
Add further directories into daily housekeep script (OPS-323)
Rename backup files appropriately (OPS-1040)
Allow specifying bind address for Opsview Web
Amend Apache error page to allow for custom maintenance messages from /usr/local/nagios/etc/maintenance (OPS-1075)
Note: requires Apache proxy configuration file update.
Added new 'Opsview Application Processes' check to 'Application - Opsview Master' template
Added new 'check_opsview_mysql' and 'check_opsview_mysql_performance' for use with 'MySQL DB Performance', 'MySQL DB Connections' and 'MySQL Status' on master server (OPS-1158)
Updated Nagios Plugins to 1.4.15
Updated Nagios to 3.2.2
Updated label for notification methods to say run on "Master" or "Slave", which is not technically right, but covered in
linked documentation
Reordered checkbox_groups so that it takes a newspaper column approach (down then next col), rather than text approach
(left to right)
New check_slicehost plugin added to check slicehhost status
Added new check_plugin_output to diagnose plugin errors
Enhanced check_snmp_linkstatus to catch DB exceptions and create tables if required
Allow up to 4 arguments for each host attribute
Allow a default attribute to be set with arguments - this allows a global attribute that can be overridden per host
Updated import_excel:
* can set Enable SNMP and Use MRTG
* can set NONE to have no keywords, host templates, service checks, etc
* added warning about importing service checks, which will lose existing exceptions information
Reload now complains if it finds trailing spaces in service check names
Added unique constraint on servicegroups.name
Separate hosts and host templates columns in service check list page
Added unique constraints on SNMP trap rules and host template management URLs. If there are duplicate names during the upgrade,
the id will be suffixed to make it unique
Added page numbers to top of configuration list tables
Allow time period edit page to use cut and paste keystrokes. Added client side validation of timeperiod fields
Added number of changes since last reload to reload screen
Automatically convert attribute names to uppercase, otherwise fails validation
Contacts database backend converted so name => fullname and username => name. This is so that there is consistency with the
name field always being the uniquely constrained column
Added a message for contacts that do not have any notification profiles, to remind to create one for notifications
Added /usr/local/nagios/libexec to PERL5LIB path for plugins that expect that location
Added port option to many SNMP plugins
Added index to improve query for viewport summary pages
Speedup to ndoutils_configdumpend when creating helper tables

FIXES:
Fixed query_host when going to slave over a reverse ssh tunnel (Phil Rich)
Fixed dependencies when using host templates without host defining that service check
Fixed dependencies when multiple service checks depend on another service check
Fixed dependencies when multiple service checks used where number of attributes = 0
Removed listing of multiple service checks from options for dependencies
Fixed temporary problem where downtime is removed from host/service statuses on a reload
Do not clear runtime's scheduled downtime table, so state retained over a reload
Fixed missing command_line field in runtime's nagios_servicechecks table
Fixed graph load when selecting from more than 10 metrics
Fixed graph refresh invoking 3 rrdfetches, when it should only be 2
Stop auto-populated snmp polling label going over 40 chars
Fixed error creating database when default charset=utf8
Fixed error messages when running gathering plugin help during upgrade
Include missed ODW table from nightly housekeeping (service_outages)
Added help links for RSS fields in contact page
Ignore nagios/var/spool directory in nightly opsview backups
Stopped 'Successfully disconnected from MySQL database' messages to allow for syslog 'Last message repeated n times' on connections (OPS-341)
Note: rsyslog needs to have '$RepeatedMsgReduction on' set to enable repeated message reduction
Fixed possible vulnerability with invalid cookie values
Fixed XSS vulnerability on login page
Fixed bad contact notifications tab when only one notification method is active (OPS-1255)
Fixed viewport summary keyword list so that only keywords with a service on are listed
Fixed webexception page so that it doesn't try to do refreshes automatically
Fixed incorrect eventhandler for cluster node failovers
Fixed problem where FLAPPINGSTOP messages were not being notified correctly
Fixed host information/comments page links on contextual menus
Fixed Nagios CGI displaying no comments if there were any comments with persistent=0
Added dependency for postgres libraries for opsview-base on Debian for check_pgsql
Update slave sending results to use 127.0.0.1 rather than localhost to remove name resolution dependency
Fixed DB upgrades which failed due to useragents primary key column being too large when charset is UTF8.
Only affects upgrades from Opsview 3.4 upwards
Fixed web interface where host's Flap Detection and Enable SNMP cannot be de-selected
Fixed problem where apt-get install would hang for opsview-agent
Fixed uncommitted flag when deleting a host
Fixed problem for some SNMP interfaces where interface names contained trailing spaces
Fixed issue on check_snmp_linkstatus where some SNMP devices returning msg too big errors - now
uses same technique as query_host so if query_host works, check_snmp_linkstatus should too
Fixed problem where MRTG links were broken for slave monitored hosts
Fixed internationalisation for MRTG page
Fixed on delete cascade for service check dependencies
Fixed the uniqueness check for notification profiles names per contact
Fixed missing titles on Nagios cmd.cgi
Fixed check_snmp_cisco_ifstatus for interface ids that are not sequential (Claus Guttesen)
Stop generating MRTG configuration for SNMPv3 hosts when MRTG < 2.15.0; put warning message on reload page
Fixed the missing nagios/var directory on RPM agent installations

aero의 이미지

opsview 3.9.0 은 i18n을 지원하기 위한 패치가 좀 적용되긴 했지만
아직도 호스트,서비스 description/ downtime,ack. comment 등등에서 여전히 한글이 깨집니다.
그래서 제가 패치를 만들었습니다.
참고: http://aero2blog.blogspot.com/2010/10/i18n-patch-for-opsview-390.html

opsview 측에 적용해달라고 메일을 보내놨는데 다음 버젼에는 적용될 지 지켜봐야겠네요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.