NRPE: Unable to read output in Solaris 10

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.
rahul.srivastava1
Posts: 21
Joined: Mon Feb 06, 2017 6:44 am

Re: NRPE: Unable to read output in Solaris 10

Post by rahul.srivastava1 »

Hi,

No, i still see the same errors.
The nrpe.cfg file is from /usr/local/nagios/etc/nrpe.cfg.

I ran the command that you gave. Here is the o/p.

root@ssbpmutu:/usr/local/nagios# inetadm -l svc:/network/nrpe/tcp:default
SCOPE NAME=VALUE
name="nrpe"
endpoint_type="stream"
proto="tcp"
isrpc=FALSE
wait=FALSE
exec="/usr/local/bin/tcpd -c /apps/nagios/etc/nrpe.cfg -i"
arg0="/apps/nagios/bin/nrpe"
user="nagios"
default bind_addr=""
default bind_fail_max=-1
default bind_fail_interval=-1
default max_con_rate=-1
default max_copies=-1
default con_rate_offline=-1
default failrate_cnt=40
default failrate_interval=60
default inherit_env=TRUE
default tcp_trace=TRUE
default tcp_wrappers=TRUE
default connection_backlog=10

I am always editing commands and using the plugins from usr/local/nagios/etc/nrpe.cfg path.
I do not use this /apps/nagios/etc/nrpe.cfg location at all. This path does not have all the plugins.

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

Re: NRPE: Unable to read output in Solaris 10

Post by tgriep »

The problem is that the NRPE service is set to use this config file.
exec="/usr/local/bin/tcpd -c /apps/nagios/etc/nrpe.cfg -i"

Add the commands in that file pointing to correct location and that should work for you.
Either that, or remove the service and follow the following link to reinstall the NRPE Agent.
http://bigunix.blogspot.com/2009/06/ins ... ugins.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
rahul.srivastava1
Posts: 21
Joined: Mon Feb 06, 2017 6:44 am

Re: NRPE: Unable to read output in Solaris 10

Post by rahul.srivastava1 »

Hi,

I understood what you suggested.
Let me do the changes and update you if that works.

Regards,
Rahul
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE: Unable to read output in Solaris 10

Post by rkennedy »

Sounds good - let us know if you have further questions.
Former Nagios Employee
rahul.srivastava1
Posts: 21
Joined: Mon Feb 06, 2017 6:44 am

Re: NRPE: Unable to read output in Solaris 10

Post by rahul.srivastava1 »

Hi All,

I changed the path of all commands and it worked.
Thanks for your support!

We can close this.

Regards,
Rahul
Locked