lib/arborist/snmp.rb
author Mahlon E. Smith <mahlon@martini.nu>
Sat, 01 Aug 2020 14:17:45 -0700
changeset 29 40bcd1565627
parent 26 54f2f57cc0b0
permissions -rw-r--r--
Alterations for consistency, add documentation. Version bump.

# -*- ruby -*-
#encoding: utf-8
# vim: set noet nosta sw=4 ts=4 :

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.7.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