Page 1 of 1

Nagios XI - NSCLIENT Windows - 2 server

Posted: Tue Nov 20, 2012 10:08 am
by l.passe
Hello,

I have two servers.
I install two NSClient.
for the nagios server, it tells me:
NSClient - ERROR: Invalid password.
I want to change the port, how should I do?
Thank you.
Loïc.

Re: Nagios XI - NSCLIENT Windows - 2 server

Posted: Tue Nov 20, 2012 10:32 am
by l.passe
in the service, I add-p 12589
result:
CPU Usage
This service is flapping
Critical 13m 23s 5/5 2012-11-20 3:30:00 p.m. Connection refused

Drive C: Disk Usage
This service is flapping
Critical 12m 1s 5/5 2012-11-20 3:30:49 p.m. Connection refused

Drive E: Disk Usage
This service is flapping
Critical 10m 58s 5/5 2012-11-20 3:31:52 p.m. Connection refused

Memory Usage
This service is flapping
Critical 7m 17s 5/5 2012-11-20 3:30:33 p.m. Connection refused

Re: Nagios XI - NSCLIENT Windows - 2 server

Posted: Tue Nov 20, 2012 10:49 am
by BanditBBS
Look for NSC.ini in the folder you installed NSCLient. Modify that file and you can change password, allowed hosts and port...among other settings as well. If you change the password, you'd have to change it somewhere in nagios as well, but I have no clue where, as I have always just used the allowed hosts line to secure it.

Don't forget to restart the service when you make the changes.

Re: Nagios XI - NSCLIENT Windows - 2 server

Posted: Tue Nov 20, 2012 11:01 am
by gshergill
Hi Loïc and BanditBBS,

To add to Bandit's post, after making the changes he outlined, you define the password and the port in the resource.cfg file on the Nagios XI machine.

It may be different on your installation, but the default location of the file is here;

Code: Select all

/usr/local/nagios/etc/resource.cfg
$USER7$ is the port (default 12489) and $USER8$ is the password.

Hope this is helpful.

Kind Regards,

Gary Shergill

Re: Nagios XI - NSCLIENT Windows - 2 server

Posted: Tue Nov 20, 2012 11:10 am
by scottwilkerson
l.passe wrote:in the service, I add-p 12589
Actually the default port should be 12489