Project

General

Profile

Bug #5468

Updated by Jonathan CLARKE about 10 years ago

CFEngine 3.6 (so rudder-agent 2.11) outputs useless and silly warnings like this on some partition sizes: 

 <pre> 
 2013-06-20T17:55:32+0000      error: /main/methods/'rabbitmq'/rabbitmq/storage/'/var/lib/rabbitmq': File system '/var/lib/rabbitmq' is suspiciously small! (4116 bytes) 
 </pre> 

 This was reported in CFEngine ticket https://dev.cfengine.com/issues/3016 

 Following IRC discussion, here's the modification to add, to make it work correctly on ZFS 

 <pre> 
 diff --git a/systemSettings/misc/partitionSizeMonitoring/1.0/monitorPartitionSize.st b/systemSettings/misc/partitionSizeMonitoring/1.0/monitorPartitionSize.st 
 index 62da9d8..d13a12c 100644 
 --- a/systemSettings/misc/partitionSizeMonitoring/1.0/monitorPartitionSize.st 
 +++ b/systemSettings/misc/partitionSizeMonitoring/1.0/monitorPartitionSize.st 
 @@ -94,5 +94,8 @@ bundle agent monitor_partition_size { 
 
  body volume freespacecheck(threshold) { 
      freespace => "$(threshold)"; 
 +      check_foreign    => "false"; 
 +      sensible_size    => "0"; 
 +      sensible_count => "0"; 
  } 
 </pre> 
 

Back