Jump to content
  • [6.8.2] Inconsistency in disk temperature threshold checking


    snoopstah
    • Annoyance

    A couple of times in the last few months I've been surprised to receive a weekly array health report e-mail telling me I have a drive overheating, when I've not previously received an independent notification for that drive being too hot.

     

    I believe I've tracked this down to an inconsistency in how the two scripts are determining if a drive is too hot.

     

    In /usr/local/emhttp/plugins/dynamix/scripts/statuscheck, the relevant check is:

    if ($temp>=$max) {
        $fail = ' (disk is overheated';
        $error0++;
    } elseif ($temp>=$hot) {
        $fail = ' (disk is hot';
        $error1++;
    } else {
        $fail = '';
    }

    Whereas in /usr/local/emhttp/plugins/dynamix/scripts/monitor, the code is:

    $warn = exceed($temp,$max,$top) ? 'alert' : (exceed($temp,$hot,$top) ? 'warning' : '');

    Which uses the 'exceed' helper function, defined in /usr/local/emhttp//webGui/include/Wrappers.php:

    function exceed($value, $limit, $top=100) {
        return ($value>$limit && $limit>0 && $value<=$top);
    }

    As can be seen, the script that runs the weekly health check is checking if the disk temperature is >= than the threshold temperature, whereas the script that triggers the independent notifications is checking if the disk temperature > than the threshold temperature.

     

    This means that if your warning threshold is set to, say, 40 degrees, and you have a disk that's running at 40 degrees, the health report will mark the disk as too hot, but there will be no independent notification until the disk reaches 41 degrees.

     

    Apologies for not testing this on 6.8.3, but I have checked the release notes and can't see any mention of this being fixed.




    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...