Win32 - Monitor running processes

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

Moderators: Developers, Moderators

Post Reply
wadimnik
Posts: 1
Joined: Thu Sep 07, 2006 3:54 am

Post by wadimnik »

BSOD2600 wrote:1) Is the Re-Index Method set to Index Count Changed or Verify All Fields ?
2) In Data Source section, did you change the Index Type to hrSWRunName ?
3) Click on verbose query and paste the output.
4) Turn on debugging and paste the relivant section for the process(es) you're monitoring.
1)The Re-Index Method is set to Index Count Changed,
but i have tried both.

2) I can'ti change it to hrSWRunName

help me. wats wrong ???

[/img]
Attachments
zrzutekranu1.png
zrzutekranu1.png (161.94 KiB) Viewed 11252 times
zrzutekranu2.png
zrzutekranu2.png (162.15 KiB) Viewed 11252 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Turn the logging level to debug for a cycle and look at when cacti tries to poll the process from the remote windows machine. What gets returned?

What cacti / cactid version?
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

also what's kind of language on brower? can't read it.
User avatar
rcaston
Cacti User
Posts: 204
Joined: Tue Jan 06, 2004 7:47 pm
Location: US-Dallas, TX
Contact:

CPU Usage?

Post by rcaston »

I'm a bit confused by my ouput; according to several of the cpu usage graphs generated by this monitor; a process I am running is producing a value of 200+ ...


What does CPU Usage = 200+ mean? ...
Attachments
Server.JPG
Server.JPG (27.07 KiB) Viewed 11165 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Hmm, interesting. What os / versions?

1) Does that computer have several CPU's?
2) Is the application you're monitoring multi-cpu aware -- as in does it actually use both cpus?
3) Do any other processes return over 100% usage?

Basically this script collects the cpu usage every 5 minutes and does some math to spit out the percent used You can check the usage in task manager and showing the cpu time column.
User avatar
rcaston
Cacti User
Posts: 204
Joined: Tue Jan 06, 2004 7:47 pm
Location: US-Dallas, TX
Contact:

Post by rcaston »

BSOD2600 wrote:Hmm, interesting. What os / versions?

1) Does that computer have several CPU's?
2) Is the application you're monitoring multi-cpu aware -- as in does it actually use both cpus?
3) Do any other processes return over 100% usage?

Basically this script collects the cpu usage every 5 minutes and does some math to spit out the percent used You can check the usage in task manager and showing the cpu time column.
OS: Win2K3 / Cacti 0.8.6h

1) dual proc hyperthreaded server.

2) yes.

3) no, on the box itself; via taskbar; no process is running over 100%
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Turn the logging level to medium or high for a while so you can monitor what the script returns. Post several polling cycles worth of data for this process.

Are you monitoring any other processes that show over 100% utilization?
User avatar
rcaston
Cacti User
Posts: 204
Joined: Tue Jan 06, 2004 7:47 pm
Location: US-Dallas, TX
Contact:

yep

Post by rcaston »

So far it's just a SQLserver doing it; The process im monitoring is the w3wp.exe process on all our w2k systems.

I'll post the logs soon.
cacti_008
Posts: 2
Joined: Mon Nov 06, 2006 1:56 am

What mean is the value of hrSWRunPerfCpu ?

Post by cacti_008 »

Hi,ALL:

what mean is the value of hrSWRunPerfCpu?
what unit is the value?
and how can we conversion the value to cpu usage percent?
Attachments
hrSWRunPerfCpu.jpg
hrSWRunPerfCpu.jpg (66.23 KiB) Viewed 10993 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Google is your friend.

Also, I put in the description into the data input method.
# hrSWRunPerfCPU
"The number of centi-seconds of the total system's CPU resources consumed by this process. Note that on a multi-processor system, this value may increment by more than one centi-second in one centi-second of real (wall clock) time."

# hrSWRunPerfMem
"The total amount of real system memory allocated to this process."
wardrobe
Posts: 17
Joined: Wed May 31, 2006 2:16 pm

Post by wardrobe »

our software developers have multiple processes running with the same name, can this script handle multiple processes with the same name?

The devs claim its not thier code causing the cpu to go 100% on a night and i'd like to setup this wonderful script to prove otherwise.

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

Post by BSOD2600 »

wardrobe wrote:our software developers have multiple processes running with the same name, can this script handle multiple processes with the same name?
No, it takes the first name it finds with the lowest PID and then is locked onto that until a reindex.

If you want to micromanage the graphs, then you can change the template around so it goes off the process PID, so then you can specify what to monitor. Only downside is that it will no longer automatically update what to monitor when an application is closed/opened.
wardrobe
Posts: 17
Joined: Wed May 31, 2006 2:16 pm

Post by wardrobe »

many thanks for taking the time to answer, i'll request our devs make 6 .exe and have a number in the name of the process will this be a workaround?

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

Post by BSOD2600 »

wardrobe wrote:i'll request our devs make 6 .exe and have a number in the name of the process will this be a workaround?
Yup, that'll work.
Discogalaxy
Posts: 20
Joined: Sat Feb 25, 2006 4:51 am
Location: Germany
Contact:

Post by Discogalaxy »

I don't really get the point.
That all works fine, until the machine is rebooted or a process killed and restarted.
After that i get:

Code: Select all

01/30/2007 09:40:05 AM - CACTID: Poller[0] Host[7] DS[861] WARNING: Result from SNMP not valid. Partial Result: ... 
Is the Re-Index Method set to Index Count Changed or Verify All Fields ?
Where to do that?
Attachments
1.jpg
1.jpg (132.64 KiB) Viewed 10607 times
2.jpg
2.jpg (192.37 KiB) Viewed 10607 times
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests