zabbix-trappers/scripts/cpu-count.trap

7 lines
209 B
Bash
Executable file

#!/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"