W32 - Process Stats Data Query Template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Author
Message
thisisharper
Posts: 31
Joined: Fri Jul 01, 2005 12:07 pm

W32 - Process Stats Data Query Template

#1 Post by thisisharper » Thu Sep 29, 2005 4:48 pm

Here is my first Data Query Template... Enjoy...
Attachments
cacti_graph_template_w32_process_stats.xml
import this template as a graph template.
(24.82 KiB) Downloaded 1397 times
w32_query_Process.pl.txt
put in your scripts directory.
(5.9 KiB) Downloaded 1433 times
W32ProcessStat.xml
put in your resourcescript_queries directory.
(1.58 KiB) Downloaded 1415 times

thisisharper
Posts: 31
Joined: Fri Jul 01, 2005 12:07 pm

#2 Post by thisisharper » Thu Sep 29, 2005 4:49 pm

Picture of the graph.
Attachments
Process.JPG
Process.JPG (115.44 KiB) Viewed 23612 times

Utildayael
Posts: 34
Joined: Wed Sep 14, 2005 9:25 am
Location: Omaha, NE

#3 Post by Utildayael » Mon Oct 03, 2005 2:57 pm

Hi forgive the n00bness. :)

When I make a graph using this data query, what do I put in for:

Index Type
Index Value
Output Type ID

???

Thx!

thisisharper
Posts: 31
Joined: Fri Jul 01, 2005 12:07 pm

#4 Post by thisisharper » Tue Oct 04, 2005 4:51 pm

Hey.. I'm a noob too =P

The data query should auto populate these fields. Did you put all the files in the proper directories above?

Utildayael
Posts: 34
Joined: Wed Sep 14, 2005 9:25 am
Location: Omaha, NE

#5 Post by Utildayael » Wed Oct 05, 2005 10:05 am

Ya I put everything in the directories as per your post. :)

It has all three of those fields blank. :(

thisisharper
Posts: 31
Joined: Fri Jul 01, 2005 12:07 pm

#6 Post by thisisharper » Fri Oct 07, 2005 5:18 pm

Did you take the .txt off the perl script?

Other than that I'm not skilled enought to help you unfortunately..

Is this working for anyone else?

Utildayael
Posts: 34
Joined: Wed Sep 14, 2005 9:25 am
Location: Omaha, NE

#7 Post by Utildayael » Tue Oct 11, 2005 9:14 am

Yup. Removed the .txt after the pl extension.

Bleh. :(

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

#8 Post by BSOD2600 » Tue Oct 11, 2005 11:23 am

When you manually run the perl script from the command line, does it return anything? If not, then you need to make sure you have Perl installed and in your system path.

Utildayael
Posts: 34
Joined: Wed Sep 14, 2005 9:25 am
Location: Omaha, NE

#9 Post by Utildayael » Wed Oct 19, 2005 9:35 am

Ya Perl works fine. I get this when I run the script:
Unable to talk to WMI for localhost.
Same error when I try other servers as well. All are Win2k Server SP4.

thisisharper
Posts: 31
Joined: Fri Jul 01, 2005 12:07 pm

#10 Post by thisisharper » Thu Oct 20, 2005 9:24 am

I fixed this by changing the account the the worker process runs under in IIS 6.0. The account I used has access to the WMI repository on the remote machine.

Steps:
1. Open the IIS Manager in Administrative Tools
2. Expand Application Pools
3. Right-Click DefaultAppPool (or the custom pool you have assigned to Cacti) and go to properties.
4. Select the Identity Tab
5. Select the Configurable Radio Button and type in the account that has rights for access to remote WMI access.
6. Add this domain account to the local IIS_WPG on the machine.
7. Issue a iisreset at a command prompt.

thisisharper
Posts: 31
Joined: Fri Jul 01, 2005 12:07 pm

#11 Post by thisisharper » Thu Oct 20, 2005 9:55 am

You'll need Windows Server 2003 for this to work properly.

Mika2006
Cacti User
Posts: 165
Joined: Thu May 03, 2007 2:25 am

#12 Post by Mika2006 » Mon Jun 18, 2007 5:17 am

thats works only on cacti on windows

i try on cacti linux i have this message on script execution:
[[email protected] scripts]# ./w32_query_process.pl
-bash: ./w32_query_process.pl: c:/perl/bin/perl: bad interpreter: Aucun fichier ou répertoire de ce type
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)

nymnul
Posts: 5
Joined: Thu Jul 12, 2007 4:16 pm

not working either...

#13 Post by nymnul » Thu Jul 12, 2007 4:19 pm

I installed it the way it has been described and all three fields are blank and asking for enties. COuld you give me an example having all three entries configured so the graph should be shown?

ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

#14 Post by ABX » Fri Jul 13, 2007 3:49 am

This script use WMI or SNMP queries?

nymnul
Posts: 5
Joined: Thu Jul 12, 2007 4:16 pm

WMI or SNMP

#15 Post by nymnul » Fri Jul 13, 2007 4:54 am

from look into the pl script for me it looks like SNMP

Post Reply