Hi, The following promise is failing to find an accurate size for the /supcrt-samba partition on my backup server. The other partitions are judged to be "sensible as promised" and there is no difference between the four partitions. Also, as a side note, I was unable to set the "percent_free" variable as type int; just curious as to why that is. I am using 3.3.0. Please let me know if there is more information I can provide.
### /etc/filesystem_usage bundle agent filesystem_usage { vars: linux:: "percent_free" string => "20%"; backup_nmcourts_gov:: "mount_points" slist => {"/","/boot","/supcrt-samba","/backups-local"}; storage: linux:: "$(mount_points)" handle => "fs_check", comment => "filesystem check", classes => if_notkept("fs_full"), volume => min_free_space("$(percent_free)"); reports: fs_full:: "Report: @(filesystem_usage.mount_points) has too little free space."; } ### /etc/filesystem_usage df: Filesystem Size Used Avail Use% Mounted on /dev/root 4.7G 3.1G 1.5G 69% / /dev/sda2 92M 28M 60M 32% /boot /dev/sdb1 825G 385G 399G 50% /supcrt-samba /dev/sdc1 1.6T 1.1T 502G 68% /backups-local blkid: /dev/sda1: UUID="241dad46-9cfd-4fbd-876d-38da7be800a7" TYPE="ext4" /dev/sda2: UUID="979f0032-d1bf-42a8-a497-1b374ec320cd" TYPE="ext4" /dev/sdb1: UUID="3ac156ec-feaa-4d04-a887-e3f499167c85" TYPE="ext4" /dev/sdc1: UUID="d2106c92-272e-4f6a-a8f6-e0b2eb2125cf" TYPE="ext4" root@backup:/var/cfengine/inputs# cf-agent -f ./promises.cf -KI -> Filesystem /'s content seems to be sensible as promised -> Filesystem /boot's content seems to be sensible as promised !! File system /supcrt-samba is suspiciously small! (4096 bytes) I: Report relates to a promise with handle "fs_check" I: Made in version 'Community Promises.cf 1.0.0' of './all_servers/filesystem_usage.cf' near line 15 I: Comment: filesystem check -> Filesystem /backups-local's content seems to be sensible as promised -> Edited file /etc/motd R: --> CFE is running on backup.nmcourts.gov Dan Barber Network Systems Administrator, Sr. Supreme Court of New Mexico 2905 Rodeo Park Dr. East, Bldg. #5 Santa Fe, NM 87505 (505) 476-6942 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine