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

5 lines
127 B
Bash
Executable file

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