Page 1 of 1

Monitoring error

Posted: Wed Jan 23, 2013 4:10 pm
by gavinr98
Hello,

I have just setup a new server with Nagios and I am getting the following errors on the Windows Server that I setup... this is the error I get 'Server port must be an integer' I get this in the status information on all the servers that I am monitoring. Does anyone have any suggestions on how to fix this?

Thanks,
Gavin

Re: Monitoring error

Posted: Wed Jan 23, 2013 5:14 pm
by slansing
What version of Nagios Core are you running on?

Re: Monitoring error

Posted: Wed Jan 23, 2013 5:16 pm
by gavinr98
I am running NagiosĀ® Coreā„¢ 3.4.4 on Ubuntu 12.10

Thanks,
Gavin

Re: Monitoring error

Posted: Wed Jan 23, 2013 6:01 pm
by abrist
Are you using any $USERn$ macros? I assume this is pertaining to hosts running nsclient? Could you post a sample of one of your checks that are failing?

Re: Monitoring error

Posted: Wed Jan 23, 2013 6:19 pm
by gavinr98
They are all failing, I am using the default windows.cfg file, yes I am running the nsclient, if I try just a simple command from the shell like

/usr/local/nagios/libexec/check_nt -H 172.16.X.X -p xxxxx: -v CLIENTVERSION I get 'Server port must be an integer' (take a look at the attachment)

Thanks,
Gavin

Re: Monitoring error

Posted: Wed Jan 23, 2013 7:28 pm
by gavinr98
I think I may have figured out the problem, when I modified the commands.cfg file I added the password for check_nt, the problem was I needed to add "-s passsword" to the config. Looks like it is starting to work :)

Thanks,
Gavin

Re: Monitoring error

Posted: Thu Jan 24, 2013 10:49 am
by slansing
Sounds good Gavin, thanks for letting us know how you got this solved, we all get tripped up on little things sometimes :)