Menu

#44 zz-disk_space not warning disk full when DETAIL is low

v7.4.2
closed-accepted
None
5
2016-02-20
2015-07-06
QIU Quan
No

No matter what value I set $diskfull_threshold to in /etc/logwatch/conf/services/zz-disk_space.conf, I can't get any warning in output, unless I also set DETAIL=1.

Seems the cause is DiskFull() relies on $disk_cmd, which is set up in DiskSpace(), but it won't run unless DETAIL is greater than 0.

I tried to move the $disk_cmd initializing code out of the subroutine, and it worked! Don't known if there are any bad effects.

1 Attachments

Discussion

  • Stefan Jakobs

    Stefan Jakobs - 2016-02-20
    • status: open --> closed-accepted
    • assigned_to: Stefan Jakobs
     
  • Stefan Jakobs

    Stefan Jakobs - 2016-02-20

    Thanks for reporting. Fixed in rev 326

     

Log in to post a comment.