server port must be an integer

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: server port must be an integer

Post by hsmith »

It's worth noting that telnet isn't installed by default usually. You'll have to yum -y install telnet.
Former Nagios Employee.
me.
jatinder2jatin
Posts: 7
Joined: Tue Feb 23, 2016 5:26 am

Re: server port must be an integer

Post 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
Attachments
nagios.png
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: server port must be an integer

Post 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?
Rob Hassing
Image
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: server port must be an integer

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked