Re: hiding password for WMI queries
Posted: Fri Feb 20, 2015 3:11 am
This works now. thanks.abrist wrote:Nagios provides a locked down file for sensitive bit lits passwords and for strings that contain illegal macro characters:Create a new user macro at the bottom or resource.cfg, we will use $USER9$ and $USER10$ for this example (replace <wmi user> and <wmi pass> with the actual username and password, respectively):Code: Select all
/usr/local/nagios/etc/resource.cfgNow, edit the check to use the $USER9$ and $USER10$ macros in place of the actual credentials. Restart nagios and then you should be set!Code: Select all
$USER9$=<wmi user> $USER10$=<wmi pass>
EDIT: Bandit has a better answer - listen to him, ignore me