Search found 26 matches

by pmoradiya
Wed Nov 15, 2017 6:35 pm
Forum: Open Source Nagios Projects
Topic: NRPE: UNKNOWN Can't connect to the JVM
Replies: 35
Views: 19284

Re: NRPE: UNKNOWN Can't connect to the JVM

pmoradiya , That might be the cause of this problem. When you're running the command with -u tomcat8 the system is trying to run it in a shell. Please enable the shell access for this user: 1. Open /etc/passwd file and look for tomcat8 username. 2. Change the ending from /sbin/nologin to /bin/bash ...
by pmoradiya
Tue Nov 14, 2017 12:53 pm
Forum: Open Source Nagios Projects
Topic: NRPE: UNKNOWN Can't connect to the JVM
Replies: 35
Views: 19284

Re: NRPE: UNKNOWN Can't connect to the JVM

pmoradiya , Can you manually switch to tomcat8 user and attempt to run the plugin? su - tomcat8 And then: /usr/bin/sudo -u tomcat8 /usr/local/nagios/libexec/check_jvm -n org.apache.catalina.startup.Bootstrap -p threads -w 195 -c 225 Does that work? I'd also modify permissions for JvmInspector.jar t...
by pmoradiya
Sat Nov 11, 2017 10:13 am
Forum: Open Source Nagios Projects
Topic: NRPE: UNKNOWN Can't connect to the JVM
Replies: 35
Views: 19284

Re: NRPE: UNKNOWN Can't connect to the JVM

pmoradiya , Can you upload your nrpe.cfg file? Also, since you're running the check from the tomcat8 user, I'd add another line in the sudoers file: tomcat8 ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/check_jvm Keep us updated on this. I have also added this line to sudoers but same result. I hav...
by pmoradiya
Fri Nov 10, 2017 2:09 pm
Forum: Open Source Nagios Projects
Topic: NRPE: UNKNOWN Can't connect to the JVM
Replies: 35
Views: 19284

Re: NRPE: UNKNOWN Can't connect to the JVM

Appreciate if anyone can point to any small or big part of configuration I might have missed.

Thanks.
by pmoradiya
Thu Nov 09, 2017 3:04 pm
Forum: Open Source Nagios Projects
Topic: NRPE: UNKNOWN Can't connect to the JVM
Replies: 35
Views: 19284

Re: NRPE: UNKNOWN Can't connect to the JVM

Hello, pmoradiya . Please make the following change in your sudoers file: Change: nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/ To: nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/check_jvm Let us know if that fixes your issue. I updated the sudoers file as suggested but the same resul...
by pmoradiya
Thu Nov 09, 2017 12:54 pm
Forum: Open Source Nagios Projects
Topic: NRPE: UNKNOWN Can't connect to the JVM
Replies: 35
Views: 19284

Re: NRPE: UNKNOWN Can't connect to the JVM

Have you checked the permissions of JvmInspector.jar and validated that the tomcat8 user is able to execute it? That would be my first thought. Yes. It has the same permission as on the other server where it is working. root@server2:/usr/local/bin# ls -l -rw-r--r-- 1 root root 4714063 Nov 3 17:02 J...
by pmoradiya
Thu Nov 09, 2017 11:33 am
Forum: Open Source Nagios Projects
Topic: NRPE: UNKNOWN Can't connect to the JVM
Replies: 35
Views: 19284

Re: NRPE: UNKNOWN Can't connect to the JVM

Additional information from the debug log at /usr/local/nagios/var/nrpe.log Showing WARNING as my_system() seteuid(0):Operation not permitted. [1510171606] Connection from 127.0.0.1 port 14494 [1510171606] is_an_allowed_host (AF_INET): is host >127.0.0.1< an allowed host >127.0.0.1< [1510171606] is_...
by pmoradiya
Thu Nov 09, 2017 11:26 am
Forum: Open Source Nagios Projects
Topic: NRPE: UNKNOWN Can't connect to the JVM
Replies: 35
Views: 19284

NRPE: UNKNOWN Can't connect to the JVM

Hi, I have found seemingly inconsistent behavior of NRPE (v.3.2.1). I am running check_jvm plugin on the monitored hosts. All hosts have NRPE installed and configured exactly the same way. However, NRPE command on couple of hosts is not able to connect to JVM. Here is the info on config: nrpe.cfg co...
by pmoradiya
Tue Oct 10, 2017 2:10 pm
Forum: Open Source Nagios Projects
Topic: NRPE: Unable to read output - Custom Plugin Script
Replies: 15
Views: 7246

Re: NRPE: Unable to read output - Custom Plugin Script

Quick update.. It got resolved by adding the following line for nagios in sudoers file. nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/ in place of.. nagios ALL= NOPASSWD: /usr/local/nagios/libexec/ root@prod-server-1:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_nrpe -H localhost...
by pmoradiya
Tue Oct 10, 2017 12:59 pm
Forum: Open Source Nagios Projects
Topic: NRPE: Unable to read output - Custom Plugin Script
Replies: 15
Views: 7246

Re: NRPE: Unable to read output - Custom Plugin Script

Have you restarted the xinetd service and are you still experiencing the same issue? That is correct. I have also tried directly using check_jvm plugin and updated my NRPE command as below: command[check_tomcat_heap]=/usr/bin/sudo -u tomcat7 /usr/local/nagios/libexec/check_jvm -n org.apache.catalin...