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, ... 10, 11, 12  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
BSOD2600
Cacti Moderator


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

PostPosted: Tue Mar 29, 2005 12:09 pm    Post subject: Reply with quote

Hmm, it appears there are no memory, filepath, or run parameters, odd. What OS are you running this against?

Would you mind walking .1.3.6.1.2.1.25.5 and pasting the output.
Back to top
BlueT



Joined: 28 Mar 2005
Posts: 4

PostPosted: Tue Mar 29, 2005 1:51 pm    Post subject: Reply with quote

I am running against windows 2000 server as well as xp they both are the same. I am also using snmp that comes with windows.

I dont know how to walk if you could tell me how then i will post the results

Thanks for your help.
Back to top
mumuuu



Joined: 22 Mar 2005
Posts: 6

PostPosted: Tue Mar 29, 2005 3:16 pm    Post subject: Reply with quote

ok i did everything & still have a question :


can cacti graph the same process like firefox when i close it & when i lunch it again .?????

if im not clear tell me
Back to top
ajeskey
Cacti User


Joined: 28 Mar 2005
Posts: 93
Location: Boston, MA

PostPosted: Tue Mar 29, 2005 3:22 pm    Post subject: Reply with quote

mumuuu

Under your data source definitions if you set the index type to "hrSWRunName" it will look for that process name and not the PID. So your answer is "yes, but you need to change the default"

It tells you about this in the README included in the archive.

BSOD2600

thanks for a very handy add on. It's much appreciated!
Back to top
ajeskey
Cacti User


Joined: 28 Mar 2005
Posts: 93
Location: Boston, MA

PostPosted: Tue Mar 29, 2005 3:30 pm    Post subject: Reply with quote

I am seeing some odd reports coming back from the CPU time and Memory. Everything looks clean but I think that it's an issue with my graph template, and maybe how I setup the Data Query.

Could someone post either screen captures or text details on how they have set all the fields for both the Data Queries, and Graph Template sections?

Thanks in advance
Back to top
BSOD2600
Cacti Moderator


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

PostPosted: Tue Mar 29, 2005 5:13 pm    Post subject: Reply with quote

BlueT: Odd. I'm running it against XP SP2 and Win2K3. Don't have any NT/2K boxes around to test. What service pack levels are you running? Use GetIF to walk the OID. It should provide you with a graphical representation of which OIDs are present on the sytem. Alternatively, you could get and run snmpwalk, which is part of net-snmp.

mumuuu: ajeskey has the right answer

ajeskey: I too have see some odd values for the CPU time. I'm not sure why it represents it as M.



proc_explorer.png
 Description:
CPU time = 0:02:46
 Filesize:  5.37 KB
 Viewed:  6024 Time(s)

proc_explorer.png



proc_dc.png
 Description:
CPU time = 1:01:39
 Filesize:  5.64 KB
 Viewed:  6024 Time(s)

proc_dc.png


Back to top
JVandermark



Joined: 14 Dec 2004
Posts: 11

PostPosted: Tue Mar 29, 2005 5:17 pm    Post subject: Reply with quote

Looks like a great addon, I'll be trying it tomorrow. Looking at your example posted before shows explorer.exe taking only 16.26k on average. That's unlikely, so you should probably check that out.
Back to top
BSOD2600
Cacti Moderator


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

PostPosted: Tue Mar 29, 2005 5:22 pm    Post subject: Reply with quote

As of right now, explorer.exe is using 19,108K of memory and 13,480K of VM. I just checked the last graph and it says 19.10K.

Seems valid to me.
Back to top
SxanRR



Joined: 29 Mar 2005
Posts: 1

PostPosted: Tue Mar 29, 2005 5:45 pm    Post subject: Reply with quote

Hey, just a reference to someones comment earlier. This is exactly what I'm looking for, but for linux / unix hosts. Is this going to ever be ported to *nix, and if not, is there already an available script that can monitor a specific process thats running? Thanks, and good work on the script BSOD.

SxanRR
Back to top
ajeskey
Cacti User


Joined: 28 Mar 2005
Posts: 93
Location: Boston, MA

PostPosted: Tue Mar 29, 2005 7:55 pm    Post subject: Reply with quote

Heres is what I am seeings, the drop off on item1.jpg is legit, so that is not a problem.

As you can see the whole scaling is way off for me. I am sure its something that I did, but i just would like to know what!

Thanks!



item2.JPG
 Description:
 Filesize:  43.23 KB
 Viewed:  6008 Time(s)

item2.JPG



item1.JPG
 Description:
 Filesize:  39.88 KB
 Viewed:  6008 Time(s)

item1.JPG


Back to top
BSOD2600
Cacti Moderator


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

PostPosted: Tue Mar 29, 2005 9:49 pm    Post subject: Reply with quote

The skew in the graphing of the memory is possibly caused because of the CDEF of 'divide by 1024'. I did this so that the memory and cpu would be visable on the same graph.

I assume you already know why there are gaps in the graphs.
Back to top
ajeskey
Cacti User


Joined: 28 Mar 2005
Posts: 93
Location: Boston, MA

PostPosted: Tue Mar 29, 2005 9:53 pm    Post subject: Reply with quote

Sounds good... good to hear I'm not going crazy^H^Her

The gaps are part of our daily cycle, we'll see if they come back tomorrow

thanks again
Back to top
BlueT



Joined: 28 Mar 2005
Posts: 4

PostPosted: Wed Mar 30, 2005 9:04 am    Post subject: Reply with quote

BSOD2600

Using Getif it does all right up .1.3.6.1.2.1 as soon as i add .25 it does not like it I have tried this on multiple machines including xp sp2. I am sorry i am not much help in this area.

there must be somthing i have done done differently cant see y it would work for others and not me
Back to top
ajeskey
Cacti User


Joined: 28 Mar 2005
Posts: 93
Location: Boston, MA

PostPosted: Wed Mar 30, 2005 10:09 am    Post subject: Reply with quote

Here's a good one for you BSOD.. 114% CPU


CPU-2.JPG
 Description:
 Filesize:  41.66 KB
 Viewed:  5980 Time(s)

CPU-2.JPG



CPU-1.JPG
 Description:
 Filesize:  41.96 KB
 Viewed:  5980 Time(s)

CPU-1.JPG


Back to top
BSOD2600
Cacti Moderator


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

PostPosted: Wed Mar 30, 2005 1:19 pm    Post subject: Reply with quote

BlueT: That is probably because you have not installed the proper microsoft MIB or there is a conflict and GetIF didnt load the MIB. Could take a look through getif.log and see if you see anything about a microsoft MIB having issues. Give Net-SNMP snmpwalk a try:
snmpwalk -v 1 -c <community> 127.0.0.1 .1.3.6.1.2.1.25.5

ajeskey: Hmmm, odd. Paste the raw output in from a debug cycle for the relivant sections. When you manually verify the OID for that process(es), does it number seem valid?
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, ... 10, 11, 12  Next
Page 2 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group