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
hiding password for WMI queries
-
litsupport.box
- Posts: 80
- Joined: Wed Apr 02, 2014 7:24 am
Re: hiding password for WMI queries
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
Re: hiding password for WMI queries
Why not a UI for it?
Re: hiding password for WMI queries
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.