Operating System - HP-UX
1830061 Members
2937 Online
109998 Solutions
New Discussion

script to monitor swap memory, physical memory and cpu usage in HP-UX 11.31 & 11.21

 
Mr.Right
Advisor

script to monitor swap memory, physical memory and cpu usage in HP-UX 11.31 & 11.21

Hi Scripts Gurus,

Please help with a script which will help me to to monitor swap memory, physical memory and cpu usage for HP-UX 11.31 and 11.23, and if the usages go above 99 % I will get a mail atomically.

Thanks In Advance,
Mr Right.
2 REPLIES 2
izad
Honored Contributor

Re: script to monitor swap memory, physical memory and cpu usage in HP-UX 11.31 & 11.21

Hi Right,

Attached is a perl script i wrote for alerting when CPU crosses a threshold. Hope this will be useful. You can have similar approach for swap and physical memory.

I've wrote the expression for 2 cpu server and you need to change the script according to your environment with proper threshold and SMTP server details.

hth,
I hate quotations. Tell me what you know !
Hakki Aydin Ucar
Honored Contributor

Re: script to monitor swap memory, physical memory and cpu usage in HP-UX 11.31 & 11.21