Win32 - Monitor running processes

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

Moderators: Developers, Moderators

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

Post by BSOD2600 »

You'll have to write a custom script for that.
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

arg
:'(

but i think you can find with snmp
but i don't know how to find the oid
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
idle
Cacti User
Posts: 77
Joined: Wed May 26, 2004 10:49 am
Location: Barcelona
Contact:

Post by idle »

Mika2006 wrote:arg
:'(

but i think you can find with snmp
but i don't know how to find the oid
Grab your favourite mib browser, fetch all the oids you can and grep them.
Сказали-бы по русски чего надо, Ваш английский читать нереально.

Sorry, for non english post.
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

well
i look with getif but i d'ont find the oid
about this
on HP-UX
how i active all oid on my machine hp-ux?
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
idle
Cacti User
Posts: 77
Joined: Wed May 26, 2004 10:49 am
Location: Barcelona
Contact:

Post by idle »

Mika2006 wrote:well
i look with getif but i d'ont find the oid
about this
on HP-UX
how i active all oid on my machine hp-ux?
Well if you don't use mib-browser you can use something like this:
snmpwalk -v 1 -c public host | grep -i 'what you looking for'(e.g. grep -i excel).
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

For a windows machine:
Thks i hav my script sh
snmpwalk -v 1 -c public 192.168.0.5 | grep -c firefox
this count number processus firefox runnin on my host !

for a UNix machine i have this i do'nt understand what is please?
[root@localhost plugins]# snmpwalk -v 1 -c public 192.168.0.2 | grep -c menu
Error: OID not increasing: TCP-MIB::tcpConnState.127.0.0.1.55440.127.0.0.1.55342
>= TCP-MIB::tcpConnState.127.0.0.1.383.127.0.0.1.59816

0
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Please start your own thread, since this conversation doesn't have anything to do with the with the Windows processes script.
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

well i don't find how i can add number process runnng on all graph
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
isosysadm
Posts: 11
Joined: Wed May 23, 2007 1:31 pm
Location: Austin

A noob-ish question re: BSOD's Win Proc script

Post by isosysadm »

I preface this by noting that I am fairly new to system monitoring and SNMP in general and with cacti, in particular.

Monitor target is a Win2K box running SP4 and Exchange 2000 on it. MS's snmp service is installed and I can use snmpwalk against it (from the same Linux server running cacti) and pull back all sorts of information. Cacti "j" is running on a CentOS-5 Linux box.

I went through the README file and had a couple of questions:

1st, there are 4 .xml files included, but I only see coverage of the two templates and the win32 files. What is the data_query_snmp_xxxx file for?
In step 3, what file is my target xml? Also, what's my data input method (script data, script server or SNMP Data)?

Seems like no matter what permutation I use, I keep getting this:

Code: Select all

+ Running data query [12].
+ Found type = '4 '[script query].
+ Could not find data query XML file at '/var/www/html/resource/snmp_queries/win32_procs.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at '/var/www/html/resource/snmp_queries/win32_procs.xml'
+ Could not find data query XML file at '/var/www/html/resource/snmp_queries/win32_procs.xml'
+ Could not find data query XML file at '/var/www/html/resource/snmp_queries/win32_procs.xml'
Now, Cacti is able to successfully interact with the Win2K server at some basic level, though the uptime looks off. Its been up a LOT longer than that. Anyway...:

Code: Select all

System: Hardware: x86 Family 15 Model 4 Stepping 10 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.0 (Build 2195 Multiprocessor Free)
Uptime: 665773 (0 days, 1 hours, 50 minutes)
Hostname: EXCHANGE01
Location: xxxxxxxxxxx
Contact: xxxxxxxxx@xxxxxx
Everything else in cacti seems to be working well, though everything else is Cisco network equipment.
Any assistance with this would be much appreciated. I don't *think* I need it spelled out. Just pointed in the right direction will be great!
Oh, and I have perused all 11 pages of this thread to try to avoid re-asking an answered question.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: A noob-ish question re: BSOD's Win Proc script

Post by BSOD2600 »

isosysadm wrote:What is the data_query_snmp_xxxx file for?
In step 3, what file is my target xml?
It's the data query template, which interfaces between the script (win32_procs.xml) and data template (cacti_data_template_snmp_running_process_info.xml). Just import all 3 cacti_XXX.xml files.
isosysadm wrote:In step 3, what file is my target xml? Also, what's my data input method (script data, script server or SNMP Data)?

If you imported the script, this is all specified for you automatically.
isosysadm wrote:Seems like no matter what permutation I use, I keep getting this:
sounds like you didn't place the win32_procs.xml in the correct folder or have permission problems.
isosysadm
Posts: 11
Joined: Wed May 23, 2007 1:31 pm
Location: Austin

Post by isosysadm »

BSOD,

Thanks. It finally came together for me.

First, I whacked, then re-imported all 3 template files.
Then I finally realized that I didn't have to select "Data Queries" from the Left hand menu and then click "add". Instead I selected the device I wanted to monitor and applied the already existing data query to that device.
Bingo! all of the currently running procs on that host presented themselves for my selection.
tviktor
Posts: 12
Joined: Sun Apr 01, 2007 11:25 pm

Post by tviktor »

Is problem of manual reindex solved?
[quote][b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.0
[b]Poller Type[/b] - Spine v
[b]Plugins[/b][list]Device Monitoring (monitor - v0.8.2)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.9)
Host Info (hostinfo - v0.2)
PHP Network Weathermap (weathermap - v0.941)
Poller Performance Report (pollperf - v0.32)
IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4c)
PHP Network Managing (manage - v0.5.1)
Report Creator (reports - v0.3)
RRD File Cleaner (RRD Cleaner - v0.34)
Syslog Monitoring (syslog - v0.5.2)
Configuration manager (configmanager - v0.75)
Update Checker (update - v0.4)
Uptime (uptime - v0.3)[/list][/quote]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Err what problem exactly is that?
tviktor
Posts: 12
Joined: Sun Apr 01, 2007 11:25 pm

Post by tviktor »

If process was restarted, its PID changes, and I need manually recache cactis poller (or click 'verbose query' under Management->devices), otherwise template 'asking' old PID :(
All settings done as explained in readme.
[quote][b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.0
[b]Poller Type[/b] - Spine v
[b]Plugins[/b][list]Device Monitoring (monitor - v0.8.2)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.9)
Host Info (hostinfo - v0.2)
PHP Network Weathermap (weathermap - v0.941)
Poller Performance Report (pollperf - v0.32)
IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4c)
PHP Network Managing (manage - v0.5.1)
Report Creator (reports - v0.3)
RRD File Cleaner (RRD Cleaner - v0.34)
Syslog Monitoring (syslog - v0.5.2)
Configuration manager (configmanager - v0.75)
Update Checker (update - v0.4)
Uptime (uptime - v0.3)[/list][/quote]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ah correct. The script only reindexes when the number of processes changes. So if you terminate a process and then start it up again, cacti won't properly poll it until the process count changes.

The only work-around I know of is to change the reindex method to always. It's more expensive. Can you think of another way cacti would know when to reindex a device?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests