Page 1 of 1

Configuration Wizard: Apache Tomcat not work !

Posted: Fri Jul 19, 2019 1:03 pm
by Olin
HI all,

When i use the configuration wizard to configure tomcat monitor :
type:
Please install Java to use JMX directly
Also make sure to edit the CCM definition for check_xi_java_as to include java's absolute path.

But I setting done .
1.jpg
2.jpg
[nagios@ngsxi01 ~]$ /data/jdk1.8.0_31/bin/java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

Re: Configuration Wizard: Apache Tomcat not work !

Posted: Fri Jul 19, 2019 2:46 pm
by cdienger
What is the output of "which java" ? Run this both as root and as the nagios user. To switch to the nagios user use "su - nagios".

The wizard runs this command to find out if java is installed and will throw this message if not found.

Re: Configuration Wizard: Apache Tomcat not work !

Posted: Thu Jul 25, 2019 12:10 pm
by Olin
in the root:

Code: Select all

[root@ngsxi01 ~]# java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
in the nagios

Code: Select all

[nagios@ngsxi01 ~]$ java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:

Re: Configuration Wizard: Apache Tomcat not work !

Posted: Thu Jul 25, 2019 3:46 pm
by cdienger
What OS is XI installed on? Are you able to run the command:

Code: Select all

which java
?

It may be failing to find java because "which" isn't installed.