Opened 6 years ago

Closed 5 years ago

#96 closed defect (fixed)

"failed to create process" when using relative Path

Reported by: jkrueger Owned by: mickem
Priority: 5 Milestone: 0.3.0
Component: CheckSystem Version: 0.2.7
Severity: Support Requests Keywords:
Cc:

Description

I defined an NRPE handler in NSC.ini like this:

NagWinSsMon=c:\opt\nagios\perl\bin\perl -Ic:\opt\nagios\perl\lib c:\opt\nagios\libexec\alu_checkWinSs.pl

This works perfectly. But when I change the absolute path to a relative one like this:

NagWinSsMon=..\perl\bin\perl -I..\perl\lib ..\libexec\alu_checkWinSs.pl

a remote NRPE check whith

./check_nrpe -H <hostname> -c NagWinSsMon

complains with this error:

NRPE_NT failed to create process, exiting...

Locally (when starting the client with "nsclient++ /test" and injecting NagWinSsMon) it works perfectly:

d .\NSClient++.cpp(370) Injecting: NagWinSsMon:
d .\NSClient++.cpp(390) Injected Result: OK  --  alu_checkWinSs OK - 1 service OK (Apache)
d .\NSClient++.cpp(391) Injected Performance Result: services=1; ok=1; critical=0; unknown=0
OK:alu_checkWinSs OK - 1 service OK (Apache)|services=1; ok=1; critical=0; unknown=0
exit

What can be the problem ?

The debug log file doesn't show anything helpfull:

2007-10-10 16:07:00: debug:.\NSClient++.cpp:305: Loading plugin: NRPE server...
2007-10-10 16:07:00: error:.\PDHCollector.cpp:119: Attempting to open counter...
2007-10-10 16:07:00: error:.\PDHCollector.cpp:122: Counters opend...
2007-10-10 16:07:00: debug:.\NSClient++.cpp:305: Loading plugin: NSClient server...
2007-10-10 16:07:00: debug:.\NSClient++.cpp:305: Loading plugin: SystemTray...
2007-10-10 16:07:00: error:.\SysTray.cpp:40: SysTray is not installed (or it cannot interact with the desktop) SysTray wont be loaded. Run NSClient++ SysTray install ti change this.
2007-10-10 16:07:00: debug:c:\source\nscp\trunk\include\Socket.h:533: Bound to: 0.0.0.0:1248
2007-10-10 16:07:00: debug:c:\source\nscp\trunk\include\Socket.h:533: Bound to: 0.0.0.0:5666
2007-10-10 16:07:00: debug:c:\source\nscp\trunk\include\Socket.h:539: Socket ready...
2007-10-10 16:07:00: debug:c:\source\nscp\trunk\include\Socket.h:539: Socket ready...
2007-10-10 16:07:05: debug:.\NSClient++.cpp:370: Injecting: NagWinSsMon: 
2007-10-10 16:07:05: debug:.\NSClient++.cpp:390: Injected Result: UNKNOWN  --  NRPE_NT failed to create process, exiting...
2007-10-10 16:07:05: debug:.\NSClient++.cpp:391: Injected Performance Result: 

I have to use relative paths cause I use the same NSC.ini file for installations in different paths.

I use nsclient++ 0.2.7 on Windows XP, the server runs check_nrpe 2.7.1, nagios 3.0b3 on RHEL 4.3 .

Change History (1)

comment:1 Changed 5 years ago by mickem

  • Resolution set to fixed
  • Status changed from new to closed

will be fixed in the next nightly.

Note: See TracTickets for help on using tickets.