|
|
| Author |
Message |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Wed Mar 02, 2005 6:10 pm Post subject: Win32 - Monitor running processes |
|
|
I created a snmp script that will allow one to graph a processes CPU and memory usage on any WindowsNT based host (NT, 2K, XP, 2K3). The Microsoft SNMP agent must be installed; Net-SNMP will not work.
Instructions are in the readme
Updated 12/2/2005:
Added <index_type> to the script, which was added in a recent Cacti version. This makes it so you no longer need to change the PID to the process name.
| Description: |
|
| Filesize: |
5.78 KB |
| Viewed: |
36490 Time(s) |

|
| Description: |
| Example of running processes |
|
| Filesize: |
10.91 KB |
| Viewed: |
36490 Time(s) |

|
| Description: |
| Readme, templates, and script. |
|
 Download |
| Filename: |
Win32_RunningProcs.zip |
| Filesize: |
31.09 KB |
| Downloaded: |
133323 Time(s) |
Last edited by BSOD2600 on Sat Feb 25, 2006 1:15 pm; edited 5 times in total |
|
| Back to top |
|
 |
Spark
Joined: 26 Jan 2005 Posts: 15
|
Posted: Thu Mar 03, 2005 7:07 am Post subject: |
|
|
Very nice
I will test and report if any question.
Thanks
|
|
| Back to top |
|
 |
vtmgr
Joined: 11 Aug 2004 Posts: 27 Location: Vermont, USA
|
Posted: Thu Mar 03, 2005 11:15 am Post subject: Processes |
|
|
Very nice job. Our server guys will like this. Looking forward to the multiple process version!
Thanks!
|
|
| Back to top |
|
 |
DevilSun Cacti User
Joined: 16 Jul 2004 Posts: 166 Location: Oregon
|
Posted: Mon Mar 07, 2005 11:34 am Post subject: |
|
|
| Very nice BSOD! Good job!
|
|
| Back to top |
|
 |
Hardinxcore
Joined: 11 Mar 2005 Posts: 7
|
Posted: Fri Mar 11, 2005 7:13 am Post subject: Pleaz help for installing under w2k3 |
|
|
I don't know how to install this.
could you make a step by step plan? (e.a: which button i must click)
thnx in advance
|
|
| Back to top |
|
 |
zoidberg
Joined: 11 Mar 2005 Posts: 2
|
Posted: Fri Mar 11, 2005 9:43 am Post subject: |
|
|
Hi,
when trying to import the templates, I am getting
Error: XML: Hash version does not exist.
running Cacti 0.8.6b
any ideas ?
thanks
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Fri Mar 11, 2005 10:27 am Post subject: |
|
|
Hardinxcore: Do you have Cacti set up to monitor hosts and graph different things already? Read through the readme.txt?
zoidberg: My only guess is your cacti version is too old. I created this with 0.8.6c.
|
|
| Back to top |
|
 |
zoidberg
Joined: 11 Mar 2005 Posts: 2
|
Posted: Tue Mar 15, 2005 5:45 am Post subject: |
|
|
upgraded to 0.8.6c - working fine now.
thanks
|
|
| Back to top |
|
 |
mumuuu
Joined: 22 Mar 2005 Posts: 6
|
Posted: Tue Mar 22, 2005 1:30 pm Post subject: |
|
|
Hi all
those script are great !!!!
but i've a pb with it ..... let me explain :
i tooke the file and i put the win32_procs.xml file in the cacti directory
then i put those 3 others files in cacti with the graphique interface
then i try to graph so i add in the " Associated Data Queries" the "SNMP - Get Processor Information" and i saved the settings.
then i click create graph for ..... and there is no procces like in the pictures up in this page in my cacti so could u help me because my english is not so bad but maybe i missed some steps in the README.txt file
THX by advance for your answer
|
|
| Back to top |
|
 |
mumuuu
Joined: 22 Mar 2005 Posts: 6
|
Posted: Thu Mar 24, 2005 4:06 pm Post subject: |
|
|
ok I found where i was wrong but i only have the CPU usage ...
i don't have the memory usage why ??????
could u help me ???
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Sat Mar 26, 2005 2:56 pm Post subject: |
|
|
1) you don't put the files anywhere... it's best if you import them. Read through the readme.txt
2) When you add the snmp - process info to a device, then click on the green circle, do you see anything being outputted ?
|
|
| Back to top |
|
 |
BlueT
Joined: 28 Mar 2005 Posts: 4
|
Posted: Mon Mar 28, 2005 3:07 pm Post subject: |
|
|
Hi
I am using this script, it is working however I am not getting any memory information on any of the runing proccesses. I would much really appreciate helpon getting this working.
When I click the green circle after adding the snmp info proccess to a device, It says success (152 items; 38 Rows)
Thanks
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Mon Mar 28, 2005 9:13 pm Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
muriachi
Joined: 14 Dec 2004 Posts: 13 Location: Campinas, BR
|
Posted: Tue Mar 29, 2005 9:12 am Post subject: |
|
|
Great Job !!!!
Is there like for Linux ? So I think which is necessary changes snmpd.conf ...
|
|
| Back to top |
|
 |
BlueT
Joined: 28 Mar 2005 Posts: 4
|
Posted: Tue Mar 29, 2005 10:06 am Post subject: |
|
|
The Re-Index Method is set to Index Count Changed, but i have tried both.
Yes i did change it ro hrSWRunName and put the name in the index value.
I have attached the verbose query in a text file as it was long
The log files had the following relevent (i think) entries
03/29/2005 03:48:03 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
03/29/2005 03:48:03 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
03/29/2005 03:48:03 PM - CMDPHP: Poller[0] Host[1] RECACHE: Processing 5 items in the auto reindex cache for '127.0.0.1'.
03/29/2005 03:48:03 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from SNMP not valid. Partial Result: 31188 KBytes
03/29/2005 03:48:03 PM - CMDPHP: Poller[0] Host[1] SNMP: v1: 127.0.0.1, dsname: proc_mem, oid: .1.3.6.1.2.1.25.5.1.1.2.1192, output: U
03/29/2005 03:48:03 PM - CMDPHP: Poller[0] Host[1] SNMP: v1: 127.0.0.1, dsname: proc_cpu, oid: .1.3.6.1.2.1.25.5.1.1.1.1192, output: 60567
03/29/2005 03:48:03 PM - POLLER: Poller[0] CACTI2RRD: d:/Apache/rrd/rrdtool.exe update d:\www\operations\cacti\rra\localhost_proc_mem_32.rrd --template proc_mem:proc_cpu 1112107682:U:60567
| Description: |
|
 Download |
| Filename: |
Verbose.txt |
| Filesize: |
10.51 KB |
| Downloaded: |
1037 Time(s) |
|
|
| Back to top |
|
 |
|