Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mackerel
#!/bin/bash
name="process.count.nginx"
monitor_time=`date +%s`
count=`ps aux | grep nginx | grep -v grep | wc -l`
echo -e "${name}\t${count}\t${monitor_time}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment