NRPE_NT Error: NRPE_NT failed to create process, exiting...

Stover, Beth BStover at NorcalMutual.com
Fri Nov 30 19:44:48 CET 2007


I took another stab at it:

 

I created another batch script that merely calls the original one.  When I executed the check_nrpe command from the nagios server, I got the same error.  I restored the original script by renaming it.  I tested it again, and it worked this time.  I have no idea why this worked.

 

Beth Stover
Systems Administrator
415.395.8768 

________________________________

From: hjbcn [mailto:hjbcn at 126.com] 
Sent: Thursday, November 29, 2007 5:24 PM
To: Stover, Beth
Subject: Re: [Nagios-users] NRPE_NT Error: NRPE_NT failed to create process,exiting...

 

May be you should rename your plugin, like "test.bat".

 

I Installed NSClient in Windows XP, and define a command like this

 

check_mail_size=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:MAIL=G:\MAIL\*.*
nrpe_ok="C:\Program Files\NSC\scripts\ok.bat"
check_os_version="C:\Program Files\NSC\scripts\osver.bat"
check_system_dir="C:\Program Files\NSC\scripts\SysDir.bat"

 

 

and define a service like this


define command{
        command_name check_nt_nrpe
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$
        }

 

define service{
        name                            service_check_os_version_win
        use                              generic-service
        service_description         Win Server OS Version
        check_command             check_nt_nrpe!check_os_version
        register                         0
        }

 



 

 

 

2007-11-30 

________________________________

hjbcn 

________________________________

发件人: Stover, Beth 

发送时间: 2007-11-30  05:42:57 

收件人: nagios-users at lists.sourceforge.net 

抄送: 

主题: [Nagios-users] NRPE_NT Error: NRPE_NT failed to create process,exiting... 

Hi there,

I’m trying to use NRPE to monitor remote Windows XP machines for the first time.

Nagios version 2.8.  I have installed check_nrpe on the Nagios server.

Windows XP SP2 is the remote host.   I installed NRPE_NT Version: 0.7f/2.0 on the XP machine.

I edited the nrpe.cfg with the basic info including the following command definition:

command[check_cmd]=c:\nrpe\test.cmd

Test.cmd is on the XP machine in the following location:  c:\nrpe\test.cmd.  Here are the contents:

@echo off

echo hallo from cmd

exit 1

I do a basic test from the Nagios server like this and it works:

/usr/local/nagios/libexec/check_nrpe -H 192.168.1.10                

NRPE_NT v0.7f/2.0

Next, I try executing the remote cmd file, and this is where I get the error:

/usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 -c check_cmd

NRPE_NT failed to create process, exiting...

There’s nothing in the Windows event log.  Nothing interesting in the nagios.log.

Am I missing something totally simple?

Thanks so much…

Beth Stover
Systems Administrator
415.395.8768

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071130/4d37fd54/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list