ProgrammersOfVilnius / pov-check-health

Debian package that runs basic system health monitoring checks hourly from cron
https://launchpad.net/~pov/+archive/ppa
2 stars 0 forks source link

Error handling when you checkfs/checkinodes a nonexistent fs #14

Closed mgedmin closed 8 years ago

mgedmin commented 9 years ago

I unmounted /var/lib/buildbot, removed the mountpoint and lvremoved the device -- but forgot to update /etc/pov/check-health. I get these errors:

+ checkfs /var/lib/buildbot 1g
df: `/var/lib/buildbot': No such file or directory
df: no file systems processed
couldn't figure out free space in /var/lib/buildbot
+ checkinodes /var/lib/buildbot
df: `/var/lib/buildbot': No such file or directory
df: no file systems processed
/usr/sbin/check-health: 161: [: Illegal number: 

The checkfs is fine; the checkinodes ought to be similar.