1833700 Members
4248 Online
110062 Solutions
New Discussion

Performance monitoring

 
SOLVED
Go to solution
fg_1
Trusted Contributor

Performance monitoring

Hello all

I am here to see if anyone has created a
script that does monitoring of the following:

CPU
MEMORY
I/O
Network Traffic

I know that glance does all of these things but
I am unsure as to how to pull this info into a script. I am also trying to figure out how to take the data that would be output and parse it for ease of view.

Eventually i plan to move the output files to
excel for charting purposes.

So if anyone has a script that does some monitoring of these areas I would appreciate it.
Thank you. fg.
6 REPLIES 6
James Beamish-White
Trusted Contributor
Solution

Re: Performance monitoring

Hiya,

Look up the man page for sar and vmstat for starters.

I use the example cron jobs for sar:
0 * * * 0,6 /usr/lbin/sa/sa1
0 8-17 * * 1-5 /usr/lbin/sa/sa1 1200 3
0 18-7 * * 1-5 /usr/lbin/sa/sa1

And I also run a free memory script I have attached.

Cheers!
James
GARDENOFEDEN> create light
Patrick Wallek
Honored Contributor

Re: Performance monitoring

If you have the MeasureWare product installed, you can extract this data from the MeasureWare data files as well.

MeasureWare is a product that you have to buy. It is not free.

Check out this link:
http://www.openview.hp.com/products/performance/index.asp

I think this is what used to be Measure Ware and PerfView. Apparently they've undergone a name change like everything else. :(

fg_1
Trusted Contributor

Re: Performance monitoring

Thanks guys but unfortunately i do not have
measureware installed on my systems. If anyone has a script (non-canned ok) that does this please let me know.

Thank you.
Sean OB_1
Honored Contributor

Re: Performance monitoring

What kind of information are you looking for for each metric?

fg_1
Trusted Contributor

Re: Performance monitoring

I would like to find out for:
cpu - % used
memory - %used
I/O per disk - read/write's
Tom Danzig
Honored Contributor

Re: Performance monitoring

Here's one I wrote for in house system monitoring. You'll need to tweak it to work in your environment, especially the network section. It works on HP-UX 11.00+ and Sun Solaris 2.6+