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    


Windows Process Template (WMI)

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
thisisharper



Joined: 01 Jul 2005
Posts: 31

PostPosted: Mon Sep 19, 2005 9:01 am    Post subject: Windows Process Template (WMI) Reply with quote

This is my first graph template so I'm hoping that it works for everyone else. If anyone could tell me how I could get the process name on the graph I'd give you a dollar... I can't figure out how to put text data sources onto the graph.


Process.JPG
 Description:
 Filesize:  39.21 KB
 Viewed:  3584 Time(s)

Process.JPG



Win32_PerfFormattedData_PerfProc_Process.pl.txt
 Description:
Put in scripts folder.

Download
 Filename:  Win32_PerfFormattedData_PerfProc_Process.pl.txt
 Filesize:  5.79 KB
 Downloaded:  604 Time(s)


w32_process_information.xml
 Description:

Download
 Filename:  w32_process_information.xml
 Filesize:  27.49 KB
 Downloaded:  479 Time(s)

Back to top
rdilallo



Joined: 05 Jun 2005
Posts: 17
Location: St. Louis, MO

PostPosted: Mon Sep 19, 2005 8:40 pm    Post subject: Reply with quote

This works great! Congrats!
How long did it take you to create the xml portion? I wanted to create a processor script (similar to what you did), but have been kind of nervous about creating the XML.

Thanks,
Robb
Back to top
thisisharper



Joined: 01 Jul 2005
Posts: 31

PostPosted: Tue Sep 20, 2005 8:55 am    Post subject: Reply with quote

Thankfully, you don't have to create the XML by hand. You do this inside Cacti be creating the Data Input Method then the Data Template and finally the Graph Template. The best way to do this for the first time is to open 2 instances of Cacti and refer back the the working graph while creating the new one. You'll also need to edit the WMI class in the Perl script to point the Processor class.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/retrieving_a_class.asp
Back to top
jengstro
Cacti User


Joined: 15 Nov 2005
Posts: 156

PostPosted: Tue Nov 15, 2005 12:17 pm    Post subject: Reply with quote

How do I know what to pull out of the XML file for the input/output fields? I have read through the cacti manual several times now but its just not clicking for me.
Back to top
jengstro
Cacti User


Joined: 15 Nov 2005
Posts: 156

PostPosted: Mon Nov 28, 2005 3:27 pm    Post subject: Reply with quote

I finally got this working.

Quick question though... what type of WMI/DCOM rights are required? I can pull stats local but any remote system polled returns an WMI error.

Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group