zabbix-trappers/scripts/cpu-count.trap

8 lines
209 B
Text
Raw Normal View History

#!/bin/bash
#numCPU=$(grep processor /proc/cpuinfo | wc -l)
numKernelThreads=$(ps aux | awk '{if($11~/^\[/){print $11}}' | wc -l)
#echo "- system.cpucount $numCPU"
echo "- proc.kernel.num $numKernelThreads"