matteocorti / nagios_plugins

18 stars 7 forks source link

Random problem with check_diskio tmp file #118

Closed matteocorti closed 8 years ago

matteocorti commented 8 years ago

Original reporter: anonymous

Hi,

Sometime on my servers the tmp file that is used by check_diskio became empty (size 0).

And when check_diskio is run, i got that error : Cannot open timer ():

If i manually delete the tmp file, all is repaired.

Perhaps replace this :

if ( !-f $tmp_files{$device}

by :

if ( !-s $tmp_files{$device}

matteocorti commented 8 years ago

Original reporter: matteo@corti.li

Fixed in r1327 (will be released as 3.2.5)