Page 1 of 1

Dell EMC OpenManage Plug-In For NagiosXI Prereq Check Failin

Posted: Thu Aug 08, 2019 11:58 am
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?

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

Posted: Thu Aug 08, 2019 3:35 pm
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.

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

Posted: Fri Aug 09, 2019 8:23 am
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

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

Posted: Fri Aug 09, 2019 11:42 am
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

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

Posted: Fri Aug 09, 2019 12:43 pm
by cdienger
Glad to hear!