[Nagiosplug-help] NRPE deamon vs xinetd

Robert Lowe Robert.H.Lowe at lawrence.edu
Fri May 5 09:11:05 CEST 2006


Gilbert MARIN wrote:

Sorry, I didn't read far enough ahead...
> that's right
> 
> in logs I have permission denied (errno = 13)

Can you su to the nagios user and execute the command that
xinetd will?  I'm guessing not, since you have a permission
denied error (which is errno 13).  Fix that problem, and you
should be fine!

-Robert

> If I run xinetd in debug mode (xinetd -d) I have this:
> 
> Service defaults
> 
>         Instances = 60
> 
>         CPS = max conn:25 wait:30
> 
>         Bind = All addresses.
> 
>         Only from: All sites
> 
>         No access: No blocked sites
> 
>         Logging to syslog. Facility = authpriv, level = info
> 
>         Log_on_success flags = HOST PID
> 
>         Log_on_failure flags = HOST
> 
> 
> 
> Service configuration: nrpe
> 
>         id = nrpe
> 
>         flags = REUSE IPv4
> 
>         socket_type = stream
> 
>         Protocol (name,number) = (tcp,6)
> 
>         port = 5666
> 
>         wait = no
> 
>         user = 12602
> 
>         group = 54324
> 
>         Groups = no
> 
>         PER_SOURCE = -1
> 
>         Bind = All addresses.
> 
>         Server = /usr/local/nagios/bin/
> 
>         Server argv =  -c /usr/local/nagios/bin/nrpe.cfg --inetd
> 
>         Only from:  192.168.0.254(NUMERIC)
> 
>         No access: No blocked sites
> 
>         Logging to syslog. Facility = authpriv, level = info
> 
>         Log_on_success flags = HOST PID
> 
>         Log_on_failure flags = HOST USERID
> 
> 
> 
> and when I check from the nagios server:
> 
> check_nrpe -H 192.168.0.3 - c check_command
> 
> 
> 
> 06/5/5 at 17:54:42: DEBUG: 4405 {cnf_start_services} Started service:
>  nrpe
> 
> 06/5/5 at 17:54:42: DEBUG: 4405 {cnf_start_services} mask_max = 6,
>  services_started = 1
> 
> 06/5/5 at 17:54:42: NOTICE: 4405 {main} xinetd Version 2.3.13 started
>  with libwrap loadavg options compiled in.
> 
> 06/5/5 at 17:54:42: NOTICE: 4405 {main} Started working: 1 available
>  service
> 
> 06/5/5 at 17:54:42: DEBUG: 4405 {main_loop} active_services = 1
> 
> 06/5/5 at 17:54:55: DEBUG: 4405 {main_loop} select returned 1
> 
> 06/5/5 at 17:54:55: DEBUG: 4405 {server_start} Starting service nrpe
> 
> 06/5/5 at 17:54:55: DEBUG: 4770 {exec_server} duping 7
> 
> 06/5/5 at 17:54:55: ERROR: 4770 {exec_server} execv( /usr/local/nagios/bin/
>  ) failed: Permission denied (errno = 13)
> 
> 06/5/5 at 17:54:55: DEBUG: 4405 {main_loop} active_services = 1
> 
> 06/5/5 at 17:54:55: DEBUG: 4405 {main_loop} select returned 1
> 
> 06/5/5 at 17:54:55: DEBUG: 4405 {check_pipe} Got signal 17 (Child exited)
> 
> 06/5/5 at 17:54:55: DEBUG: 4405 {child_exit} waitpid returned = 4770
> 
> 06/5/5 at 17:54:55: DEBUG: 4405 {server_end} nrpe server 4770 exited
> 
> 06/5/5 at 17:54:55: INFO: 4405 {conn_free} freeing connection
> 
> 06/5/5 at 17:54:55: DEBUG: 4405 {child_exit} waitpid returned = -1
> 
> 06/5/5 at 17:54:55: DEBUG: 4405 {main_loop} active_services = 1
> 
> 
> 
> 
> 
> There is always the errno =13
> 
> Any idea ?
> 
> Thanks
> 
> 
> 
> 
> 
> - Gilbert MARIN (gmarin)
> 
> 
> 
> -----------------------
> 
> This thread is located in the archive at this URL:
> 
> http://www.nagiosexchange.org/nagiosplug-help.32.0.html?&tx_maillisttofaq
> _pi1[showUid]=17892
> 
> 					
> 
> 
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null




More information about the Help mailing list