Added pack files for Glance

Change-Id: Ic19c5e63a6d489184833047c7c73885a6efe380b
This commit is contained in:
Grégory Starck 2015-01-16 15:43:38 -05:00 committed by aviau
parent 929e689611
commit 163dd1c538
6 changed files with 83 additions and 0 deletions

@ -0,0 +1,4 @@
linux-glance
============
Shinken configuration pack for OpenStack Glance service.

@ -0,0 +1,4 @@
define command {
command_name check_glance
command_line $PLUGINSDIR$/check_glance -U $_HOSTOS_AUTH_URL$ -u $_HOSTOS_USERNAME$ -p $_HOSTOS_PASSOWRD$ -t $_HOSTOS_TENANT_NAME$ -e $_HOSTOS_GLANCE_URL$
}

@ -0,0 +1,32 @@
{
"name":"linux-glance",
"description":"Check Glance service",
# NEXT LINES ARE SAMPLES: YOU CAN DELETE IT
"macros":{
"_OS_AUTH_URL": {"type": "string",
"description": "The Auth API URL",
},
"_OS_USERNAME": {"type": "string",
"description": "The Auth API username",
},
},
"_OS_PASSWORD": {"type": "string",
"description": "The Auth API password",
},
},
"_OS_TENANT_NAME": {"type": "string",
"description": "The Tenant name",
},
},
"_OS_GLANCE_URL": {"type": "string",
"description": "The Glance URL",
},
},
}

@ -0,0 +1,8 @@
define service{
service_description Check Glance service
host_name linux-glance
use generic-service
register 0
check_command check_glance
}

@ -0,0 +1,12 @@
define host {
name linux-glance
use generic-host
register 0
_OS_AUTH_URL null
_OS_USERNAME null
_OS_PASSOWRD null
_OS_TENANT_NAME null
_OS_GLANCE_URL null
}

@ -0,0 +1,23 @@
{
"name": "sfl-linux-glance",
"types": ["pack"],
"version": "1.0",
"homepage": "https://github.com/stackforge/surveil",
"author": "Grégory Starck",
"description": "Check an OpenStack Glance instance.",
"contributors": [
{
"name": "Grégory Starck",
"email": "gregory.starck@savoirfairelinux.com"
},
],
"repository": "https://github.com/stackforge/surveil",
"keywords": [
"pack",
"linux-glance"
],
"dependencies": {
"shinken": ">=1.4"
},
"license": "GPL"
}