Monitoring concurrent use of applications

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

Moderators: Developers, Moderators

Post Reply
Hover
Posts: 2
Joined: Fri Sep 19, 2008 4:34 am

Monitoring concurrent use of applications

Post by Hover »

I am using a Linux Cacti installation and I want to monitor the concurrent use of specific applications (processes) for a number of Windows servers.
I know how to get the number of processes and the name of the processes polling the SNMP OID's, eg. number of processes from OID 1.3.6.1.2.1.25.1.6.0 and the name of the processes from OID: 1.3.6.1.2.1.25.4.2.1.2.x
I don't know how to make a script (PHP or bash) which returns the number of instances running for a given process (e.g. excel.exe).
I have searched through all the plugins but couldn't find a suitable plugin.
Has anyone a suggestion?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The base idea would be to run an snmpwalk against the OID from above and filter output for "excel.exe", then count the lines. Spit them out to make cacti catch the number.
Does not seem to be that complicated
Reinhard
Hover
Posts: 2
Joined: Fri Sep 19, 2008 4:34 am

Post by Hover »

Hello Reinhart,

Thanks for your response.

Agreed. But my php is not so good. I was hoping someone made something which does the job.
I read the standard win_services.xml and win_services.php files and I know the principles but i am not able to modify this script to get what i want.

Dinant
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What's your favorite programming language, then? Anybody in your shop who's able to do the job? Cacti will accept virtually any programming language.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest