레이블이 snmp인 게시물을 표시합니다. 모든 게시물 표시
레이블이 snmp인 게시물을 표시합니다. 모든 게시물 표시

2012년 10월 8일 월요일

[Dell] compat-libstdc++-33 and zlib for OME (System Update)

<테스트 환경>
OS : CentOS 6.3 x64   / CentOS 5.8 x64
OMSA : 7.1 (최신)



아래 두 파일을 Redhat Linux로 인식하기 위해 아래와 같이 수정해줍니다.
**CentOS 6.x도 아래 RHEL 5.x로 입력 후 테스트 함

# vi /etc/redhat-release
Red Hat Enterprise Linux Server release 5.0 (Tikanga)
#CentOS release 5.8 (Final)


# vi /etc/issue
Red Hat Enterprise Linux Server release 5.0 (Tikanga)
#CentOS release 5.8 (Final)
Kernel \r on an \m



OMSA 설치하고 snmpd.conf 설정하고 OME에 Inventory Collect Agent 가 나타나지 않는다면 아래와 같이 설치/설정 하기 바람.

# yum install srvadmin-cm (Collect Manager?) 설치     <= i686 으로 설치됨

# /opt/dell/srvadmin/sbin/invcol 실행 후 아래와 같이 나온다면...
libstdc++.so.5 is required to run the Inventory Collector.

# yum install compat-libstdc++-33.i686 설치

아래는 OME에서 System Update 시 필요한 패키지이며 미리 설치 요망!
# yum install libstdc++.i686 libxml2.i686


(테스트)
# invcol
./invcol: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

# yum install zlib.i686 zlib-devel.i686 설치

# invcol
아무런 error 표시 안된다면 O.K

# /opt/dell/srvadmin/sbin/srvadmin-services.sh restart

2011년 2월 15일 화요일

Dell OpenManage IT Assistant 설정하기

Dell OpenManage IT Assistant
델 제품군만을 지원하는 중앙집중식 관리 툴

[테스트 환경]
- 관리서버 : windows 7 (IT Assistant 설치)
- 클라이언트 서버(CentOS 5.5 x86) : Dell R210 (OpenManage Server Administrator 설치)


<관리서버 셋팅>

1. windows 7에 snmp 기능 추가

2. snmp 보안 및 트랩 설정
    - 보안탭 : 받아들일 커뮤니티 등록
    - 트랩탭 : 커뮤니티 이름 / 트랩대상(IT Assistant 관리 서버 ip)



** snmp 서비스 재시작


3. 관리서버에 Dell 서버와 같이 포함되어 있는 "Systems Management Tools and Documentation" DVD에서 BMC, DRAC을 우선 설치하고 ITAssistant를 설치합니다.
DVD 안의 위치는 e:\SYSMGMT\ManagementStation\windows 입니다.

    BMC와 DRAC을 설치하지 않고 ITAssistant를 설치하면 Install, Modify, Repair~~ 부분이 비활성화 되고 Description 부분에 설명과 링크를 클릭하여 선수 조건을 만족 시켜주면 됩니다.



4. IT Assistant 실행


5. SMTP 설정
    오른쪽 상단에 Preferences 로 들어갑니다.

    Web Server 탭을 클릭하면 SMTP 설정하는 부분이 나옵니다.
    SMTP 서버와 DNS Suffix(보내는 사람 이름) 설정하고 Apply 합니다.


6. Discovery and Monitoring 설정
    -> Discovery Configuration

    -> Inventory Configuration : 1 hour / fast
    -> Status Polling Configuration : 1 hour / fast
    -> Ranges
         여기에선 192.168.0.1~200까지 설정하였습니다.


7. IT Assistant로 긁어 온 Printers 및 Servers 그리고 Unknown 장비들입니다.

   Server에 제대로 올라온 image 서버의 정보가 보이네요.


8. Alerts -> Actions 설정
    warning, critical 만 설정하여 alert 발생 시 메일로 전송되게 설정하였습니다.


9. Manage -> Performance and Power Monitoring Tasks 설정
    CPU, Memory, Network, Disks 등 ssh로 클라이언트 서버에 접근하여 자원 모니터링 가능(기간 설정 가능)







<클라이언트 서버 셋팅>

1. Dell OpenManage Server Administrator 설치
참고> http://wizcns.blogspot.com/2010/11/centos%EC%97%90-dell-omsa-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0.html

2. yum 으로 net-snmp 설치
# yum install net-snmp net-snmp-utils

3. snmpd.conf 설정


4. 부팅 시 snmpd 자동 실행
# chkconfig --level 35 snmpd on

5. Dell dataeng(Systems Management Data Engine) 설정
# /etc/init.d/dataeng enablesnmp

6. Dell OMSA 및 snmpd 재실행
# /opt/dell/srvadmin/sbin/srvadmin-services.sh restart
# /etc/init.d/snmpd restart

7. 웹브라우저에서 OMSA 설정(예전에 비해 깔끔해졌네요^^)
    일단 로그인부터 합시다! (https://클라이언트서버 ip:1311)


  Platform Events : 체크

  커뮤니티 설정(default : public)

  IPMI로 ITA에서 접근 가능하도록 설정 및 root(administrator) 암호 설정
  Dell 메뉴얼에는 초기 암호가 calvin 이라는데 맞는지 모르겠음^^;


2011년 1월 31일 월요일

[CentOS] 시스템 자원 모니터링 툴, Cacti 설정

cacti : RRDTool의 데이터를 수집하여 그래픽으로 보여주는 MRTG 솔루션




1. yum에 cacti 설정
[root@image ~]# vi /etc/yum.repos.d/cacti.repo
[cacti]
name=Dag RPM Repository for CentOS
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=0
enabled=1
protect=0


2. yum update
[root@image ~]# yum update


3. 필수 package 설치
[root@image ~]# yum install gcc gcc-c++ kernel kernel-devel net-snmp net-snmp-utils mysql mysql-server httpd php php-mysql php-snmp rrdtool tcl clamav libtool


4. cacti 설치 및 conf 설정
[root@image ~]# yum install cacti

[root@image ~]# vi /etc/httpd/conf.d/cacti.conf
Alias /cacti/ /var/www/cacti/
<Directory /var/www/cacti/>
    DirectoryIndex index.php
    Options -Indexes
    AllowOverride all
    order deny,allow
    deny from all
    allow from all
    AddType application/x-httpd-php .php
    php_flag magic_quotes_gpc on
    php_flag track_vars on
</Directory>

[root@image ~]# service httpd start


5. mysql 설정(참고: /var/www/cacti/include/config.php)
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";


6. DB 접속 및 cacti 계정/ DB 생성
[root@image ~]# service mysqld start

[root@image ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3391
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> grant all on cacti.* to cactiuser@localhost identified by 'cactiuser';
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> create database cacti;
Query OK, 1 row affected (0.00 sec)



7. cacti DB importing
[root@image ~]# cd /var/www/cacti/
[root@image ~]# mysql -u cactiuser -p cacti < cacti.sql


8. cacti DB 확인
[root@image ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3391
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| cacti              |
| mysql              |
| test               |
+--------------------+
4 rows in set (0.00 sec)

mysql>


9. snmp 설정 및 실행
[root@image ~]# vi /etc/snmp/snmpd.conf
com2sec public default      public        <= 41행
group   public          v1           public        <= 48행
group   public          v2c          public        <=49행
view    all             included .1         <= 59행
60행 주석(#)처리 또는 삭제
access  public ""      any       noauth    exact  all none none        <= 65행
:wq!

[root@image ~]# service snmpd start


10. 기타 설정
[root@image ~]# chown -R cacti /var/www/cacti
[root@image ~]# chmod 777 rra log


웹브라우저에 아래와 같이 실행하면 됩니다.
http://cacti서버ip/cacti/

ID/PW : admin/admin => 암호 수정하라고 나옵니다.

cacti 초기 화면입니다. 자원관리할 서버 및 category 만들어 사용하시면 됩니다.