mirror of
https://github.com/limosek/zaf-plugins.git
synced 2024-11-01 00:07:19 +01:00
Reworked plgins
This commit is contained in:
parent
ebbdaa2486
commit
24ca1c11bc
@ -1,24 +0,0 @@
|
|||||||
|
|
||||||
Plugin: process-info
|
|
||||||
Plugin which will make deeper look to processess and their usage.
|
|
||||||
|
|
||||||
Maintainer: Lukas Macura <lukas@macura.cz>
|
|
||||||
|
|
||||||
Item: cpu[*]
|
|
||||||
This item will return cpu usage of given process. In zabbix, it will be prefixed automaticaly by plugin name (processlist.cpu)
|
|
||||||
|
|
||||||
Item-cmd-cpu[*]: {ZAFLIB} {PLUGINDIR}/cpu-get.sh
|
|
||||||
|
|
||||||
Item: discovery
|
|
||||||
Discovery of runing processes
|
|
||||||
Item-cmd-discovery: {ZAFLIB} {PLUGINDIR}/proc-discovery.sh
|
|
||||||
|
|
||||||
Binary-depends: echo ps awk sort uniq sed
|
|
||||||
|
|
||||||
Dpkg-depends: sed
|
|
||||||
|
|
||||||
Opkg-depends: busybox
|
|
||||||
|
|
||||||
Install-bin: cpu-get.sh proc-discovery.sh
|
|
||||||
|
|
||||||
|
|
36
psx/control.zaf
Normal file
36
psx/control.zaf
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
Plugin: psx
|
||||||
|
Description::
|
||||||
|
Plugin which will make deeper look to processess and their usage.
|
||||||
|
::
|
||||||
|
|
||||||
|
Version: 0.1
|
||||||
|
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/psx
|
||||||
|
Web: https://github.com/limosek/zaf-plugins/
|
||||||
|
Maintainer: Lukas Macura <lukas@macura.cz>
|
||||||
|
Install-bin: cpu-get.sh proc-discovery.sh
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
Depends-dpkg: dash curl
|
||||||
|
Depens-opkg: busybox curl
|
||||||
|
Depends-rpm: curl
|
||||||
|
Depends-bin: curl ps
|
||||||
|
|
||||||
|
Item cpu:
|
||||||
|
Parameters: process_name
|
||||||
|
Description::
|
||||||
|
This item will return cpu usage of given process.
|
||||||
|
In zabbix, it will be prefixed automaticaly by plugin name (psx.cpu)
|
||||||
|
::
|
||||||
|
Cmd: {PLUGINDIR}/cpu-get.sh $1
|
||||||
|
/Item
|
||||||
|
|
||||||
|
Item discovery:
|
||||||
|
Description::
|
||||||
|
Discovery of runing processes
|
||||||
|
::
|
||||||
|
Cmd: {PLUGINDIR}/proc-discovery.sh
|
||||||
|
/Item
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -11,71 +11,49 @@ Description::
|
|||||||
Version: 0.3
|
Version: 0.3
|
||||||
|
|
||||||
# Url of plugin location to be able to update plugin
|
# Url of plugin location to be able to update plugin
|
||||||
Url: https://raw.githubusercontent.com/limosek/zaf/master/
|
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/zaf
|
||||||
|
|
||||||
# Homepage of plugin
|
# Homepage of plugin
|
||||||
Web: https://github.com/limosek/zaf/
|
Web: https://github.com/limosek/zaf-plugins/
|
||||||
|
|
||||||
# Maintainer
|
# Maintainer
|
||||||
Maintainer: Lukas Macura <lukas@macura.cz>
|
Maintainer: Lukas Macura <lukas@macura.cz>
|
||||||
|
|
||||||
# You can specify dependencies
|
# Dependencies
|
||||||
Depends-dpkg: dash curl
|
Depends-dpkg: dash curl
|
||||||
Depens-opkg: busybox curl
|
Depens-opkg: busybox curl
|
||||||
Depends-rpm: curl
|
Depends-rpm: curl
|
||||||
Depends-bin: curl
|
Depends-bin: curl
|
||||||
|
|
||||||
# Which files to install. All files will be saved to plugin directory (without path)
|
Item framework_version:
|
||||||
#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::
|
Description::
|
||||||
Returns version of zaf installed.
|
Returns version of zaf installed.
|
||||||
::
|
::
|
||||||
|
|
||||||
# If item is function defined in shared library, use Function:
|
# If item is function defined in shared library, use Function:
|
||||||
Function: zaf_version
|
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
|
/Item
|
||||||
|
|
||||||
# List of installed plugins as item
|
|
||||||
Item plugins:
|
Item plugins:
|
||||||
Description::
|
Description::
|
||||||
Returns installed plugins
|
Returns installed plugins
|
||||||
Description::
|
::
|
||||||
|
Function: zaf_list_plugins
|
||||||
Cmd: zaf list
|
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item discovery.plugins:
|
Item discovery.plugins:
|
||||||
Description::
|
Description::
|
||||||
Returns installed plugins in form suitable for zabbix discovery
|
Returns installed plugins in form suitable for zabbix discovery
|
||||||
Description::
|
::
|
||||||
Function: zaf_discovery_plugins
|
Function: zaf_discovery_plugins
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
Item plugin_version[*]:
|
Item plugin_version:
|
||||||
|
Parameters: plugin_name
|
||||||
Description::
|
Description::
|
||||||
Returns maintainer of plugin
|
Returns maintainer of plugin
|
||||||
Description::
|
::
|
||||||
|
|
||||||
Function: zaf_plugin_version $1
|
Function: zaf_plugin_version $1
|
||||||
|
|
||||||
/Item
|
/Item
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user