matteocorti / nagios_plugins

18 stars 7 forks source link

UNKNOWN Error on some systems #128

Closed matteocorti closed 8 years ago

matteocorti commented 8 years ago

Original reporter: mi@bacher.at

Hi,

we have experienced UNKNOWN problems on some systems: CHECK_DISKIO UNKNOWN - Cannot open timer (): No such file or directory

From my point of view there is a bug in the code:

       ( $diff, $in, $out ) = read_timer( $tmp_files{$device} );

        if ( $diff < 1 ) {

            # wait a little bit
            sleep 1;
            ( $diff, $in, $out ) = read_timer();

        }

If diff < 1 leads to a further call of function read_timer() without an argument. Shouldn't it be read_timer( $tmp_files{$device} ) again?

Regards, Michael