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 ... 9, 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: 6786
Location: WA, USA

PostPosted: Tue Jan 30, 2007 1:48 pm    Post subject: Reply with quote

Discogalaxy wrote:
Quote:
Is the Re-Index Method set to Index Count Changed or Verify All Fields ?


Where to do that?

In the device, under associated data queries.
Back to top
Discogalaxy



Joined: 25 Feb 2006
Posts: 20
Location: Germany

PostPosted: Wed Jan 31, 2007 12:28 am    Post subject: Reply with quote

Oh, i must be bilnd
I searched and searched....

Thx for info

nice script by the way
Back to top
Dr.J



Joined: 11 Feb 2007
Posts: 1

PostPosted: Sun Feb 11, 2007 10:08 pm    Post subject: Very small CPU time seems pointless to graph Reply with quote

Is there an easy way to disregard CPU values of say, less than 1% using a CDEF or similar? How about rounding results to the nearest whole number?

Can anyone point me in the right direction with how I might do this?

Thanks in advance
Back to top
BSOD2600
Cacti Moderator


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

PostPosted: Mon Feb 12, 2007 11:00 am    Post subject: Re: Very small CPU time seems pointless to graph Reply with quote

Dr.J wrote:
Is there an easy way to disregard CPU values of say, less than 1% using a CDEF or similar? How about rounding results to the nearest whole number?

Modify the data template and change the min value to 1 (or whatever you want). You'll have to either run rrdtool tune on the associated rrd files or delete them so they're remade.

As for rounding, change how they're displayed in the graph template.
Back to top
esimon



Joined: 15 Feb 2007
Posts: 1

PostPosted: Thu Feb 15, 2007 6:09 am    Post subject: problem Reply with quote

it don't work
Can you help me please
I import all graph
i copy win32_procs.ml
i create data query but where you change re-index
thank you
Back to top
BSOD2600
Cacti Moderator


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

PostPosted: Thu Feb 15, 2007 11:30 am    Post subject: Reply with quote

1) did you add the xml script to the correct folder?
2) did you add the associated template to a windows host?
3) does it return any rows when you click on verbose query?
4) did you go to the 'create graphs' screen and select the processes you wanted graphed?
5) did you wait 10 minutes before looking at the newly created graphs?
Back to top
maw



Joined: 07 Mar 2007
Posts: 33
Location: Vancouver, Canada

PostPosted: Wed Mar 07, 2007 7:11 pm    Post subject: Reply with quote

Hi BSOD2600,

This mod looks really interesting... few questions before I implement.

1)
If my IIS servers have multiple Application Pools how will this mod handle more then one IIS worker process? After reading all 10 pages on this topic it seems the mod grabs the first process it finds and graphs until a reindex is completed. Any ideas to monitor many processes that have the same name? (I read that monitoring on PID will _work_ until the PID changes...you explained the limitations of this approach earlier)


2)
BSOD2600 wrote:
"An inefficient way to fix this is to change the reindex method to verify all fields; that way cacti will reindex it every polling cycle. "

How will performance be affected if I am polling ~150servers every 5mins?

Thanks a lot!
Back to top
BSOD2600
Cacti Moderator


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

PostPosted: Wed Mar 07, 2007 8:12 pm    Post subject: Reply with quote

maw wrote:
..it seems the mod grabs the first process it finds and graphs until a reindex is completed. Any ideas to monitor many processes that have the same name? (I read that monitoring on PID will _work_ until the PID changes...you explained the limitations of this approach earlier)

Sounds like you've got a good idea how the script works. Correct, since the script uses an snmp xml script to query the hrSWRunIndex and hrSWRunName of computer, we have two options for keeping track of a process. If we go by name, then the script picks up the first instance of hrSWRunName. This works great for unique instances of processes. As you've already outlined (along with other users) the problem arises if one wants to monitor multiple instances of the same hrSWRunName. Since the hrSWRunIndex is actually the processes PID, we have the option to explicitly monitor a process by that instead. Of course then we have the problem of if the process's PID changes (as they do on termination/execution), then the script no longer queries the correct/valid PID. This requires one to manually fix it in Cacti.

I have yet to find a way to fix this while still utilizing SNMP xml queries. If you do, let me know.

maw wrote:
How will performance be affected if I am polling ~150servers every 5mins?

Not entirely sure, but it will force cacti to snmpwalk/snmpnextget a large subset of OIDs (snmpwalk .1.3.6.1.2.1.25.4.2.1 to see yourself). You could enable recaching on a host or two, look in the cacti log how long recaching takes and then extrapolate the time cost for ~150 servers.

My slow ass cacti server takes ~2 seconds to recache a single windows host for it's processes, utilizing the cmd.php poller.
Back to top
mktoon



Joined: 13 Feb 2007
Posts: 2

PostPosted: Tue Apr 03, 2007 3:44 am    Post subject: Reply with quote

Hello, anyone know how to intergrate this with Thold to monitor a process if it stops and send an email to the admin?

Thanks a lot
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Tue May 15, 2007 5:02 am    Post subject: Reply with quote

*
all template i try anyone work
My config :
Quote:

| Cacti 0.8.6j |
| MySQL ? | PHP ? | httpd | RRDtool 1.2.15 |
| RedHAT 4es | P4 3000Mhz | 512MB |


1 / i import on the cacti web :
cacti_data_template_snmp_running_process_info.xml
cacti_graph_template_snmp_running_proc_info.xml


2/ i copy files here:
/var/www/html/cacti/resource/snmp_queries
-rw-r--r-- 1 1000 users 1847 mai 13 00:27 win32_procs.xml

3/ and in my cacti interface :
in debug mode :

Quote:

Data Query Debug Information
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/win32_procs.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/win32_procs.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/win32_procs.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/win32_procs.xml'


what do you think please?
please help



00.jpg
 Description:
and in my cacti interface :
 Filesize:  95.17 KB
 Viewed:  3215 Time(s)

00.jpg


Back to top
BSOD2600
Cacti Moderator


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

PostPosted: Tue May 15, 2007 12:02 pm    Post subject: Reply with quote

This script only works against Windows.
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Tue May 15, 2007 2:47 pm    Post subject: Reply with quote

???
he exist a difference betwen cacti on linux and cacti on windows?
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Thu May 24, 2007 9:44 am    Post subject: Reply with quote

he is so good template
thanks too
in a service graph you have :
-CPU usage
-memmory usage

and i need one more information:

i need how many process X running
someone can help me to make it in this template??
Back to top
BSOD2600
Cacti Moderator


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

PostPosted: Thu May 24, 2007 12:15 pm    Post subject: Reply with quote

Mika2006 wrote:
i need how many process X running

Cacti already comes with a template for Windows systems for this.
Back to top
Mika2006
Cacti User


Joined: 03 May 2007
Posts: 165

PostPosted: Fri May 25, 2007 5:48 am    Post subject: Reply with quote

yes i knwo but is all process
and i need by process
like this
Code:

 2 process matching EXCEL.EXE (> 0)


?
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 ... 9, 10, 11, 12  Next
Page 10 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group