Page 2 of 2

Re: NRPE: Unable to read output in Solaris 10

Posted: Tue Feb 07, 2017 1:22 pm
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

Re: NRPE: Unable to read output in Solaris 10

Posted: Tue Feb 07, 2017 1:54 pm
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

Re: NRPE: Unable to read output in Solaris 10

Posted: Wed Feb 08, 2017 10:20 am
by rahul.srivastava1
Hi,

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

Regards,
Rahul

Re: NRPE: Unable to read output in Solaris 10

Posted: Wed Feb 08, 2017 3:08 pm
by rkennedy
Sounds good - let us know if you have further questions.

Re: NRPE: Unable to read output in Solaris 10

Posted: Wed Feb 15, 2017 9:51 am
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