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    


Win32 - Monitor running processes
Goto page Previous  1, 2, 3 ... 8, 9, 10, 11, 12  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
wadimnik



Joined: 07 Sep 2006
Posts: 1

PostPosted: Wed Sep 27, 2006 7:11 am    Post subject: Reply with quote

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]



zrzutekranu2.png
 Description:
 Filesize:  162.15 KB
 Viewed:  4613 Time(s)

zrzutekranu2.png



zrzutekranu1.png
 Description:
 Filesize:  161.94 KB
 Viewed:  4613 Time(s)

zrzutekranu1.png


Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Wed Sep 27, 2006 11:48 am    Post subject: Reply with quote

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?
Back to top
dust2k
Cacti User


Joined: 04 Dec 2005
Posts: 85

PostPosted: Wed Sep 27, 2006 8:38 pm    Post subject: Reply with quote

also what's kind of language on brower? can't read it.
Back to top
rcaston
Cacti User


Joined: 06 Jan 2004
Posts: 199
Location: US-Dallas, TX

PostPosted: Wed Oct 11, 2006 4:18 pm    Post subject: CPU Usage? Reply with quote

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? ...



Server.JPG
 Description:
 Filesize:  27.07 KB
 Viewed:  4526 Time(s)

Server.JPG


Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Wed Oct 11, 2006 7:48 pm    Post subject: Reply with quote

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.
Back to top
rcaston
Cacti User


Joined: 06 Jan 2004
Posts: 199
Location: US-Dallas, TX

PostPosted: Thu Oct 12, 2006 2:39 pm    Post subject: Reply with quote

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%
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Thu Oct 12, 2006 3:41 pm    Post subject: Reply with quote

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?
Back to top
rcaston
Cacti User


Joined: 06 Jan 2004
Posts: 199
Location: US-Dallas, TX

PostPosted: Fri Oct 13, 2006 10:17 am    Post subject: yep Reply with quote

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.
Back to top
cacti_008



Joined: 06 Nov 2006
Posts: 2

PostPosted: Mon Nov 06, 2006 2:29 am    Post subject: What mean is the value of hrSWRunPerfCpu ? Reply with quote

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?



hrSWRunPerfCpu.jpg
 Description:
 Filesize:  66.23 KB
 Viewed:  4354 Time(s)

hrSWRunPerfCpu.jpg


Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Mon Nov 06, 2006 12:10 pm    Post subject: Reply with quote

Google is your friend.

Also, I put in the description into the data input method.

Quote:

# 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."
Back to top
wardrobe



Joined: 31 May 2006
Posts: 11

PostPosted: Sat Jan 27, 2007 5:31 am    Post subject: Reply with quote

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
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Sat Jan 27, 2007 1:20 pm    Post subject: Reply with quote

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.
Back to top
wardrobe



Joined: 31 May 2006
Posts: 11

PostPosted: Sat Jan 27, 2007 5:18 pm    Post subject: Reply with quote

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
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Sun Jan 28, 2007 2:39 pm    Post subject: Reply with quote

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.
Back to top
Discogalaxy



Joined: 25 Feb 2006
Posts: 20
Location: Germany

PostPosted: Tue Jan 30, 2007 3:46 am    Post subject: Reply with quote

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:
01/30/2007 09:40:05 AM - CACTID: Poller[0] Host[7] DS[861] WARNING: Result from SNMP not valid. Partial Result: ...

Quote:
Is the Re-Index Method set to Index Count Changed or Verify All Fields ?


Where to do that?



2.jpg
 Description:
 Filesize:  192.37 KB
 Viewed:  3967 Time(s)

2.jpg



1.jpg
 Description:
 Filesize:  132.64 KB
 Viewed:  3967 Time(s)

1.jpg


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... 8, 9, 10, 11, 12  Next
Page 9 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group