From b4d666ff63acd269b0acb2c4419643863c683750 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Tue, 30 Sep 2014 12:22:12 -0400 Subject: add generic monitor framework Instead of having a central file or group of files to describe what data resources should be monitored. The content of these files will depend on what core system monitoring is used ((e.g. Nagios or Monasca). It's desirable to have each recipe describes what it wants be monitored in generic way such that various system monitors can understand and convert these into their format. If a recipe wishes to register itself to system monitor, it inherits monitor bbclass and use MONITOR_SERVICE_PACKAGES and MONITOR_SERVICE_ to indicate what processes should should be monitored. Also MONITOR_CHECKS_ variale can be used to pass list of scripts which will be run on target and if any of these scripts fail then will report. Eventually monitor.bbclass will be expanded to allow recipe to describe more complicated information passed down to system monitor (e.g. Nagios or Monasca) Signed-off-by: Vu Tran Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-novaclient_git.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python/python-novaclient_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-novaclient_git.bb b/meta-openstack/recipes-devtools/python/python-novaclient_git.bb index e8f5aa3..a7a501c 100644 --- a/meta-openstack/recipes-devtools/python/python-novaclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-novaclient_git.bb @@ -10,13 +10,14 @@ SRC_URI = "\ git://github.com/openstack/python-novaclient.git;branch=master \ file://fix_novaclient_memory_leak.patch \ file://novaclient-specify-full-path-to-test-certificate.patch \ + file://nova-api-check.sh \ " PV="2.18.1+git${SRCPV}" SRCREV="2a1c07e790cc95b1e847974e4c757f826507834f" S = "${WORKDIR}/git" -inherit setuptools +inherit setuptools monitor DEPENDS = "python-setuptools-git" DEPENDS += " \ @@ -44,3 +45,7 @@ do_install_append() { PACKAGES =+ "${BPN}-bash-completion" FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" + +MONITOR_CHECKS_${PN} += "\ + nova-api-check.sh \ +" -- cgit v1.2.3-54-g00ecf