spegling av
				https://github.com/limosek/zaf-plugins.git
				synced 2025-10-31 17:47:37 +01:00 
			
		
		
		
	New control file
This commit is contained in:
		
							
								
								
									
										33
									
								
								zaf/control
									
									
									
									
									
								
							
							
						
						
									
										33
									
								
								zaf/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 | ||||
|  | ||||
							
								
								
									
										81
									
								
								zaf/control.zaf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										81
									
								
								zaf/control.zaf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,81 @@ | ||||
|  | ||||
| # Name of the plugin. This is singleline value | ||||
| Plugin: zaf | ||||
|  | ||||
| # Description of plugin. This is multiline value | ||||
| Description:: | ||||
|  Basic items for Zabbix Agent Framework | ||||
| :: | ||||
|  | ||||
| # Version of the plugin. | ||||
| Version: 0.3 | ||||
|  | ||||
| # Url of plugin location to be able to update plugin | ||||
| Url: https://raw.githubusercontent.com/limosek/zaf/master/ | ||||
|  | ||||
| # Homepage of plugin | ||||
| Web: https://github.com/limosek/zaf/ | ||||
|  | ||||
| # Maintainer | ||||
| Maintainer: Lukas Macura <lukas@macura.cz> | ||||
|  | ||||
| # You can specify dependencies | ||||
| Depends-dpkg: dash curl | ||||
| Depens-opkg: busybox curl | ||||
| Depends-rpm: curl | ||||
| Depends-bin: curl | ||||
|  | ||||
| # Which files to install. All files will be saved to plugin directory (without path) | ||||
| #Install-bin: bin/test.sh | ||||
|  | ||||
| #Install-script:: | ||||
| # cd {PLUGINDIR}; | ||||
| # echo aaa | ||||
| #:: | ||||
|  | ||||
| #Install-cmd: {PLUGINDIR}/install.sh | ||||
|  | ||||
| # List of items. Each item can have more control options. | ||||
| # Item configuration ends by white line. | ||||
| Item version: | ||||
| # Item decription | ||||
| Description:: | ||||
|      Returns version of zaf installed. | ||||
| :: | ||||
|  | ||||
| # If item is function defined in shared library, use Function: | ||||
| Function: zaf_version | ||||
|  | ||||
| # If you want to specify script directly here, use Script: | ||||
| #Script:: | ||||
| ##!/bin/sh | ||||
| #. {ZAFLIBDIR}/zaf/lib.sh | ||||
| #zaf_version | ||||
| #:: | ||||
|  | ||||
| # End of item declaration | ||||
| /Item | ||||
|  | ||||
| # List of installed plugins as item | ||||
| Item plugins: | ||||
| Description:: | ||||
|  Returns installed plugins | ||||
| Description:: | ||||
|  | ||||
| Cmd: zaf list | ||||
| /Item | ||||
|  | ||||
| Item discovery.plugins: | ||||
| Description:: | ||||
|  Returns installed plugins in form suitable for zabbix discovery | ||||
| Description:: | ||||
| Function: zaf_discovery_plugins | ||||
| /Item | ||||
|  | ||||
| Item plugin_version[*]: | ||||
| Description:: | ||||
|  Returns maintainer of plugin | ||||
| Description:: | ||||
| Function: zaf_plugin_version $1 | ||||
| /Item | ||||
|  | ||||
		Referens i nytt ärende
	
	Block a user
	 Lukas Macura
					Lukas Macura