Operating System - HP-UX
1834450 Members
2181 Online
110067 Solutions
New Discussion

Re: Make Tool for monitor!

 
pavenvn
Occasional Contributor

Make Tool for monitor!

Hi all,
My company system:
- HPUX B.11 9000/800
- Oracle 8.1.7
- Bea Tuxedo 7.1
We use glance Utility to monitor the system and write 3 parameters CPU,DISK,MEMOMRY to file every 3 mins for the statistic reports. Now I want to write a program which do this task automatic. I have some questions:
1. How to export glance to file?
2. glance Utility run on the background will occupy the resource system(CPU,MEM,DISK)?
3. what is the sar, vmstat Utility?
Thanks alot,

pavenvn

PS: My program overview:
1> Server:
Create cronjobs: every 2 mins output to text file. In cronjob run one of the following Utility:
- sar -u 1 1
- glance ????
- vmstat ???
2> Client have 2 program:
- A program use FTP to get data and standardize data. Then put to the database.
- A program have GUI to display the data which get from the database. I f CPU, MEM,DISK > 90% to raise alrm!
4 REPLIES 4

Re: Make Tool for monitor!

You may already have a tool that does this, and much more - do you just have GlancePlus, or do you in fact have 'GlancePlus Pak' - If you have GlancePlus Pak, then you also have measurware installed - this will have been merrily gathering all the stats you see in glance every 5 minutes since your box was switched on, although it might have wrapped round its files since then...

type:

mwa status

if this comes back with some meaningful information, then you have measureware installed - now take a look at the man page for 'extract' for info on how to get data out of measureware.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Simon Hargrave
Honored Contributor

Re: Make Tool for monitor!

yes you definately want to be using measureware for this, it's what it's designed for. don't try and reinvent the wheel by scripting glance.
Matthew_50
Valued Contributor

Re: Make Tool for monitor!

for more information using glance syntax, check /opt/perf/paperdocs/gp/C/adviser.pdf

for example, I would like to have CPU usage in past an hour.

In cron,
01 01 * * * /opt/perf/bin/glance -adviser_only -syntax /tmp/temp -iterations 60 -j 60 >/tmp/cpu.log &

# cat /tmp/temp
print "cpu=", gbl_cpu_total_util|7|0, "%"
pavenvn
Occasional Contributor

Re: Make Tool for monitor!

Hi all,

The monitor program which I want to write must raise ALARM when CPU/MEM/DISK > 95%. It means that the program is background program (every 3 mins refresh).