Monitoring using WMI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Monitoring using WMI

Post by cwscribner »

Hi all.

I had an interesting note brought up to me recently in reference to monitoring with WMI and how that works with active directory. Here's the details...

If using WMI to monitor a machine, does the username and password have to be local on the machine or does the u:p pair just have to exist in Active Directory?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring using WMI

Post by lmiltchev »

I believe you can use it either way, however, you should have administrative rights to the local machine.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: Monitoring using WMI

Post by hhlodge »

Either way. I use a AD service account for all domain systems and local admin account for those not on the domain, such as those in a DMZ, etc. For ease of maintenance, if security allows it, set the password in a resource.cfg macro such as $USER10$ so you can use that in all your service checks and just change the macro value should the password change.
- Kyle
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Monitoring using WMI

Post by mguthrie »

Thats a good idea, thanks for the input!
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Re: Monitoring using WMI

Post by rseiwert »

I do use the $user8$ and $user9$ for the username and password. Important note, Samba likes passwords to be simple, no longer than 8 chars. I also was having authentification issues with the WMIC downloaded from Nagios Library. While the version numbers are the same there is a newer version that doesn't fail authentification out there. I have posted about this and a search should bring up more details.
Grumpy Olde IT Guy
Locked