Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 25, 2017 5:25 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 240 posts ]  Go to page 1, 2, 3, 4, 5 ... 16  Next
Author Message
 Post subject: Win32 - Monitor running processes
PostPosted: Wed Mar 02, 2005 6:10 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12118
Location: USA
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.


Attachments:
File comment: Readme, templates, and script.
Win32_RunningProcs.zip [31.09 KiB]
Downloaded 138353 times
File comment: sample graph
dcplusplus.png
dcplusplus.png [ 5.78 KiB | Viewed 86388 times ]
File comment: Example of running processes
running_procs_graph.png
running_procs_graph.png [ 10.91 KiB | Viewed 86388 times ]

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Last edited by BSOD2600 on Sat Feb 25, 2006 1:15 pm, edited 5 times in total.
Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 03, 2005 7:07 am 
Offline

Joined: Wed Jan 26, 2005 6:48 am
Posts: 15
Very nice :D

I will test and report if any question.

Thanks


Top
 Profile  
 
 Post subject: Processes
PostPosted: Thu Mar 03, 2005 11:15 am 
Offline

Joined: Wed Aug 11, 2004 2:23 pm
Posts: 27
Location: Vermont, USA
Very nice job. Our server guys will like this. Looking forward to the multiple process version!

Thanks!

_________________
Cacti 0.8.6f
CMD
MySQL 4.0.20
Net-SNMP 5.1.1
IIS 6
PHP 5.0.2
RRDtool 1.2.10
Windows 2003 Server


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 07, 2005 11:34 am 
Offline
Cacti User

Joined: Fri Jul 16, 2004 1:59 pm
Posts: 166
Location: Oregon
Very nice BSOD! Good job!


Top
 Profile  
 
 Post subject: Pleaz help for installing under w2k3
PostPosted: Fri Mar 11, 2005 7:13 am 
Offline

Joined: Fri Mar 11, 2005 7:11 am
Posts: 7
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 11, 2005 9:43 am 
Offline

Joined: Fri Mar 11, 2005 9:36 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 11, 2005 10:27 am 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12118
Location: USA
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.

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 15, 2005 5:45 am 
Offline

Joined: Fri Mar 11, 2005 9:36 am
Posts: 2
upgraded to 0.8.6c - working fine now.

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2005 1:30 pm 
Offline

Joined: Tue Mar 22, 2005 8:00 am
Posts: 6
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 :evil: so could u help me because my english is not so bad but maybe i missed some steps in the README.txt file :oops:

THX by advance for your answer


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 4:06 pm 
Offline

Joined: Tue Mar 22, 2005 8:00 am
Posts: 6
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 ??? :D


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 2:56 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12118
Location: USA
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 ?

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 28, 2005 3:07 pm 
Offline

Joined: Mon Mar 28, 2005 3:00 pm
Posts: 4
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 28, 2005 9:13 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12118
Location: USA
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.

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 29, 2005 9:12 am 
Offline

Joined: Tue Dec 14, 2004 6:54 am
Posts: 14
Location: Campinas, BR
Great Job !!!!

:oops: Is there like for Linux ? So I think which is necessary changes snmpd.conf ...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 29, 2005 10:06 am 
Offline

Joined: Mon Mar 28, 2005 3:00 pm
Posts: 4
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


Attachments:
Verbose.txt [10.51 KiB]
Downloaded 2475 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 240 posts ]  Go to page 1, 2, 3, 4, 5 ... 16  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group