Page 2 of 2

Re: server port must be an integer

Posted: Tue Feb 23, 2016 2:56 pm
by hsmith
It's worth noting that telnet isn't installed by default usually. You'll have to yum -y install telnet.

Re: server port must be an integer

Posted: Wed Feb 24, 2016 7:32 am
by jatinder2jatin
something has changed and its new now .. it shows critical timeout now... please see attached error.

no firewall ... port allowed also in firewall for TCP and UDP both .. but my bad .. ;(

my check_nt looks like this
check_nt $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s password -v $ARG1$ $ARG2$


i have a question ... when i have multiple servers to monitor and all with different IPs and password how the check_nt will work.. how the variable of IP will get filled and where to put the password

Re: server port must be an integer

Posted: Wed Feb 24, 2016 8:14 am
by rhassing
Please do the following on the server you want to monitor an post the output:

Code: Select all

netstat -an
The $HOSTADDRESS$ is a macro for the ip address of the host you want to monitor.
I'm not sure what password do you mean? Do you have a different NRPE config on each server?

Re: server port must be an integer

Posted: Wed Feb 24, 2016 3:38 pm
by jolson
how the variable of IP will get filled and where to put the password
The IP address is taken from the host your service is attached to. That is what the $HOSTADDRESS$ macro does.

Check on the remote server and post your nsclient.cfg please - I'm interested in taking a look at it. You can find this on your remote Windows machine at C:\Program Files\NSClient++. It might also be called nsclient.ini