Ad Widget

Collapse

Cpu on Solaris

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ad@kbc-clearing.com
    Member
    • Sep 2005
    • 77

    #1

    Cpu on Solaris

    We found that cpu measurement on Solaris with the zabbix agent provided does not give correct data.
    We made our own "custom" cpu measurement, and put it in cron every 60 secs.

    This is the commandline
    vmstat 5 6|sed 1,2d|awk '{x=x+$22} END {print 100-x/6}'|xargs sh -c '/usr/local/zabbix/bin/zabbix_sender -z svr-zabbix -p 10051 -s rts-b -k cpu -o $0' > /dev/null 2>&1
  • srutz
    Junior Member
    • Jun 2006
    • 5

    #2
    Hi thanks for your command line for Solaris.
    but even that one does not send correct information, please keep in mind, the first row of values are since system boot. you should sed one more line a divide by 5 to get an up to date information, which is more or less ok.
    if you have a multi cpu environment, you could use mpstat to get a list of all cpu's, just if you want more infos about each single cpu.

    Comment

    Working...