We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

check_jvm plugin - Can't connect to the JVM

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

check_jvm plugin - Can't connect to the JVM

Postby netanelp » Mon Feb 07, 2022 4:16 am

RESOLVED EDIT AT THE BOTTOM OF THE COMMENT

Hey guys,
I'm using check_jvm plugin with nagios 3.5.1 to monitor a server running Jira.
After a Jira software update I'm getting the following issue when trying to use the check.

Check command:
/usr/bin/sudo -u USER /usr/lib/nagios/plugins/check_jvm -p heap -n org.apache.catalina.startup.Bootstrap -p heap -w 13800000000 -c 14200000000


The output of this command:
UNKNOWN Can't connect to the JVM:
JVM pid: 36657
name: org.apache.catalina.startup.Bootstrap start
Exception: Non-numeric value found - int expected


I've tried to run this as root as well to make sure there was nothing changed with the permissions but i'm getting the same error.
Currently running Java version openjdk version "1.8.0_265"

Thanks!


EDIT:
As I did some more investigations I understood I needed to update the check_jvm plugin to a newer version(mine was from 2014),update the JvmInspector.jar to support java 11 and finally upgrade the java 8 on the machine to java 11.
Last edited by netanelp on Thu Feb 10, 2022 10:00 am, edited 1 time in total.
netanelp
 
Posts: 5
Joined: Mon Aug 02, 2021 3:47 am

Re: check_jvm plugin - Can't connect to the JVM

Postby mcapra » Tue Feb 08, 2022 7:58 pm

Which version of check_jvm are you using? Can you provide a copy of the plugin?

What version of Jira was previously used, and what version was it updated to?

Do you know what version of Tomcat/Java is being used by the Jira instance?

What is the output of these commands, executed from the CLI as root:
Code: Select all
java -jar "/opt/JvmInspector/JvmInspector.jar" "36657" 2>&1


Might need to change 36657 to whatever the current PID is for the Tomcat process, and your JvmInspector path if it's not what I provided above.
Former Nagios employee
https://www.mcapra.com/
User avatar
mcapra
 
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: check_jvm plugin - Can't connect to the JVM

Postby netanelp » Wed Feb 09, 2022 9:29 am

mcapra wrote:Which version of check_jvm are you using? Can you provide a copy of the plugin?

What version of Jira was previously used, and what version was it updated to?

Do you know what version of Tomcat/Java is being used by the Jira instance?

What is the output of these commands, executed from the CLI as root:
Code: Select all
java -jar "/opt/JvmInspector/JvmInspector.jar" "36657" 2>&1


Might need to change 36657 to whatever the current PID is for the Tomcat process, and your JvmInspector path if it's not what I provided above.


Hey,

Which version of check_jvm are you using? Can you provide a copy of the plugin?
---I wasn't able to find the version of the plugin,tried --version but got no results.

What version of Jira was previously used, and what version was it updated to?
--- Updated from 7.x.x to 8.20.5

Do you know what version of Tomcat/Java is being used by the Jira instance?
--- found on the Jira page 8.20 Application Server Apache Tomcat/8.5.65 Adopt OpenJDK 11.0.11+9


What is the output of these commands, executed from the CLI as root:
Code: Select all
java -jar "/opt/JvmInspector/JvmInspector.jar" "36657" 2>&1


Might need to change 36657 to whatever the current PID is for the Tomcat process, and your JvmInspector path if it's not what I provided above
--The Output of these commands are(as root)
Code: Select all
JVM pid: 32107
  name: org.apache.catalina.startup.Bootstrap start
Exception attaching or reading a jvm.well-known file /tmp/.java_pid32107 is not secure: file should be owned by the current user (which is 0) but is owned by 1001


When running the commands with UID 1001
Code: Select all
UNKNOWN Can't connect to the JVM:
JVM pid: 32107
  name: org.apache.catalina.startup.Bootstrap start
Exception: Non-numeric value found - int expected
netanelp
 
Posts: 5
Joined: Mon Aug 02, 2021 3:47 am

Re: check_jvm plugin - Can't connect to the JVM

Postby mcapra » Mon Feb 14, 2022 4:12 pm

You might try upgrading your JvmInspector
Former Nagios employee
https://www.mcapra.com/
User avatar
mcapra
 
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm


Return to Community Support

Who is online

Users browsing this forum: Google [Bot], matthew.rodriguez and 20 guests