NRPE: Unable to read output

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
katya
Posts: 224
Joined: Mon Aug 18, 2014 9:07 am

NRPE: Unable to read output

Post by katya »

Hi,

I saw in my Nagios server itself the follwoing error:
Feb 22 08:55:11 ssbpops01 nagios: SERVICE NOTIFICATION: nagiosadmin;mint04;JMX Memory;WARNING;notify-service-by-email;NRPE: Unable to read output

Can you please let me know where this field "notify-service-by-email" found in my remote server?

Thanks,
Katya.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRPE: Unable to read output

Post by dwhitfield »

It's hard to say with Core since people put things in different places, but I'd look in /usr/local/nagios/etc/objects/commands.cfg

If it's not there, some version of grep -r notify-service-by-email /usr/local/nagios should help. Just change your directory to your nagios directory, or just change it to / if you've got some time or you don't find it in your nagios directory.
katya
Posts: 224
Joined: Mon Aug 18, 2014 9:07 am

Re: NRPE: Unable to read output

Post by katya »

Hi,

I really need your help here.

I have two servers:

Nagios server-ssbpops01_10.146.1.100_linux server_RHEL
Remote host-Ssb-voor-01 server_ 168.162.97.143_unix server_Solaris

On the remote host I configured 7 plugins 1 of them not working:
Communication services-NRPE: Unable to read output, please see the following:
1. Under /apps/nagios/etc/nrpe.cfg I have the following line:
command[check_channels]=/apps/nagios/libexec/nagios-jmx-plugin-1.2.3/check_jmx -U service:jmx:rmi:///jndi/rmi://168.162.97.143:7780/jmxrmi -O echos.service:name=Email-Service,type=service -A Status -c "^Started.*|Disabled.*"
when I'm running it manually from the remote host it working:
with user root:
root@ssb-voor-01 ~$ /apps/nagios/libexec/nagios-jmx-plugin-1.2.3/check_jmx -U service:jmx:rmi:///jndi/rmi://168.162.97.143:7780/jmxrmi -O echos.service:name=Email-Service,type=service -A Status
JMX OK - Status = Started
With user Nagios:
[nagios@ssb-voor-01]:~ $ /apps/nagios/libexec/nagios-jmx-plugin-1.2.3/check_jmx -U service:jmx:rmi:///jndi/rmi://168.162.97.143:7780/jmxrmi -O echos.service:name=Email-Service,type=service -A Status
JMX OK - Status = Started

2. /usr/local/nagios/services.cfg on ssbpops server (Nagios server itself) :

define service{
use generic-service
host_name ssb-voor-01
service_description Communication Services
check_command check_nrpe!check_channels
check_interval 1
}

Can you please let me know why nrpe unable to read output on this plugin?

BTW' on all other remote hosts this plugin is working!

Thanks,
Katya
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE: Unable to read output

Post by tgriep »

Take a look at this post so see if this issue is resolved. It looks like another user is changing settings on the same server as you and any changes in the nrpe.cfg file could be conflicting with your settings.
https://support.nagios.com/forum/viewto ... =7&t=42577
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked