달력

07

« 2010/07 »

  •  
  •  
  •  
  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2010/01/25 17:31

RHEL5 에서 변경된 sort 옵션 Linux2010/01/25 17:31

RHEL 4까지는 sort +1  과 같은 옵션이 사용 가능했으나 RHEL 5에서는 posix 를 따르다 보니 해당 옵션을 더이상 사용할 수 없도록 되었다.

그러므로 이를 대신하기 위해서는 -k 옵션을 사용해야 한다.

두 번째 필드를 기준으로 정렬하려면 -k2 옵션을 주면 된다.

(이전의 +1 옵션은 필드값이 0부터 시작하지만 -k 옵션은 필드값이 1부터 시작되므로 사용시 주의해야 한다.

TAG rhel4, rhel5, sort
Posted by shsch
http://kbase.redhat.com/faq/FAQ_85_12580.shtm

Do I need to make any configuration changes after updating nss_ldap in Red Hat Enterprise Linux 4.7?

Resolution:

The nss_ldap component in Red Hat Enterprise Linux 4.7 will improve the reconnect behavior when binding to an LDAP server. Previous versions implemented "hard" reconnects, which attempt to reconnect at every initialization failure. The new version implements two new options, described below:

  • "bind_policy hard_open". If "bind_policy hard" was used in 4.6, and if this configuration is left as-is after upgrading to 4.7, the policy will default to "bind_policy hard_open". The behavior is to ask to retry if the attempt to open a connection fails.
  • "bind_policy hard_init". This is a new option for 4.7. The behavior is to retry if the LDAP initilization fails.

Both of the above options can be used in conjunction with "bind_timelimit" to set a maximum amount of time to be spent on the bind attempt.

Note: No changes have been made if "bind_policy soft" is used.



Posted by shsch
2007/07/11 19:28

RHEL4 또는 CentOS4 에 nagios 설치 Linux2007/07/11 19:28

사용자 삽입 이미지
여기서는 nagios 를 컴파일 없이 RPM 패키지를 이용하여 설치 후 정상 작동 유무를 확인하는 것까지만 서술한다.

설정과 관련된 자세한 내용은 다음 글에 서술한다. (언제 작성할지는 모름)



1. nagios 설치

http://dag.wieers.com/packages/nagios/ 에서 nagios, nagios-devel 패키지를 다운로드 함

http://dag.wieers.com/rpm/packages/nagios-plugins/ 에서 nagios-plugins, nagios-plugins-setuid 패키지를 다운로드 함.

추가 다운로드

http://dag.wieers.com/rpm/packages.php  에서 perl-Crypt-DES, perl-Net-SNMP, perl-Socket6 패키지를 다운로드 함.

필요한 패키지가 모두 준비되면 rpm 명령으로 설치 진행.

 위에 패키지 한 번에 받기



2. 기본 설정


- 아파치 웹서버 설정

/etc/httpd/conf/httpd.conf 파일 끝에 아래와 같은 내용이 추가되어 있음.

# Include /etc/httpd/conf.d/nagios.conf

이 줄의 맨 앞에 있는 주석을 아래와 같이 제거후 apache 를 재시작함

Include /etc/httpd/conf.d/nagios.conf

# service httpd restart

- 접속 가능한 유저 생성

아래와 같은 명령으로 'nagiosadmin' 이라는 유저를 생성하고 패스워드를 설정함.
추가로 사용자를 생성할 경우에는 -c 옵션을 생략함.

# htpasswd -c /etc/nagios/htpasswd.users nagiosadmin


3. 웹연결 확인


아래의 명령으로 nagios 서비스 시작

# service nagios start

웹브라우저로 연결할 URL은 http://hostname/nagios 이다. hostname 은 nagios를 설치한 호스트이름으로 변경하여 사용.

로그인 창이 뜨면 앞서 생성한 유저 정보를 입력하여 정상적으로 로그인 되는지 확인.

왼쪽 메뉴에 있는 항목들을 클릭해 보면 아래와 같은 에러 메세지를 보이게 된다.

It appears as though you do not have permission to view information for any of the services you requested...

It appears as though you do not have permission to view the configuration information you requested...

이럴 경우에는 cgi.cfg 파일에서 권한 설정을 해주어야 함

/etc/nagios/cgi.cfg 파일에서 아래와 같이 시작되는 항목들의 앞의 주석을 제거후 뒤에는 권한을 허용할 사용자 이름을 기록한다.

#authorized_for_ ...

ex) authorized_for_system_information=nagiosadmin

마지막으로 nagios 서비스를 재시작 후 다시 시도하면 에러없이 기본 설정된 내용들을 확인할 수 있다.


4. 상세 설정

- 메뉴얼 을 참고하여 세부적인 내용 설정 가능.

- 설정을 쉽게 하기 위해 도와 주는 툴 소개 페이지 : 여기 참고


관련 글


- 시스템 관리용 오픈 소스 패키지 톱5: 제4편 Nagios
- 시스템, 네트워크 모니터링 프로그램 nagios
Posted by shsch