Page 1 of 1
NSClient Default Password
Posted: Wed Aug 27, 2014 7:47 am
by spiderpig82
Hi,
we are running Nagios Core 3.0
i would like to know where i can change the NSclient password for all my hosts.
any ideas?
Re: NSClient Default Password
Posted: Wed Aug 27, 2014 9:44 am
by tmcdonald
Are you looking to change the password on the hosts themselves (the Windows machines) or are you looking to change the password that Nagios is using to connect to the hosts?
If you want to change the password on the hosts, this cannot be done from within Nagios and you will need to edit the proper config file (on the host) based on which NSClient version you are using.
If you want to change the password Nagios is configured to use, there are typically three things people use:
1.) If you use a $USERX$ macro you can change this in the .../etc/resource.cfg file and restart Nagios
2.) If you use a $ARGX$ macro this will need to be changed in the appropriate service definition config file
3.) If the password is hard-coded into the command, you will need to edit the .../etc/commands.cfg file
Re: NSClient Default Password
Posted: Thu Aug 28, 2014 7:52 am
by spiderpig82
Hi tmcdonald,
thank you for the reply,
i'm talking about the remote host.
i got over 200 hosts, is there any way to bulk change the passwords?

Re: NSClient Default Password
Posted: Thu Aug 28, 2014 9:48 am
by tmcdonald
That is more of a Windows administration question. There is no way in Nagios to do this because they are separate projects written by separate groups.