Monitoring error

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.
Locked
gavinr98
Posts: 22
Joined: Wed Jan 23, 2013 4:05 pm

Monitoring error

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring error

Post by slansing »

What version of Nagios Core are you running on?
gavinr98
Posts: 22
Joined: Wed Jan 23, 2013 4:05 pm

Re: Monitoring error

Post by gavinr98 »

I am running Nagios® Core™ 3.4.4 on Ubuntu 12.10

Thanks,
Gavin
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring error

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
gavinr98
Posts: 22
Joined: Wed Jan 23, 2013 4:05 pm

Re: Monitoring error

Post 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
Attachments
ScreenShot019.png
gavinr98
Posts: 22
Joined: Wed Jan 23, 2013 4:05 pm

Re: Monitoring error

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring error

Post by slansing »

Sounds good Gavin, thanks for letting us know how you got this solved, we all get tripped up on little things sometimes :)
Locked