Page 2 of 2

Re: hiding password for WMI queries

Posted: Fri Feb 20, 2015 3:11 am
by litsupport.box
abrist wrote:Nagios provides a locked down file for sensitive bit lits passwords and for strings that contain illegal macro characters:

Code: Select all

/usr/local/nagios/etc/resource.cfg 
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

$USER9$=<wmi user>
$USER10$=<wmi pass>
Now, edit the check to use the $USER9$ and $USER10$ macros in place of the actual credentials. Restart nagios and then you should be set!

EDIT: Bandit has a better answer - listen to him, ignore me :P
This works now. thanks.

Re: hiding password for WMI queries

Posted: Fri Feb 20, 2015 8:28 am
by sujitt
Why not a UI for it?

Re: hiding password for WMI queries

Posted: Fri Feb 20, 2015 11:18 am
by jomann
There currently isn't a UI for it but it could possibly be a feature to be able to edit that file through the UI.