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.
Nagios xi - NSCLIENT Windows - 2 server
-
- Posts: 2
- Joined: Tue Nov 20, 2012 9:54 am
Re: Nagios xi - NSCLIENT Windows - 2 server
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
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
-
- Posts: 2474
- Joined: Tue May 31, 2011 12:57 pm
- Location: Scio, OH
Re: Nagios xi - NSCLIENT Windows - 2 server
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.
Don't forget to restart the service when you make the changes.
2 of xi5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
- Posts: 231
- Joined: Tue Aug 07, 2012 5:08 am
Re: Nagios xi - NSCLIENT Windows - 2 server
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;
$USER7$ is the port (default 12489) and $USER8$ is the password.
Hope this is helpful.
Kind Regards,
Gary Shergill
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
Hope this is helpful.
Kind Regards,
Gary Shergill
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nagios xi - NSCLIENT Windows - 2 server
Actually the default port should be 12489l.passe wrote:in the service, I add-p 12589