README.md
changeset 29 40bcd1565627
parent 26 54f2f57cc0b0
child 31 07e0ef36e5a3
equal deleted inserted replaced
28:534fa741c700 29:40bcd1565627
   115 
   115 
   116   * **warn_at**: Set the node to a `warning` state when disk capacity is at or over this amount.
   116   * **warn_at**: Set the node to a `warning` state when disk capacity is at or over this amount.
   117                  You can also set this to a Hash, keyed on mount name, if you want differing
   117                  You can also set this to a Hash, keyed on mount name, if you want differing
   118                  warning values per mount point.  A mount point that is at 100% capacity will
   118                  warning values per mount point.  A mount point that is at 100% capacity will
   119                  be explicity set to `down`, as the resource it represents has been exhausted.
   119                  be explicity set to `down`, as the resource it represents has been exhausted.
       
   120   * **alert_readonly**: Set the now to an `error` state if mounts are readonly.
       
   121                  This may be helpful in iscsi-root environments.  You can set this to a Hash,
       
   122                  keyed on mount name, if you want differing behavior per mount point.
   120   * **include**: String or Array of Strings.  If present, only matching mount points are
   123   * **include**: String or Array of Strings.  If present, only matching mount points are
   121                  considered while performing checks.  These are treated as regular expressions.
   124                  considered while performing checks.  These are treated as regular expressions.
   122   * **exclude**: String or Array of Strings.  If present, matching mount point are removed
   125   * **exclude**: String or Array of Strings.  If present, matching mount point are removed
   123                  from evaluation.  These are treated as regular expressions.
   126                  from evaluation.  These are treated as regular expressions.
   124 
   127 
   230 
   233 
   231   * All SNMP monitored resources are quieted if the SNMP service itself is unavailable.
   234   * All SNMP monitored resources are quieted if the SNMP service itself is unavailable.
   232   * Only monitor specific disk partitions, warning at different capacities .
   235   * Only monitor specific disk partitions, warning at different capacities .
   233   * Ensure the 'important' processing is running with the '--production' flag.
   236   * Ensure the 'important' processing is running with the '--production' flag.
   234   * Warns at 95% memory utilization OR 10% swap.
   237   * Warns at 95% memory utilization OR 10% swap.
       
   238   * Ensure '/' is not a mounted as a read-only filesystem.
   235 
   239 
   236 -
   240 -
   237 
   241 
   238 ```
   242 ```
   239 Arborist::Host 'example' do
   243 Arborist::Host 'example' do
   257 			include: [
   261 			include: [
   258 				'^/tmp',
   262 				'^/tmp',
   259 				'^/var'
   263 				'^/var'
   260 			],
   264 			],
   261 			warn_at: {
   265 			warn_at: {
   262 					'/tmp' => 50,
   266 				'/tmp' => 50,
   263 					'/var' => 80
   267 				'/var' => 80
       
   268 			},
       
   269 			alert_readonly: {
       
   270 				'/' => true
   264 			}
   271 			}
   265 	end
   272 	end
   266 
   273 
   267 	resource 'process' do
   274 	resource 'process' do
   268 		depends_on 'example-snmp'
   275 		depends_on 'example-snmp'