• 07Nov

    In the process of implementing a 1/5/15 CPU Load monitor for Nagios, I was confronted with an LPAR problem. Using the uptime command, the load values are for all of the CPUs combined – which makes it impossible to use a standard value for different partitions, because they’ll have a different number of CPUs assigned. The solution is to divide the load values by the number of CPUs – but how do you find ou the number of CPUs? IF you are using SMT, you have to use either smtctl, vmstat, or something similar. Only the root user has execute access to the smtctl command, so that’s not very useful. Use the following grep command: vmstat | grep lcpu | cut -d” ” -f3 | cut -d”=” -f2 .
    That simple :-) .

    Posted by admin @ 6:17

    Tags: , , , , ,

Comments are closed.