check_nrpe on windows

hey all
i got a problem when i trying use the check_nrpe for my windows.
i got installed and cofigured in my windows the client, and the service is running
i receive the message: CHECK_NRPE: Socket timeout after 10s
./check_nrpe -H IP or Hostname (both)
if i use telnet IP 5666 connection is OK
when i use the ./check_nrpe -H ADDRESS and go to windows and do netstat -na |FIND “SERVER IP NAGIOS” i can see the connection estabelishend in port 5666
in linux, the nrpe works…
what can to be this???
Plz… anyone can helpe meee???
i try in another windows machine and its dont work…

regards;
cya

Hi!

I can see a number of reasons for this problem.
So, a good way to know where it may come from:

make sure that you have the line:
debug=1
in your nrpe.cfg file.

It will create a log named “nrpe_nt.log” in the nrpe directory.
Hopefully, it will log useful information that could help you :slight_smile: (or us if you post them here).

Hope this helps;
don’t hesitate to post again if not

hey loose

debug is 1

and this log of the last line… all lines is same… then…

2008-04-02 08:19:34; 3884; 4;Host 10.0.0.9 is not allowed to talk to us!

in my nrpe if I put the server_address i cant start the service in windows… then, i leave this line…
#server_address=10.0.0.9

this is my nrpe in windows…
in linux machine, the server_address is same of the windows… and its works…

PORT NUMBER

Port number we should wait for connections on.

server_port=5666

SERVER ADDRESS

Address that nrpe should bind to in case there are more than one interface

and you do not want nrpe to bind on all interfaces.

#server_address=10.0.0.9

ALLOWED HOST ADDRESSES

This is a comma-delimited list of IP address of hosts that are allowed

to talk to the NRPE daemon.

NOTE: The daemon only does rudimentary checking of the client’s IP

address.

allowed_hosts=127.0.0.0

COMMAND ARGUMENT PROCESSING

This option determines whether or not the NRPE_NT service will allow clients

to specify arguments to commands that are executed

*** ENABLING THIS OPTION IS A SECURITY RISK! ***

Values: 0=do not allow arguments, 1=allow command arguments

dont_blame_nrpe=0

DEBUGGING OPTION

This option determines whether or not debugging messages are logged to the

eventlog.

Values: 0=debugging off, 1=debugging on

debug=1

COMMAND TIMEOUT

This specifies the maximum number of seconds that the NRPE_NT service will

allow plugins to finish executing before killing them off.

command_timeout=60

INCLUDE CONFIG FILE

This directive allows you to include definitions from an external config file.

#include=<somefile.cfg>

INCLUDE CONFIG DIRECTORY

This directive allows you to include definitions from config files (with a

.cfg extension) in one or more directories (with recursion).

#NOTE: This option is currently ignored with NRPE_NT!
#include_dir=
#include_dir=

COMMAND DEFINITIONS

Command definitions that this daemon will run. Definitions

are in the following format:

command<command_name>]=<command_line>

When the daemon receives a request to return the results of <command_name>

it will execute the command specified by the <command_line> argument.

Unlike Nagios, the command line cannot contain macros - it must be

typed exactly as it should be executed.

Note: Any plugins that are used in the command lines must reside

on the machine that this daemon is running on! The examples below

assume that you have plugins installed in a D:\NRPE_NT

directory. Also note that you will have to modify the definitions below

to match the argument format the plugins expect. Remember, these are

examples only!

The following examples use no command arguments…

command[check_disk_c_win]=C:\Arquivos de programas\Nagios NRPE Agent\bin\check_pdm.exe --disk --drive C: -w 90 -c 95
command[pdm_disk_d]=check_pdm.exe --disk --drive D: -w 90 -c 95
command[pdm_cpuload]=check_pdm.exe --processor -w 50 -c 80
command[pdm_memload]=check_pdm.exe --memory -w 95 -c 99
command[nt_services]=service_nrpe_nt.exe "Event Log,DNS Client"
command[memory_nonpaged]=wincheck_counter.exe -C “Memory” -P “Pool Nonpaged Bytes” -f “Nonpaged memory pool is %.0f bytes.” -w 73400320 -c 94371840
command[nt_eventlog]=eventlog_nrpe_nt.exe -m 30 -s “Service Control Manager”

The following examples allow user-supplied arguments and can

only be used if NRPE_NT was compiled with support for

command arguments AND the dont_blame_nrpe directive in this

config file is set to ‘1’…

#command[check_arg]=D:\NRPE_NT\testarg.cmd $ARG1$
#command[check_arg]=D:\NRPE_NT\testarg.exe -H $ARG1$ -p $ARG2$

ty again

yeappp

its works now…

i put in allowed hostst nagios server IP and its works…

i need to fix now the parameter for disks…

in my web interface, in collumm Status information its bring the NRPE_NT version LOLZ

ty loose

we will talk a lot still