:
It returns the percentage of free inodes of one partition
Module data
module_begin module_name Free inodos / module_type generic_data module_exec df i | grep E "/$" | awk '{print 100(($3/$2)*100)}' module_max 100 module_min 0 module_description Percentage Free inodos module_end
For Ubuntu:
module_exec echo n $(( 100 `df i | grep E "/$" | awk '{print $5}' | tr d “%”`)) For Suse: module_exec echo n $((100 `df i | grep E “/$” | awk '{print $5}' | tr d “\n” | awk F “%” '{print $1}' `))
(Visited 211 times, 1 visits today)