Mass update WMI credentials
Mass update WMI credentials
If I were to change my WMI credentials, how would I go about updating every host massively at once? The only way I can find to update the credentials is to go into the advanced CCM, select each service for each host and change it one at a time.
Re: Mass update WMI credentials
Macros are a rather efficient way to handle this situation:
https://assets.nagios.com/downloads/nag ... ponent.pdf
If the credentials are referenced via a macro, you'd just change the macro's value.
The check_wmi_plus plugin used by the WMI Configuration Wizard also supports the use of an "authentication file", which again creates a single reference to a shared set of credentials that can be easily rotated, templated, etc.
For your problem as it exists today, you could create a new command definition for your WMI checks that has the credentials baked right into the command definition (via macro or auth file, preferably), and do some clever things with the bulk modifications tool to apply this new check command to all of your existing WMI service checks.
https://exchange.nagios.org/directory/T ... ol/details
https://assets.nagios.com/downloads/nag ... ponent.pdf
If the credentials are referenced via a macro, you'd just change the macro's value.
The check_wmi_plus plugin used by the WMI Configuration Wizard also supports the use of an "authentication file", which again creates a single reference to a shared set of credentials that can be easily rotated, templated, etc.
For your problem as it exists today, you could create a new command definition for your WMI checks that has the credentials baked right into the command definition (via macro or auth file, preferably), and do some clever things with the bulk modifications tool to apply this new check command to all of your existing WMI service checks.
https://exchange.nagios.org/directory/T ... ol/details
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Mass update WMI credentials
mcapra is correct on all counts, do you have any questions on this or are we okay to mark this as resolved and lock the topic?