安装完成后报错:
[root@tivoli probes]# ./nco_p_tivoli_eif
exec: No such file or directory
检查JAVA
[root@tivoli probes]# java
-bash: java: command not found
[root@tivoli probes]# java
-bash: java: command not found
[root@tivoli probes]# vi /etc/profile
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# ksh workaround
if [ -z "$EUID" -a -x /usr/bin/id ]; then
EUID=`id -u`
UID=`id -ru`
fi
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
if [ -x /usr/bin/id ]; then
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fi
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
if [ "$PS1" ]; then
. $i
else
. $i >/dev/null 2>&1
fi
fi
done
unset i
unset pathmunge
export NCHOME=/tivoli/netcool
export MNIHOME=/tivoli/netcool/omnibus
export JAVA_HOME=/db2/ibm/db2/V9.1/java/jdk32/jre
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=/db2/ibm/db2/V9.1/java/jdk32/lib
"/etc/profile" 63L, 1232C written
[root@tivoli probes]# su - root
[root@tivoli ~]# ls
anaconda-ks.cfg IA-Netcool-OMNIbus-00.log ITM_LP_Installer-00.log mount.sh
db2ese.rsp IA-Netcool-OMNIbus-Integrations-00.log ITM_LP_Installer-10.log nco-p-tivoli-eif_InstallLog.log
Desktop install.log ITM_LP_Installer-20.log
IA-ITNM-Install-00.log install.log.syslog kkfconfig.log
[root@tivoli ~]# java
Usage: java [-options] class [args...]
(to execute a class)
or java [-jar] [-options] jarfile [args...]
(to execute a jar file)
where options include:
-cp -classpath
set search path for application classes and resources
-D=
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version
-version:
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-agentlib:[=]
load native agent library , e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:[=]
load native agent library by full pathname
-javaagent:[=]
load Java programming language agent, see java.lang.instrument
-? -help print this help message
-X print help on non-standard options
-assert print help on assert options
[root@tivoli ~]# ls
anaconda-ks.cfg IA-Netcool-OMNIbus-00.log ITM_LP_Installer-00.log mount.sh
db2ese.rsp IA-Netcool-OMNIbus-Integrations-00.log ITM_LP_Installer-10.log nco-p-tivoli-eif_InstallLog.log
Desktop install.log ITM_LP_Installer-20.log
IA-ITNM-Install-00.log install.log.syslog kkfconfig.log
[root@tivoli ~]# java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20060222 (SR1))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20060222a (JIT enabled)
J9VM - 20060220_05389_lHdSMR
JIT - 20060220_2133_r8
GC - 20060214_AA)
JCL - 20060222a
[root@tivoli ~]#
[root@tivoli ~]#
[root@tivoli ~]#
[root@tivoli ~]# ls
anaconda-ks.cfg IA-Netcool-OMNIbus-00.log ITM_LP_Installer-00.log mount.sh
db2ese.rsp IA-Netcool-OMNIbus-Integrations-00.log ITM_LP_Installer-10.log nco-p-tivoli-eif_InstallLog.log
Desktop install.log ITM_LP_Installer-20.log
IA-ITNM-Install-00.log install.log.syslog kkfconfig.log
[root@tivoli ~]# cd -
-bash: cd: OLDPWD not set
[root@tivoli ~]# ls
anaconda-ks.cfg IA-Netcool-OMNIbus-00.log ITM_LP_Installer-00.log mount.sh
db2ese.rsp IA-Netcool-OMNIbus-Integrations-00.log ITM_LP_Installer-10.log nco-p-tivoli-eif_InstallLog.log
Desktop install.log ITM_LP_Installer-20.log
IA-ITNM-Install-00.log install.log.syslog kkfconfig.log
[root@tivoli ~]# cd /tivoli/netcool/
[root@tivoli netcool]# ls
additional-licenses InstallScript.iap_xml nco-p-syslog_InstallLog.log platform Uninstall_ITNM
bin installvariables.properties nco-p-tivoli-eif_InstallLog.log precision Uninstall_ITNM.lax
env.sh license omnibus probes var
etc log OMNIbus_InstallLog.log _uninst
install nco-p-mttrapd_InstallLog.log PD uninstaller.jar
[root@tivoli netcool]# java
Usage: java [-options] class [args...]
(to execute a class)
or java [-jar] [-options] jarfile [args...]
(to execute a jar file)
where options include:
-cp -classpath
set search path for application classes and resources
-D=
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version
-version:
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-agentlib:[=]
load native agent library , e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:[=]
load native agent library by full pathname
-javaagent:[=]
load Java programming language agent, see java.lang.instrument
-? -help print this help message
-X print help on non-standard options
-assert print help on assert options
[root@tivoli netcool]# cd omnibus/probes/
[root@tivoli probes]# ls
java nco_jprobe nco_p_mttrapd nco_probe nco_p_syslog perl
linux2x86 nco_nnsaprobe nco_pprobe nco_p_syntax nco_p_tivoli_eif
启动,但是启不了,查看$OMNIHOME/log/tivoli_eif.log发现rules报错:
[root@tivoli probes]# ./nco_p_tivoli_eif
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]# ps -ef | grep eif
root 11280 11112 0 15:06 pts/4 00:00:00 grep eif
rules报错:
[root@tivoli log]# tail -f tivoli_eif.log
2011-01-10T15:06:45: Error: E-UNK-000-000: Rules file '/tivoli/netcool/omnibus/probes/linux2x86/tivoli_eif_default.rules' line 118: Field 'TECDateReception' not found.
2011-01-10T15:06:45: Error: E-UNK-000-000: Rules file '/tivoli/netcool/omnibus/probes/linux2x86/tivoli_eif_default.rules' line 119: Field 'TECEventHandle' not found.
2011-01-10T15:06:45: Error: E-UNK-000-000: Rules file '/tivoli/netcool/omnibus/probes/linux2x86/tivoli_eif_default.rules' line 123: Field 'TECHostname' not found.
2011-01-10T15:06:45: Error: E-UNK-000-000: Rules file '/tivoli/netcool/omnibus/probes/linux2x86/tivoli_eif_default.rules' line 124: Field 'TECFQHostname' not found.
2011-01-10T15:06:45: Error: E-UNK-000-000: Rules file '/tivoli/netcool/omnibus/probes/linux2x86/tivoli_eif_default.rules' line 125: Field 'TECDate' not found.
2011-01-10T15:06:45: Error: E-UNK-000-000: Rules file '/tivoli/netcool/omnibus/probes/linux2x86/tivoli_eif_default.rules' line 126: Field 'TECRepeatCount' not found.
2011-01-10T15:06:45: Error: E-UNK-000-000: Rules file '/tivoli/netcool/omnibus/probes/linux2x86/tivoli_eif_default.rules' line 129: Field 'TECStatus' not found.
2011-01-10T15:06:45: Error: E-UNK-000-000: Failure during field validation check.
2011-01-10T15:06:45: Error: E-UNK-000-000: Failed to read rules: general failure
[root@tivoli probes]# vi /tivoli/netcool/omnibus/probes/linux2x86/tivoli_eif_default.rules
# ----------------------------------------------------------------
#
# Licensed Materials - Property of IBM
#
# 5724-P09
#
# (C) Copyright IBM Corp. 1994 - 2006, 2007. All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication
# or disclosure restricted by GSA ADP Schedule Contract
# with IBM Corp.
#
# Ident: $Id$
#
# ------------------------------------------------------------------
#######################################################################
# This rulesfile has been developed in accordance to the IBM Netcool
# Rules Files Best Practices to perform. the following functionality
#
# 1. De-duplicate events
# 2. Generic-Clear to correlate Problems/Resolutions
# 3. Readable alarm summaries
#######################################################################
# Available elements:
# $ClassName - Class name of the TEC event
# $EventSeqNo - Event sequence number of this event
# All other elements are dynamically created, based on the name/value
# pairs in the event.
#######################################################################
@Manager = %Manager +" probe on " + hostname()
@AlertGroup = $ClassName
@Class = 6601
@Agent = $source
@Type = 1
@Grade = 1
if(exists($msg))
{
if(regmatch($msg, "^'.*'$"))
{
$msg = extract($msg, "^'(.*)'$")
}
}
if(exists($date))
{
if(regmatch($date, "^'.*'$"))
{
$date = extract($date, "^'(.*)'$")
}
}
if(exists($hostname))
{
@Identifier = $hostname
}
if(exists($source))
{
@AlertKey = $source
@Identifier = @Identifier + ":" + $source
}
if(exists($sub_source))
{
@AlertKey = @AlertKey + ":" + $sub_source
@Identifier = @Identifier + ":" + $sub_source
}
if(exists($sub_origin))
{
@AlertKey = @AlertKey + ":" + $sub_origin
@Identifier = @Identifier + ":" + $sub_origin
}
if( exists( $severity ) )
{
switch ( $severity )
{
case "FATAL" :
@Severity = 5
case "60":
@Severity = 5
case "CRITICAL":
@Severity = 5
case "50":
@Severity = 5
case "50":
@Severity = 5
case "MINOR":
@Severity = 3
case "40":
@Severity = 3
case "WARNING":
@Severity = 2
case "30":
@Severity = 2
default:
@Severity = 1
}
}
if(exists($origin))
{
@Node = $origin
@NodeAlias = $origin
}
@Identifier = @Identifier + ":" + $ClassName
if(exists ($server_path))
{
$num_servers = split($server_path, servers, ",")
$num_detail = split(servers[$num_servers], server_detail, "'")
$num_info = split(server_detail[int($num_detail)-1], server_info, " ")
# @TECServerHandle=server_info[2]
# @TECDateReception = server_info[3]
# @TECEventHandle=server_info[4]
}
@Summary = $msg
#@TECHostname = $hostname
#@TECFQHostname = $fqhostname
#@TECDate = $date
#@TECRepeatCount = $repeat_count
@LastOccurrence = getdate
@FirstOccurrence = getdate
"linux2x86/tivoli_eif_default.rules" 151L, 3212C written
[root@tivoli probes]# ls
java nco_jprobe nco_p_mttrapd nco_probe nco_p_syslog perl
linux2x86 nco_nnsaprobe nco_pprobe nco_p_syntax nco_p_tivoli_eif
[root@tivoli probes]# ./nco_p_tivoli_eif &
[1] 11536
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]#
[root@tivoli probes]# ps -ef | grep eif
root 11340 11295 0 15:07 pts/3 00:00:00 tail -f tivoli_eif.log
root 11536 11112 1 15:10 pts/4 00:00:00 /tivoli/netcool/omnibus/probes/linux2x86/nco_p_nonnative java -server -cp /tivoli/netcool/omnibus/probes/java/nco_p_tivoli_eif.jar:/tivoli/netcool/omnibus/probes/java/NSProbe.jar:/tivoli/netcool/omnibus/java/jars/evd.jar:/tivoli/netcool/omnibus/java/jars/log.jar:/db2/ibm/db2/V9.1/java/jdk32/lib:/tivoli/netcool/omnibus/probes/java -Xrs -DOMNIHOME=/tivoli/netcool/omnibus nco_p_tivoli_eif
root 11560 11536 23 15:10 pts/4 00:00:02 java -server -cp /tivoli/netcool/omnibus/probes/java/nco_p_tivoli_eif.jar:/tivoli/netcool/omnibus/probes/java/NSProbe.jar:/tivoli/netcool/omnibus/java/jars/evd.jar:/tivoli/netcool/omnibus/java/jars/log.jar:/db2/ibm/db2/V9.1/java/jdk32/lib:/tivoli/netcool/omnibus/probes/java -Xrs -DOMNIHOME=/tivoli/netcool/omnibus nco_p_tivoli_eif
root 11589 11112 0 15:10 pts/4 00:00:00 grep eif
[root@tivoli probes]# ls
java nco_jprobe nco_p_mttrapd nco_probe nco_p_syslog perl
linux2x86 nco_nnsaprobe nco_pprobe nco_p_syntax nco_p_tivoli_eif
[root@tivoli probes]# netstat -an |grep 5529
tcp 0 0 :::5529 :::* LISTEN
[root@tivoli probes]#
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22775238/viewspace-683543/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22775238/viewspace-683543/