mirror of
				https://github.com/limosek/zaf.git
				synced 2025-10-31 17:47:37 +01:00 
			
		
		
		
	Moved zaf plugin to plugins
This commit is contained in:
		
							
								
								
									
										33
									
								
								control
									
									
									
									
									
								
							
							
						
						
									
										33
									
								
								control
									
									
									
									
									
								
							| @@ -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 | ||||
|  | ||||
| @@ -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" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lukas Macura
					Lukas Macura