Configuration Wizard: Apache Tomcat not work !

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Olin
Posts: 50
Joined: Tue Dec 26, 2017 1:46 am

Configuration Wizard: Apache Tomcat not work !

Post 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)
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Configuration Wizard: Apache Tomcat not work !

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Olin
Posts: 50
Joined: Tue Dec 26, 2017 1:46 am

Re: Configuration Wizard: Apache Tomcat not work !

Post 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:
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Configuration Wizard: Apache Tomcat not work !

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked