wmi-client for linux

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
spirit
Posts: 4
Joined: Tue Mar 29, 2005 4:05 am

wmi-client for linux

#1 Post by spirit » Fri Oct 12, 2007 8:08 am

i've found this

http://packages.ubuntu.com/gutsy/python/wmi-client

a native wmi client for linux, perhaps we could now make scripts to pool windows counter :)

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#2 Post by gandalf » Sun Oct 14, 2007 3:42 pm

Any results for first usage?
Reinhard

aragones
Posts: 14
Joined: Tue Sep 04, 2007 2:41 pm

#3 Post by aragones » Mon Oct 22, 2007 9:44 am

Anyone muck around with this yet?

cigamit
Developer
Posts: 2782
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

#4 Post by cigamit » Fri Oct 26, 2007 9:48 pm

Trying to compile for Centos 4, no luck so far.


EDIT: Got it working, seems to work fine with a few minor tests! This is great!

cigamit
Developer
Posts: 2782
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

#5 Post by cigamit » Fri Oct 26, 2007 10:49 pm

I have created a PHP Class to help with executing the binary, and parsing the results. Now to create some graphs.

If anyone wants the compiled binary for Centos (it does require a few shared libraries) and the script, let me know.

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#6 Post by gandalf » Sat Oct 27, 2007 7:18 am

Hi Jimmy,
knowing you are really busy with plugins and stuff, it would be very nice to have some words howto use this stuff. I only need a start. If I understand, I do a full writeup for a HowTo at http://docs.cacti.net
Reinhard

shull
Cacti User
Posts: 54
Joined: Thu Aug 24, 2006 1:20 am
Location: South Texas
Contact:

#7 Post by shull » Sat Oct 27, 2007 10:07 am

I use CentOS. I would love to give it a try if you have it done. Where can I get it?

Thanks a bunch!


-Stephen
www.cactiexchange.com -- Hosted Tools for the Cacti Community:
Cacti Perl Tool
Cacti XML Tool
Search OID-to-Names

[url=http://www.google.com/search?num=100&hl=en&safe=off&domains=forums.cacti.net&q=cacti&sitesearch=forums.cacti.net]Cacti Forums Google Index -- Better than the main page version![/url]

tommyj
Posts: 43
Joined: Thu Jun 23, 2005 5:16 pm
Location: Stockholm, Sweden

#8 Post by tommyj » Sun Oct 28, 2007 2:22 am

Looks interesting! Count me in as a betatester if you need some :) I'm on CentOS / Cigamits CactiEZ 02

aragones
Posts: 14
Joined: Tue Sep 04, 2007 2:41 pm

#9 Post by aragones » Mon Oct 29, 2007 9:57 am

Im using CentOS as well and Can deploy test VM Guests with Cacti for testing

cigamit
Developer
Posts: 2782
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

#10 Post by cigamit » Mon Oct 29, 2007 10:44 am

I am currently writing a plugin to help integrate this into Cacti. Basically what I envision is having an area to create "authentication credentials" (basically the username / password set are stored) and then you can set the different hosts to use a specific account for authentication (so don't have to retype them over and over). From there the class will lookup the host, and pull the appropriate username password out of the database (then decrypt the password) and pass that to the binary. This will help save some time and sanity I believe.

The class is currently simplistic, I plan on adding functions to pull out the exact data you want (kinda like a SQL query on an array) but until then you can play with the example I give.
Attachments
wmi.zip
(1.52 MiB) Downloaded 1743 times

denov
Posts: 2
Joined: Mon Nov 16, 2009 8:09 pm

namespaces

#11 Post by denov » Mon Nov 16, 2009 8:13 pm

is there a way to change the name space for the search this cigamit? it looks like possible with http://manpages.ubuntu.com/manpages/jau ... mic.1.html. i'm not sure what version you compiled. i've tried compiling the lastest but running into problem with swig and python on cent 5.

Post Reply