--- a/README.md Tue Sep 06 10:57:38 2016 -0700
+++ b/README.md Wed Sep 07 15:23:42 2016 -0700
@@ -39,8 +39,9 @@
Arborist::Host( 'example' ) do
description "Example host"
address '10.6.0.169'
- resource 'load', description: 'machine load' do
- config load_error_at: 5
+ resource 'load', description: 'machine load'
+ resource 'disk' do
+ include: [ '/', '/mnt' ]
end
end
@@ -56,15 +57,26 @@
include_down true
use :addresses
- snmp = Arborist::Monitor::SNMP.new( mode: 'load', load_error_at: 10 )
+ snmp = Arborist::Monitor::SNMP::Load( error_at: 10 )
exec( snmp )
end
+ Arborist::Monitor 'mount capacity check' do
+ every 30.seconds
+ match type: 'resource', category: 'load'
+ include_down true
+ use :addresses, :config
+
+ exec( Arborist::Monitor::SNMP::Disk )
+ end
+
+
Please see the rdoc for all the mode types and error_at options. Per
node "config" vars override global defaults when instantiating the
monitor.
+
## License
Copyright (c) 2016, Michael Granger and Mahlon E. Smith