Dell EMC OpenManage Plug-In For NagiosXI Prereq Check Failin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hul1
Posts: 50
Joined: Mon Jan 14, 2019 12:58 pm

Dell EMC OpenManage Plug-In For NagiosXI Prereq Check Failin

Post by hul1 »

Hi I'm trying to use the Dell EMC OpenManage Plug-In for Nagios XI and I have it working and checking for most of our services except for one that keeps complaining about Java not being installed but it's definitely on the box.

Dell EMC OpenManage Step 1

Prerequisite Checks

Python version (2.7.5 / 3.6.3) or above is installed.
Python argparse module is installed.
Python netaddr module is installed.
OpenManage Python Software Development Kit (OMSDK) module is installed.

but on Step 2 it complains about no JAVA

Prerequisite Checks ‑ Services

SNMPTT is installed.
JAVA is not installed in "/usr/bin/java" path.

Warning:
JAVA is not installed or resolvable. You will not be able to monitor warranty information.

but it's definitely installed on the box
plugins]# /usr/bin/java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)

I also tried running the prereq check manually but it returns JAVA not installed
plugins]# ./prerequisitecheck.sh
SNMPTT is installed.<br>JAVA is not installed in "" path.<br>Python version (2.7.5 / 3.6.3) or above is installed.<br>Python argparse module is installed.<br>Python netaddr module is installed.<br> OpenManage Python Software Development Kit (OMSDK) module is installed.

That could be due to the JAVAHOME parameter passed? How does Nagios determine JAVA_HOME?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Dell EMC OpenManage Plug-In For NagiosXI Prereq Check Fa

Post by cdienger »

What permissions are set on /usr/bin/java? Try running it as nagios:

Code: Select all

su - nagios
/usr/bin/java -version 2>&1 | awk -F '"' '/version/ {print $2}'
that's single-quote, double-quote, single-quote for the -F option.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hul1
Posts: 50
Joined: Mon Jan 14, 2019 12:58 pm

Re: Dell EMC OpenManage Plug-In For NagiosXI Prereq Check Fa

Post by hul1 »

Code: Select all

[root@reslnnagios01 plugins]# su - nagios
Last login: Thu Aug  8 13:00:09 EDT 2019 on pts/4
[nagios@reslnnagios01 ~]$ /usr/bin/java -version 2>&1 | awk -F '"' '/version/ {print $2}'
1.8.0_212
Permissions are set as 755, it's a symlink to this
-rwxr-xr-x. 1 root root 7376 Apr 11 13:17 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin/java
hul1
Posts: 50
Joined: Mon Jan 14, 2019 12:58 pm

Re: Dell EMC OpenManage Plug-In For NagiosXI Prereq Check Fa

Post by hul1 »

Nevermind I figured it out. It was a mistake on my part, the host didn't have java installed. I was looking at the wrong host, that was our test box vs prod. I tested it works now. :D
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Dell EMC OpenManage Plug-In For NagiosXI Prereq Check Fa

Post by cdienger »

Glad to hear!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked