Win32 - Monitor running processes
Moderators: Developers, Moderators
Re: Win32 - Monitor running processes
Phalek, you got the right thing.
If you manually choose Index Type hrSWRunName, and specify the Index Value with a running process name (e.g. sqlservr.exe) the query (and thus the graphs) work... So this MUST be a valid way to do this... but HOW do you get the data template to use this/these values?
I'm going to do some experimentation with the data template - I have an idea...
If you manually choose Index Type hrSWRunName, and specify the Index Value with a running process name (e.g. sqlservr.exe) the query (and thus the graphs) work... So this MUST be a valid way to do this... but HOW do you get the data template to use this/these values?
I'm going to do some experimentation with the data template - I have an idea...
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Re: Win32 - Monitor running processes
Well.... that seems to have worked... Instead of going by the manual, which says not to touch these three fields if you change the fields to look like below... it works (or looks like it does - I haven't restarted the proc yet, so can't comment on if it works after a restart).
You get Data Sources which look like this:
And creates a graph like this (zoomed in a bit as its only been running a few minutes):
Finally a copy of my data template ...
{editted thanks to Phalek pointing out server names!}
You get Data Sources which look like this:
And creates a graph like this (zoomed in a bit as its only been running a few minutes):
Finally a copy of my data template ...
{editted thanks to Phalek pointing out server names!}
- Attachments
-
- cacti_data_template_snmp_-_running_process_info_editted_by_Argon0.xml
- Data Template as editted by me....
- (9.23 KiB) Downloaded 365 times
Last edited by argon0 on Mon Mar 04, 2013 7:25 am, edited 2 times in total.
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Re: Win32 - Monitor running processes
Interestingly this seems to have kick started my other non-working graphs as well! (Though I suspect coincidence, as I did run queries a few minutes before changing the template)... Those that rely on PID are still not working.
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Re: Win32 - Monitor running processes
Do NOT do this. You're only asking for problems.argon0 wrote:Well.... that seems to have worked... Instead of going by the manual, which says not to touch these three fields if you change the fields to look like below... it works (or looks like it does - I haven't restarted the proc yet, so can't comment on if it works after a restart).
For all Data Query templates (which includes [SNMP - Running Processes]), the correct way to create graphs is:
Devices -> select a device -> click on [Create Graphs for this Host] -> select the item(s) from each Data Query -> click Create at the bottom of the page.
| 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 |
Re: Win32 - Monitor running processes
Yes, done as in that is exactly the way I create these graphs - what I do above doesn't change that. I am using variables i.e. |query_hrSWRunName| for the index value, the index type needs to be hard coded, or it will default to the first in the list (i.e hrSWRunIndex - it seems to be alphabetical). I'm just changing stuff back at the data template - not changing the process of creating graphs - well I am - but making it so you don't have to go back and edit them after creation to get the data source working properly. Now, whether I have stored up problems for myself later on or not is another question, but I don't see how...BSOD2600 wrote:Do NOT do this. You're only asking for problems.argon0 wrote:Well.... that seems to have worked... Instead of going by the manual, which says not to touch these three fields if you change the fields to look like below... it works (or looks like it does - I haven't restarted the proc yet, so can't comment on if it works after a restart).
For all Data Query templates (which includes [SNMP - Running Processes]), the correct way to create graphs is:
Devices -> select a device -> click on [Create Graphs for this Host] -> select the item(s) from each Data Query -> click Create at the bottom of the page.
If those fields aren't designed to be used, why are they there?
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Re: Win32 - Monitor running processes
Something's not working properly then asargon0 wrote:I am using variables i.e. |query_hrSWRunName| for the index value, the index type needs to be hard coded, or it will default to the first in the list (i.e hrSWRunIndex - it seems to be alphabetical).
Code: Select all
<index_order>hrSWRunName:hrSWRunIndex</index_order>
They're suppose to be used for data source and graph titles.argon0 wrote:If those fields aren't designed to be used, why are they there?
| 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 |
Re: Win32 - Monitor running processes
Really?
OK.
Is this due to 0.8.8a Then?
OK.
Is this due to 0.8.8a Then?
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Re: Win32 - Monitor running processes
I haven't created new graphs with this template for quite a while so it very well could be.argon0 wrote:Is this due to 0.8.8a Then?
| 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 |
Re: Win32 - Monitor running processes
The behaviour you describe above is what I expected to happen, so was surprised when graphs broke post a service restart.... Thus the digging.
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Re: Win32 - Monitor running processes
As it currently stands I can't use these graphs.
Essentially they are fine when I set them up - either with the original template, or with my edit of it, which "hardcodes" |query_hrSWRunName| into the graph. On a restart of a service everything goes screwy though.
With my edit I end up with a load of (broken) graphs with the name HOSTNAME - Process - |query_hrSWRunName|, and (because I used Autom8 to create graphs) a loat of new HOSTNAME - Process - PROCESSNAME graphs - which work until the next restart, with the original I ended up with a load of broken HOSTNAME - Process - .... graphs.
So.... Any idea of a fix to the "bug"? So I can go back to the original graphs?
Essentially they are fine when I set them up - either with the original template, or with my edit of it, which "hardcodes" |query_hrSWRunName| into the graph. On a restart of a service everything goes screwy though.
With my edit I end up with a load of (broken) graphs with the name HOSTNAME - Process - |query_hrSWRunName|, and (because I used Autom8 to create graphs) a loat of new HOSTNAME - Process - PROCESSNAME graphs - which work until the next restart, with the original I ended up with a load of broken HOSTNAME - Process - .... graphs.
So.... Any idea of a fix to the "bug"? So I can go back to the original graphs?
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Win32 - Monitor running processes
Maybe something like this template would be sufficient for you ( to get availability ) in the first place ?
I'm using it for the service availability calculations in my reporting plugin.
http://forums.cacti.net/viewtopic.php?f ... &start=135
I'm using it for the service availability calculations in my reporting plugin.
http://forums.cacti.net/viewtopic.php?f ... &start=135
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Win32 - Monitor running processes
I'm monitoring Services fine, its when I try to do Processes that the problem happens...
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Re: Win32 - Monitor running processes
1) dont use automate for this template, as it doesnt work properly.argon0 wrote:As it currently stands I can't use these graphs.
2) the reindex method should be index count changed for this data query.
3) the data template for each device's instance needs manual updating until the bug gets fixed. Index Value should be the process executable (i.e. spoolsv.exe) and Index Type should be hrSWRunName.
bug the developers to look into http://bugs.cacti.net/view.php?id=2350 I suppose.argon0 wrote:So.... Any idea of a fix to the "bug"? So I can go back to the original graphs?
| 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 |
Re: Win32 - Monitor running processes
I have two processes with the same name.
I match the first process with the name; the 2nd one with the PID.
This is the graph of the 2nd process, matched with the PID:
The top graph is the one appearing to the Graph tree; it doesn't depict the memory.
However, the realtime graphs shows the memory.
Any idea why this happens?
I match the first process with the name; the 2nd one with the PID.
This is the graph of the 2nd process, matched with the PID:
The top graph is the one appearing to the Graph tree; it doesn't depict the memory.
However, the realtime graphs shows the memory.
Any idea why this happens?
cacti rulez!
Re: Win32 - Monitor running processes
After deleting the rrd file and running again the poller the problem was resolved
cacti rulez!
Who is online
Users browsing this forum: No registered users and 1 guest