Created
April 16, 2011 12:01
-
-
Save olegp/923063 to your computer and use it in GitHub Desktop.
Cloudkick custom plugin for checking the number of inodes in use
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 "status ok ok" | |
arr=$(df -i | grep xvda | tr "\t" "\n") | |
OLD_IFS="$IFS"; | |
IFS=" "; | |
vars=( $arr ); | |
IFS="$OLD_IFS" | |
echo "metric Inodes int" ${vars[1]} | |
echo "metric IUsed int" ${vars[2]} | |
echo "metric IFree int" ${vars[3]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment