[solve] inetd solaris 10 nrpe


#1

Hello…
I have a problem with nrpe on solaris 10.
I have already install nrpe on solaris 2.6 and 2.8.

But here, in /etc/inetd.conf I write :
nrpe stream tcp nowait nagios /usr/local/nagios/bin/nrpe /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -i

And I do inetconv to translate this line in smb.
It’s all right, the nrpe port listenning.

But when I execute check_nrpe in my nagios host I have this result :
CHECK_NRPE: Received 0 bytes from daemon.

And in my remote server in file /var/adm/messages I have this error :
Apr 6 16:47:59 testemil inetd[582]: [ID 702911 daemon.error] Failed to set credentials for the inetd_start method of instance svc:/network/nrpe/tcp:default (chdir: No such file or directory)

Do you have any idea for resolve my problem??

Thx.
Lime
Edited ]


#2

My first guess would be “/network/nrpe/tcp No such file or directory”


#3

Solaris make the file /network/nrpe-tcp.xml with inetconv.
The refrence /network/nrpe/tcp is the name of the application called by inetd.
But in doubt I create the files :
/network/nrpe/tcp.xml
/nrpe-tcp.xml
/tcp/nrpe-tcp.xml
/tcp/tcp.xml
And the result is the same…

But the command chdir is not defined, is there a possibility?


#4

Sorry, you lost me. I am of no help, since I don’t use nrpe.


#5

The solution is :
Create a directory for the user nagios.

Thanks for your help.

lime


#6

Hi,

my nagios server is on RHEL5 , i have installed nagios-plugins-1.4.13 and nrpe-2.12. But when i check NRPE on the remote server(locally) its not working …

bash-3.00# /usr/local/nagios/libexec/check_nrpe -H localhost; tail -f /var/adm/messages
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Oct 8 12:37:58 term-ser inetd[21119]: [ID 702911 daemon.error] Failed to set credentials for the inetd_start method of instance svc:/network/nrpe/tcp:default (chdir: No such file or directory)

I have installed it correctly… but i am unable to understand the logs…

Can ne 1 help me out here …

Thanks