WMI index query HELP!!!!

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
cybersloth
Posts: 5
Joined: Tue Aug 02, 2005 6:55 am

WMI index query HELP!!!!

Post by cybersloth »

Afternoon,

Been trying now for days to get a index of the instances so we can get counter information for all selected instances…… (USING WMI / PL or VB script query (not snmp))

Has anyone been able to do this? Ive seen some on the site but they appear to have the same problem with no return if instances? Can someone please post up a sample template / query etc etc

Thanks
Rob
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

WMI uses windows security. Try running the script under an admin account. You also might need to adjust the WMI security settings on the machine you're trying to poll. Google for it.
cybersloth
Posts: 5
Joined: Tue Aug 02, 2005 6:55 am

thanks....

Post by cybersloth »

Thanks for the reply, it was a security issue where we set for IIS to have the rights to perform the query.


Here are the details from another cacti post.

Rob


Open the Internet Information Services MMC applet.

Right click your cacti website and select properties.
Under application settings, create an application if necessary.
Change the application protection to High (Isolated).
Apply the chages to the web site.

Open the Component Services MMC applet.

Expand Component Services -> My Computer -> COM+ Applications

Right click on IIS-{default Web Site//Root/[the application name in use for the website]} and select properties
Click on the Identity tab.

In "This user" change the username and password to an account that has access to the WMI repository of your remote machines.
Apply the settings and dismiss the window.

Stop and Start the web site or Restart IIS.

Because of the security implications of these changes, I highly recommend that access to this website be limited to trusted individuals and additional access controls used to gain access to it.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests