server port must be an integer
-
jatinder2jatin
- Posts: 7
- Joined: Tue Feb 23, 2016 5:26 am
server port must be an integer
sorry admin/ moderator
just realized i have posted my last post in nagios XI and i could not find option to move here
guys i need help with above error.
attached is error screen + windows.cfg and commands.cfg
just realized i have posted my last post in nagios XI and i could not find option to move here
guys i need help with above error.
attached is error screen + windows.cfg and commands.cfg
- Attachments
-
windows.cfg- (3.91 KiB) Downloaded 486 times
-
commands.cfg- (7.52 KiB) Downloaded 511 times
Re: server port must be an integer
I see your commands.cfg contains the following:
The port you specify "XXXXXX" is not realy a port number and should be the port you want to connect to.
Code: Select all
# 'check_nt' command definition
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p XXXXXXX -v $ARG1$ $ARG2$
}
Rob Hassing


-
jatinder2jatin
- Posts: 7
- Joined: Tue Feb 23, 2016 5:26 am
Re: server port must be an integer
hi
that XXXXXXX was my password for the windows client...
i changed it to XXXXX
but you talking about some port.. can you please help
also how can i check if i have check_nt properly installed/configured and is working fine.
that XXXXXXX was my password for the windows client...
i changed it to XXXXX
but you talking about some port.. can you please help
also how can i check if i have check_nt properly installed/configured and is working fine.
Re: server port must be an integer
Code: Select all
Usage:
check_nt -H host -v variable [-p port] [-w warning] [-c critical]
[-l params] [-d SHOWALL] [-u](DEPRECATED) [-t timeout]
Rob Hassing


Re: server port must be an integer
Code: Select all
Notes:
- The NSClient service should be running on the server to get any information
(http://nsclient.ready2run.nl).
- Critical thresholds should be lower than warning thresholds
- Default port 1248 is sometimes in use by other services. The error
output when this happens contains "Cannot map xxxxx to protocol number".
One fix for this is to change the port to something else on check_nt
and on the client service it's connecting to.
Rob Hassing


-
jatinder2jatin
- Posts: 7
- Joined: Tue Feb 23, 2016 5:26 am
Re: server port must be an integer
hi rob thanks
i changed the -p value to "-p 1248" and now i am having the socket error.. i believe i have done stupid mistake but me being new here not been able to troubleshoot much
greatful if u can help
i changed the -p value to "-p 1248" and now i am having the socket error.. i believe i have done stupid mistake but me being new here not been able to troubleshoot much
greatful if u can help
Re: server port must be an integer
Do you have the nsclient installed on the server you are trying to monitor?
Rob Hassing


-
jatinder2jatin
- Posts: 7
- Joined: Tue Feb 23, 2016 5:26 am
Re: server port must be an integer
yes complete package installed and configured as instructed in the manuals
Re: server port must be an integer
To test if the connectivity is working, you could always try to do a telnet to the server on this port:
Or maybe you have a firewall installed on the windows server?
Code: Select all
telnet 192.168.0.251 1248 Rob Hassing

