wmi-client for linux

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

Moderators: Developers, Moderators

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

wmi-client for linux

Post by spirit »

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: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Any results for first usage?
Reinhard
aragones
Posts: 14
Joined: Tue Sep 04, 2007 2:41 pm

Post by aragones »

Anyone muck around with this yet?
cigamit
Developer
Posts: 3363
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

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: 3363
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

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: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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:

Post by shull »

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

Post by tommyj »

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

Post by aragones »

Im using CentOS as well and Can deploy test VM Guests with Cacti for testing
cigamit
Developer
Posts: 3363
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

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 1764 times
denov
Posts: 2
Joined: Mon Nov 16, 2009 8:09 pm

namespaces

Post by denov »

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

Who is online

Users browsing this forum: No registered users and 2 guests