1. 程式人生 > >如何開啟tuxedo的snmp監控

如何開啟tuxedo的snmp監控

                    如何開通tuxedo的SNMP監控

概述

tuxedo在linux和windows環境下配置過程基本一致,主要不同點有以下兩點:

1.      windows環境下需在C盤根目錄下建立etc目錄

2.      windows需安裝MicrosoftVisual Studio 2008以上的編譯環境

LINUX環境下tuxedo開啟snmp監控

1.安裝檔案:tuxedo111120_32_Linux_01_x86.bin

2.系統環境: Linux apex1752.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 athlon i386 GNU/Linux;需支援gcc編譯環境

3.安裝目錄:/root

4.安裝要求:Linux桌面環境下

5.安裝過程:[[email protected]~]# pwd

/root

[[email protected]~]#chmod 755tuxedo111120_32_Linux_01_x86.bin

[[email protected] ~]#./ tuxedo111120_32_Linux_01_x86.bin

6.安裝型別:無SSL,LDAP;單域單主機


7.環境變數配置:

軟體安裝完成後,新增如下內容到/etc/profile檔案,執行命令:source /etc/profile

TUXDIR=/root/tuxedo11gR1; export TUXDIR

JAVA_HOME=$TUXDIR/jre; export JAVA_HOME

JVMLIBS=$JAVA_HOME/lib/i386/server:$JAVA_HOME/jre/bin

PATH=$TUXDIR/bin:$JAVA_HOME/bin:$PATH; export PATH

COBCPY=:$TUXDIR/cobinclude; export COBCPY

COBOPT="-C ANS85 -C ALIGN=8 -C NOIBMCOMP -CTRUNC=ANSI -C OSEXT=cbl"; export COBOPT

SHLIB_PATH=$TUXDIR/lib:$JVMLIBS:$SHLIB_PATH; exportSHLIB_PATH

LIBPATH=$TUXDIR/lib:$JVMLIBS:$LIBPATH; export LIBPATH

LD_LIBRARY_PATH=$TUXDIR/lib:$JVMLIBS:$LD_LIBRARY_PATH;export LD_LIBRARY_PATH

WEBJAVADIR=$TUXDIR/udataobj/webgui/java; exportWEBJAVADIR

FLDTBLDIR32=$TUXDIR/udataobj; export FLDTBLDIR32

FIELDTBLS32=evt_mib; export FIELDTBLS32

APPDIR=$TUXDIR/simpapp;export APPDIR

TUXCONFIG=$APPDIR/tuxconfig;export TUXCONFIG

BEA_SM_SNMP_MIBFILE=/root/tuxedo11gR1/udataobj/snmp/etc/mib.txt;

export BEA_SM_SNMP_MIBFILE

9.編輯beamgr.conf

(1).新增TRAP_HOST

將#TRAP_HOST      snmp_manager_host   162     public行修改為:

TRAP_HOST localhost  162  public

(2).新增TMAGENT

將一行# TMAGENT <logical_agent_name(23)> <TUXDIR(256)><TUXCONFIG2(256)>修改為

 TMAGENT  tux_snmp  /root/tuxedo11gR1  /root/tuxedo11gR1/simpapp/tuxconfig

9.修改/root/tuxedo11gR1/simpapp目錄下的ubbsimple檔案

#       (c) 2003BEA Systems, Inc. All Rights Reserved.

#ident "@(#) samples/atmi/simpapp/ubbsimple    $Revision: 1.7 $"

#Skeleton UBBCONFIG file for the TUXEDO SimpleApplication.

#Replace the <bracketed> items with theappropriate values.

*RESOURCES

IPCKEY         123456

#Example:

#IPCKEY        123456

DOMAINID       simpapp

MASTER         simple

MAXACCESSERS   10

MAXSERVERS      5

MAXSERVICES    10

MODEL          SHM

LDBAL           N

*MACHINES

DEFAULT:

               APPDIR="/root/tuxedo11gR1/simpapp"

               TUXCONFIG="/root/tuxedo11gR1/simpapp/tuxconfig"

               TUXDIR="/root/tuxedo11gR1"

#Example:

#              APPDIR="/home/me/simpapp"

#              TUXCONFIG="/home/me/simpapp/tuxconfig"

#               TUXDIR="/usr/tuxedo"

#apex175為主機名,請以實際情況修改

apex175        LMID=simple

#Example:

#beatux        LMID=simple

*GROUPS

GROUP1

       LMID=simple     GRPNO=1OPENINFO=NONE

*SERVERS

simpserv SRVGRP=GROUP1 SRVID=1CLOPT="-A"  

TMSYSEVT SRVGRP=GROUP1 SRVID=100 RESTART=Y GRACE=900MAXGEN=5  CLOPT="-A --"

TMSYSEVT SRVGRP=GROUP1 SRVID=101 RESTART=Y GRACE=900MAXGEN=5  CLOPT="-A -- -S -p90"

TMUSREVT SRVGRP=GROUP1 SRVID=102 RESTART=Y GRACE=900MAXGEN=5

*SERVICES

TOUPPER

9.編譯/root/tuxedo11gR1/simpapp目錄下simpserv.c檔案

[[email protected]~]#buildserver -o simpserv -f simpserv.c -s TOUPPER

10.編譯ubbsimple

[[email protected]~]#tmloadcf –y ubbsimple

11.啟動domain

[[email protected] ~]#tmboot –y

12.啟動tux_snmpd

啟動tux_snmpd前需保證linux自帶的net-snmp服務關閉,防火牆關閉或者開啟161與162埠

[[email protected]~]#tux_snmpd –l tux_snmp –s –c