lib/arborist/snmp.rb
changeset 8 e0b7c95a154f
child 17 e4f0fd44734d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/arborist/snmp.rb	Wed Apr 04 11:00:35 2018 -0700
@@ -0,0 +1,35 @@
+# -*- ruby -*-
+#encoding: utf-8
+
+require 'loggability'
+require 'arborist'
+
+
+# Various monitoring checks using SNMP, for the Arborist monitoring toolkit.
+module Arborist::SNMP
+	extend Loggability
+
+	# Loggability API -- set up a log host for this library
+	log_as :arborist_snmp
+
+
+	# Package version
+	VERSION = '0.4.0'
+
+	# Version control revision
+	REVISION = %q$Revision$
+
+
+	### Return the name of the library with the version, and optionally the build ID if
+	### +include_build+ is true.
+	def self::version_string( include_build: false )
+		str = "%p v%s" % [ self, VERSION ]
+		str << ' (' << REVISION.strip << ')' if include_build
+		return str
+	end
+
+
+	require 'arborist/monitor/snmp'
+
+end # module Arborist::SNMP
+