NSClient Default Password

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
spiderpig82
Posts: 22
Joined: Wed Aug 27, 2014 7:29 am

NSClient Default Password

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NSClient Default Password

Post 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
Former Nagios employee
spiderpig82
Posts: 22
Joined: Wed Aug 27, 2014 7:29 am

Re: NSClient Default Password

Post 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? :)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NSClient Default Password

Post 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.
Former Nagios employee
Locked