Moved zaf plugin to plugins

pull/1/head
Lukas Macura 2016-03-24 17:54:01 +01:00
parent 254f10834d
commit 784b29c26f
3 changed files with 1 additions and 33 deletions

33
control
View File

@ -1,33 +0,0 @@
Plugin: zaf
Basic items for Zabbix Agent Framework
Version: 0.1
Url: https://raw.githubusercontent.com/limosek/zaf/master/
Web: https://github.com/limosek/zaf/
Maintainer: Lukas Macura <lukas@macura.cz>
Item: version
Returns version of zaf installed.
Item-cmd-version: {ZAFFUNC} zaf_version
Item: plugins
Returns installed plugins
Item-cmd-plugins: {ZAFLOCK} zaf list
Item: discovery.plugins
Returns installed plugins in form suitable for zabbix discovery
Item-cmd-discovery.plugins: {ZAFFUNC} zaf_discovery_plugins
Item: plugin_version[*]
Returns maintainer of plugin
Item-cmd-plugin_version[*]: {ZAFFUNC} zaf_plugin_version $1
Binary-Depends: echo zaf

View File

@ -114,6 +114,7 @@ zaf_configure(){
zaf_get_option ZAF_PLUGINS_REPO "Plugins reposiory" "https://raw.githubusercontent.com/limosek/zaf-plugins/master/" "$1"
zaf_get_option ZAF_REPO_DIR "Plugins directory" "${ZAF_LIB_DIR}/repo" "$1"
zaf_get_option ZAF_AGENT_CONFIG "Zabbix agent config" "/etc/zabbix/zabbix_agentd.conf" "$1"
! [ -d "${ZAF_AGENT_CONFIGD}" ] && [ -d "/etc/zabbix/zabbix_agentd.d" ] && ZAF_AGENT_CONFIGD="/etc/zabbix/zabbix_agentd.d"
zaf_get_option ZAF_AGENT_CONFIGD "Zabbix agent config.d" "/etc/zabbix/zabbix_agentd.conf.d/" "$1"
zaf_get_option ZAF_AGENT_BIN "Zabbix agent binary" "/usr/sbin/zabbix_agentd" "$1"
zaf_get_option ZAF_AGENT_RESTART "Zabbix agent restart cmd" "service zabbix-agent restart" "$1"

View File