Created
February 14, 2017 20:40
-
-
Save chmac/8e6bd903e5b73030d909495e3ca060bc to your computer and use it in GitHub Desktop.
Utility script to send output of ps to an email during high load (needs to be called from something like monit)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "$(/bin/ps auxww)$(/usr/bin/top -bn1)" | /usr/bin/mail -s "HOST high load psauxww" EMAIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment