Description of problem: logwatch tries to show "df -h" for cdrom/dvd too Version-Release number of selected component (if applicable): logwatch-7.1-8 How reproducible: always Steps to Reproduce: 1. put cd/dvd in cd/dvd drive 2. run logwatch or wait for daily output 3. see Disk Space Section Actual results: --------------------- Disk Space Begin ------------------------ Filesystem Size Used Avail Use% Mounted on df: `/media/foo': Permission denied /dev/hdb1 114G 37G 71G 35% /home /dev/hda1 9.5G 2.9G 6.2G 32% / ---------------------- Disk Space End ------------------------- Expected results: Additional info:
Could you please attach the strace of command df -h -P here.
Created attachment 126980 [details] strace If I run df -h from root or my local user account, there is no Permission denied error, nevertheless here is the strace output.
Thank you for your fast reply. The trace of df -h command looks right. Could you please attach the strace of command "logwatch --print --service zz-disk_space".
Created attachment 126999 [details] strace logwatch --print --service zz-disk_space
There was some problem with mounted directory, when the reported logwatch output was produced. The attached strace is right, so there is not any problem now.