Search found 43 matches
- Wed Jan 27, 2021 10:14 am
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
Hmmm. There is clearly something different between our environments if you were able to get it to work. I wonder what it is? NRPE runs as the "nrpe" user on RHEL 8. In previous posts in this thread we've already gone over things like users, permissions, and sudo configuration and did not f...
- Fri Jan 22, 2021 9:59 am
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
RHEL 8 has Java 8, Debian 10 has Java 11. Both have the correct versions of JvmInspector. (The jdk6 version is about 4.5 MB, the jdk11 version is about 7 kB.) The RHEL 8 machine: [root@lnx-b9ssb-devl ~]# java -version openjdk version "1.8.0_275" OpenJDK Runtime Environment (build 1.8.0_275...
- Wed Jan 20, 2021 10:29 am
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
Ah, OK. Thank you for the explanation about variables. I see what you're getting at then. Before starting this thread i did some exploration into variables, since i thought that could be the problem as well. But i was never able to solve it by setting variables. Anyway, the strace looks like it give...
- Fri Jan 15, 2021 11:36 am
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
I'm not sure how adding variables from Tomcat's account will help, since JvmInspector doesn't work under the Tomcat account either (note that the PID changed from before because i rebooted the system recently): [root@lnx-cms-test ~]# su - tomcat [tomcat@lnx-cms-test /]$ ps ax | grep java 639 ? Ssl 3...
- Wed Jan 13, 2021 4:58 pm
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
No luck on that one, JvmInspector still returns no output.
Code: Select all
[root@lnx-cms-test /]# su -s /bin/bash tomcat
tomcat@lnx-cms-test:/$ env -i timeout 7 java -jar /usr/local/libexec/JvmInspector.jar 645
tomcat@lnx-cms-test:/$ echo $?
0- Wed Jan 13, 2021 10:41 am
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
OK, i tried that. JvmInspector doesn't return any output. I tried trimming the command down to just the java part and it still returns no output. Then i used ps to show that the PID 645 was correct; it is the Tomcat process, and is the only Java process running. So would it be fair to say that the J...
- Tue Jan 12, 2021 9:05 am
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
Yes, on RHEL 8 the command works except when run from NRPE . The Debian machine runs Java 11 and has the Java 11 version of JvmInspector that was just released a month ago : # java -version openjdk version "11.0.9.1" 2020-11-04 OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb...
- Mon Jan 11, 2021 12:10 pm
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
Here's output from the RHEL 8 machine (command adjusted slightly for system-specific differences): # /usr/bin/sudo -u tomcat8 bash -x /usr/lib64/nagios/plugins/check_jvm -n org.apache.catalina.startup.Bootstrap -p heap -w 90 -c 101 + JVMINSPECTOR=/usr/local/libexec/JvmInspector.jar + export PATH=/us...
- Thu Jan 07, 2021 9:27 am
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
This is from a RHEL 8 test machine: # ps axo pid,uid,command | grep java 289830 982 /usr/lib/jvm/jre/bin/java -Xms14336M -Xmx14336M -Dbanner.logging.dir=/var/log/tomcat8 -XX:MaxMetaspaceSize=2048m -classpath /usr/share/tomcat8/bin/bootstrap.jar:/usr/share/tomcat8/bin/tomcat-juli.jar: -Dcatalina.base...
- Tue Jan 05, 2021 10:00 am
- Forum: Nagios XI
- Topic: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
- Replies: 26
- Views: 5626
Re: NRPE sudo check_jvm not working on RHEL 8 or Debian 10
Hello again! Sorry for the slow reply; we were closed down for holiday break. That PSLINE patch is a good catch. It doesn't fix things on my system though. And i can just manually run the old PSLINE and the new PSLINE at the command line and see that the output is the same: # NAME=org.apache.catalin...