Chinaunix

标题: HP主机监控 [打印本页]

作者: zjying    时间: 2005-07-01 10:47
标题: HP主机监控

监控脚本:global.adviser.txt(此脚本需放置在/opt/perf/examples/adviser/下)
#This adviser script prints the global cpu/disk/mem/swap utilization and also
# the network subsystem wait percent for the interval. Think of it as the
# glance global bars plus a network indicator.
firsttime=firsttime
if firsttime == 0 then
{
  print " "
  firsttime=1
  print "                              CPU     DISK      MEM     SWAP  Network"
  print "Date     Time      Interval  Util     Util     Util     Util  Wait %"
  print "---------------------------------------------------------------------"
}
print GBL_STATDATE," ",GBL_STATTIME," ",GBL_INTERVAL,"   ",GBL_CPU_TOTAL_UTIL,"   ",GBL_DISK_UTIL_PEAK,"   ",GBL_MEM_UTIL,"   ",GBL_SWAP_SPACE_UTIL," ",GBL_NETWORK_SUBSYSTEM_WAIT_PCT
//////结束
脚本运行语句:nohup glance -adviser_only -syntax /opt/perf/examples/adviser/global.adviser.txt -j 900>>/tmp/hpmon/global.txt &


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/7674/showart_33467.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2