1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...
:

It returns the percentage of free i­nodes 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 i­nodos 
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)

For correct visualization of the Pandora FMS library extension, you must have installed version NG 760 or superior

X