Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[HOWTO] Fetching WMI data from Linux
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
felimwhiteley



Joined: 10 Dec 2007
Posts: 24

PostPosted: Wed Oct 01, 2008 6:23 am    Post subject: Reply with quote

In case it's of use, here's a small python wrapper script to get a Dictionary of data back. Might make it easy for someone to write more plugins/queries based on it.

http://felimwhiteley.wordpress.com/2008/10/01/using-python-to-retrieve-wmi-data-using-wmic/
Back to top
felimwhiteley



Joined: 10 Dec 2007
Posts: 24

PostPosted: Wed Oct 01, 2008 6:24 am    Post subject: Reply with quote

anx wrote:
I've posted a template using wmic here:

http://forums.cacti.net/viewtopic.php?p=143047


Good stuff anx, must say I'm not a fan of Perl though It's all gibberish to me ! Nice plugin though
Back to top
anx



Joined: 28 Apr 2007
Posts: 21
Location: Melbourne, Australia

PostPosted: Wed Oct 01, 2008 10:14 am    Post subject: Reply with quote

I have a few more that I need to post as well, these are again Perl based as they are based on some templates James Dastrup did for Zenoss.

I've added some pictures of the cpu and memory graphs. I still have some Disk IO and other bits to finalize then I'll post the templates and the script.

I favor Python myself and after the templates I am working on now are done, I'll be using your wrapper for future WMI templates, nice work.



mem.png
 Description:
 Filesize:  37.17 KB
 Viewed:  870 Time(s)

mem.png



cpu.png
 Description:
 Filesize:  31.49 KB
 Viewed:  870 Time(s)

cpu.png


Back to top
felimwhiteley



Joined: 10 Dec 2007
Posts: 24

PostPosted: Tue Nov 04, 2008 5:37 am    Post subject: Reply with quote

anx wrote:
I have a few more that I need to post as well, these are again Perl based as they are based on some templates James Dastrup did for Zenoss.


Have you had any time to write them up at all ? I've been busy on some other stuff, looking to get back into my Windows plugins again. If I've anything useful for you I'll post it in next couple of days.
Back to top
anx



Joined: 28 Apr 2007
Posts: 21
Location: Melbourne, Australia

PostPosted: Tue Nov 04, 2008 7:01 am    Post subject: Reply with quote

Good question, actually yes they are finished apart from terminal server sessions. Now is a good a time as any to do that graph, I'll upload the lot in about an hour.
Back to top
felimwhiteley



Joined: 10 Dec 2007
Posts: 24

PostPosted: Tue Nov 04, 2008 7:17 am    Post subject: Reply with quote

Fantastic, cheers anx
Back to top
anx



Joined: 28 Apr 2007
Posts: 21
Location: Melbourne, Australia

PostPosted: Tue Nov 04, 2008 8:40 am    Post subject: Reply with quote

Done. Thread is here:

http://forums.cacti.net/viewtopic.php?p=148110
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group