hiding password for WMI queries

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: hiding password for WMI queries

Post 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.
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
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Re: hiding password for WMI queries

Post by sujitt »

Why not a UI for it?
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: hiding password for WMI queries

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked