zabbix-trappers/scripts/proc.kernel.num.trap

6 lines
127 B
Text
Raw Normal View History

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