How to use WMI

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Eliran
Posts: 19
Joined: Sun Jul 10, 2011 8:22 am

How to use WMI

Post by Eliran »

Hi,

I know that is a noob's question, but i am a noob :P
How I can use, create and add WMI queries to Cacti?

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

Re: How to use WMI

Post by BSOD2600 »

This topic has been covered many times -- SEARCH.
Eliran
Posts: 19
Joined: Sun Jul 10, 2011 8:22 am

Re: How to use WMI

Post by Eliran »

I did searched this issue but all i get is how to set wmi from windows to cacti on linux.
can you please give me link to a manual or post to start with?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: How to use WMI

Post by BSOD2600 »

1) there are plenty of existing scripts either on the script forum and/or repository which are vbscript/wmi.
2) develop your wmi script to split out the data you're interested in and then follow the generic cacti script howto (document site) to make it work with cacti.
Eliran
Posts: 19
Joined: Sun Jul 10, 2011 8:22 am

Re: How to use WMI

Post by Eliran »

Thanks BSOD2600,
Can you give me a link please?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: How to use WMI

Post by BSOD2600 »

Looked in http://docs.cacti.net/ yet?
Eliran
Posts: 19
Joined: Sun Jul 10, 2011 8:22 am

Re: How to use WMI

Post by Eliran »

Yes I did, I did not find "howto" for that.
All of the "howto"s are about PHP and linux.
animalmother
Posts: 18
Joined: Tue Jan 25, 2011 7:04 pm

Re: How to use WMI

Post by animalmother »

Think the real question is, is there a template that can be imported so that I can "just do it"? Something like the Generic "Windows 2000/XP Host".

Without an "easy" WMI setup... Cacti isn't worth the free version of Zenoss http://www.zenoss.com/ that does the basics very well.

Not trying to sound snarky community, but I am not finding what the original post is looking for either.

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

Re: How to use WMI

Post by BSOD2600 »

animalmother wrote:Not trying to sound snarky community, but I am not finding what the original post is looking for either.
That is because this is a community driven project. Others who have made WMI scripts (via vbscript or powershell) have not contributed it publicly. Additionally, WMI queries do not scale well for hundreds of servers, which is why they're not favored. If you're running only a Windows shop, then something like Microsoft SCOM is a better tool for data collection/alerting since it integrates with Windows better.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests