自动发现服务器上所有应用的监听端口,并使用APP名称标记应用以免重复及增加可读性.
#Usage:
```
Install:
pip install zabbix-app-ports-discovery
Add to you script:
import applistenports
getlistport = applistenports.GetListenPorts()
items = getlistport.process()
print(items)
输出格式为zabbix low-level discovery要求的json格式
{
"data": [
{
"{#APPNAME}": "sshd__/usr/sbin/sshd",
"{#APPPORT}": "22"
},
{
"{#APPNAME}": "master__/usr/libexec/postfix/master",
"{#APPPORT}": "25"
},
{
"{#APPNAME}": "zabbix_agentd__/usr/sbin/zabbix_agentd",
"{#APPPORT}": "10050"
},
{
"{#APPNAME}": "zabbix_server__/usr/sbin/zabbix_server_pgsql",
"{#APPPORT}": "10051"
}
]
}
```
Metadata
Release files for zabbix-app-ports-discovery 2019.2.22.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zabbix_app_ports_discovery-2019.2.22.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for zabbix_app_ports_discovery-2019.2.22.4-py2.py3-none-any.whl |
Release files / zabbix_app_ports_discovery-2019.2.22.4-py2.py3-none-any.whl
| Download URL | zabbix_app_ports_discovery-2019.2.22.4-py2.py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
652d76bd69da73e392d39da869ac643b7f7e3647646fd78fa73bda278ebd6bf4
|
|
BLAKE2b-256 checksum How to use checksums |
21496380591f5957eb8404e3f2bb5e12004b9907f598f6fb97ccc68a4bd750f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Security for zabbix-app-ports-discovery 2019.2.22.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.