Skip to content

Instantly share code, notes, and snippets.

View james-gonzalez's full-sized avatar
🏠
Working from home

James Gonzalez james-gonzalez

🏠
Working from home
View GitHub Profile
@james-gonzalez
james-gonzalez / Nagios check CPU steal
Last active August 29, 2015 14:16 — forked from dlanderson/Example bash script to calculate CPU steal% on Linux
Nagios Bash script which checks the Steal and reports back if threshholds are reached
#!/bin/bash
##Author: James Eaton, [email protected]
#Adopted from http://stackoverflow.com/questions/26791240/how-to-get-percentage-of-processor-use-with-bash
##Created: 02/03/2015
### HELP/INFO
if [ $1 = -h ]; then
echo "Description: Checks steal for instance";
exit 1;
fi