1833994 Members
3658 Online
110063 Solutions
New Discussion

HPUX 11.x Monitoring

 
SOLVED
Go to solution
RASE_1
Advisor

HPUX 11.x Monitoring

I would like to set up a basic monitoring in order to remove all processes which consume too much CPU.
Is it a free tool or any other script?

Thanks
10 REPLIES 10
Alex Lavrov.
Honored Contributor

Re: HPUX 11.x Monitoring

Yes, there are some great tools:

http://www.zabbix.com
http://www.nagios.org

I prefer Zabbix, because it's much simplier than nagios. The problem is, that Zabbix, doesn't have any buil it monitors for HPUX, so you'll have to provide the script, but it's not a problem.

With sar and ps you can see the cpu usage and find the "heaviest" process in the system.

I used them both on HPUX servers and they both work fine.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Alex Lavrov.
Honored Contributor

Re: HPUX 11.x Monitoring

Well, if you reopened the thread, I can add that I can send you some scripts for Zabbix that I wrote for my hpux boxes.


Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Pravin Salgaonkar
Frequent Advisor

Re: HPUX 11.x Monitoring

hi

u can use top and sar which r free tools. also u can get evaluation version of glance which is free u need to get a evaluation license from hp the software is in the installation cd.i have a script for monitoring provided by someone i dont know but on this forum.attaching the script.

regards
Pravin S
RASE_1
Advisor

Re: HPUX 11.x Monitoring

I would appreciate to receive examples. Thanks a lot
Bharat Katkar
Honored Contributor

Re: HPUX 11.x Monitoring

Hi,

sar is most useful and free tool to monitor the CPU usage. you can use sar command as:

# sar -u 1 10

Here 1 is the time interval in sec to collect the sample and 10 is no of samples to collect.

It will return the output in this manner.

08:16:59 %usr %sys %wio %idle
08:17:00 1 1 0 98
08:17:01 0 1 0 99
08:17:02 0 0 0 100
08:17:03 0 1 0 99
08:17:04 0 0 0 100
08:17:05 1 4 1 94
08:17:06 0 1 0 99
08:17:07 3 1 0 96
08:17:08 1 4 0 95
08:17:09 0 0 0 100

Average 1 1 0 98

Try to understand the significance of each column and it's value. To know more see man sar.

Also attaching performance cookbook for more reference.

Hope that helps.
Regards,

You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: HPUX 11.x Monitoring

I got error attaching file ...tryioing one more time
You need to know a lot to actually know how little you know
Alex Lavrov.
Honored Contributor
Solution

Re: HPUX 11.x Monitoring

Here are the scripts I used with zabbix.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Basheer_2
Trusted Contributor

Re: HPUX 11.x Monitoring

Hi

Other free tool is top which can be used interactive or in a script like this

top -n 300 -f top.log

Thanks
Basheer
Borislav Perkov
Respected Contributor

Re: HPUX 11.x Monitoring

Hi Rase,

Here is one script for memory top users.

Regards,
Borislav
RASE_1
Advisor

Re: HPUX 11.x Monitoring

Thanks for your help.
I'm able now to get a list of 'undesirable' process.