{ "info": { "author": "Matthias Bach", "author_email": "marix@marix.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Environment :: Console", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: System :: Monitoring", "Topic :: Utilities" ], "description": "=============================\nZypper Patch Status Collector\n=============================\n\nThis queries the current patch status of the system from Zypper and exports it in a format compatible with the `Prometheus Node Exporter's`_ textfile collector.\n\nUsage\n-----\n\n::\n\n > zypper-patch-status-collector\n # HELP zypper_applicable_patches The current count of applicable patches\n # TYPE zypper_applicable_patches gauge\n zypper_applicable_patches{category=\"security\",severity=\"critical\"} 0\n zypper_applicable_patches{category=\"security\",severity=\"important\"} 2\n zypper_applicable_patches{category=\"security\",severity=\"moderate\"} 0\n zypper_applicable_patches{category=\"security\",severity=\"low\"} 0\n zypper_applicable_patches{category=\"security\",severity=\"unspecified\"} 0\n zypper_applicable_patches{category=\"recommended\",severity=\"critical\"} 0\n zypper_applicable_patches{category=\"recommended\",severity=\"important\"} 0\n zypper_applicable_patches{category=\"recommended\",severity=\"moderate\"} 0\n zypper_applicable_patches{category=\"recommended\",severity=\"low\"} 0\n zypper_applicable_patches{category=\"recommended\",severity=\"unspecified\"} 0\n zypper_applicable_patches{category=\"optional\",severity=\"critical\"} 0\n zypper_applicable_patches{category=\"optional\",severity=\"important\"} 0\n zypper_applicable_patches{category=\"optional\",severity=\"moderate\"} 1\n zypper_applicable_patches{category=\"optional\",severity=\"low\"} 0\n zypper_applicable_patches{category=\"optional\",severity=\"unspecified\"} 0\n zypper_applicable_patches{category=\"feature\",severity=\"critical\"} 0\n zypper_applicable_patches{category=\"feature\",severity=\"important\"} 0\n zypper_applicable_patches{category=\"feature\",severity=\"moderate\"} 0\n zypper_applicable_patches{category=\"feature\",severity=\"low\"} 0\n zypper_applicable_patches{category=\"feature\",severity=\"unspecified\"} 0\n zypper_applicable_patches{category=\"document\",severity=\"critical\"} 0\n zypper_applicable_patches{category=\"document\",severity=\"important\"} 0\n zypper_applicable_patches{category=\"document\",severity=\"moderate\"} 0\n zypper_applicable_patches{category=\"document\",severity=\"low\"} 0\n zypper_applicable_patches{category=\"document\",severity=\"unspecified\"} 0\n zypper_applicable_patches{category=\"yast\",severity=\"critical\"} 0\n zypper_applicable_patches{category=\"yast\",severity=\"important\"} 0\n zypper_applicable_patches{category=\"yast\",severity=\"moderate\"} 0\n zypper_applicable_patches{category=\"yast\",severity=\"low\"} 0\n zypper_applicable_patches{category=\"yast\",severity=\"unspecified\"} 0\n # HELP zypper_scrape_success Whether the last scrape for zypper data was successful.\n # TYPE zypper_scrape_success gauge\n zypper_scrape_success 1\n\nTo get this picked up by the `Prometheus Node Exporter's`_ textfile collector dump the output into a ``zypper.prom`` file in the textfile collector directory::\n\n > zypper-patch-status-collector > /var/lib/node_exporter/collector/zypper.prom\n\nInstallation\n------------\n\nRunning this requires Python. Legacy Python (2.7) is also supported.\n\nInstall as any python software via pip::\n\n pip install zypper-patch-status-collector\n\nTests\n-----\n\nThe tests are based on pytest_.\nRunning them on multiple Python versions can be done via tox_.\nJust run the following in the project root::\n\n tox\n\nLicense\n-------\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou can find a full version of the license in the `LICENSE file`_.\nIf not, see https://www.gnu.org/licenses/.\n\n\n.. _`Prometheus Node Exporter's`: https://github.com/prometheus/node_exporter\n.. _pytest: https://docs.pytest.org/en/latest/\n.. _tox: https://tox.readthedocs.io/en/latest/\n.. _`LICENSE file`: ./LICENSE.txt\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/Marix/zypper-patch-status-collector", "keywords": "", "license": "GPL-3.0+", "maintainer": "", "maintainer_email": "", "name": "zypper-patch-status-collector", "package_url": "https://pypi.org/project/zypper-patch-status-collector/", "platform": "", "project_url": "https://pypi.org/project/zypper-patch-status-collector/", "project_urls": { "Homepage": "https://gitlab.com/Marix/zypper-patch-status-collector" }, "release_url": "https://pypi.org/project/zypper-patch-status-collector/0.1.0/", "requires_dist": [ "setuptools" ], "requires_python": "", "summary": "Exports patch status in Prometheus-compatible format.", "version": "0.1.0" }, "last_serial": 3453715, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f40f20226e92ebe3613be0bbb74bd1e1", "sha256": "96c8b47e4feb62de4e78e1d96b8e96a63f454b8caeb692c3db3ff31206a54ce8" }, "downloads": -1, "filename": "zypper_patch_status_collector-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f40f20226e92ebe3613be0bbb74bd1e1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8366, "upload_time": "2017-12-31T22:00:11", "url": "https://files.pythonhosted.org/packages/1f/c6/057908003305c609ee91be9ee3c76d9730aa0382f139d60e53367943dfa2/zypper_patch_status_collector-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5da88a04eed4dcff9ace36afdd34d6ed", "sha256": "71b98303a37c5579abcbc1ba424aa921d048148c29ab8ff4775916ecd1fc5e31" }, "downloads": -1, "filename": "zypper-patch-status-collector-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5da88a04eed4dcff9ace36afdd34d6ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19217, "upload_time": "2017-12-31T22:00:13", "url": "https://files.pythonhosted.org/packages/0d/25/f4afe56ba1bb700e94e29eba828c47f7ea5d0a5e7d26181f484cd489b7cd/zypper-patch-status-collector-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f40f20226e92ebe3613be0bbb74bd1e1", "sha256": "96c8b47e4feb62de4e78e1d96b8e96a63f454b8caeb692c3db3ff31206a54ce8" }, "downloads": -1, "filename": "zypper_patch_status_collector-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f40f20226e92ebe3613be0bbb74bd1e1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8366, "upload_time": "2017-12-31T22:00:11", "url": "https://files.pythonhosted.org/packages/1f/c6/057908003305c609ee91be9ee3c76d9730aa0382f139d60e53367943dfa2/zypper_patch_status_collector-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5da88a04eed4dcff9ace36afdd34d6ed", "sha256": "71b98303a37c5579abcbc1ba424aa921d048148c29ab8ff4775916ecd1fc5e31" }, "downloads": -1, "filename": "zypper-patch-status-collector-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5da88a04eed4dcff9ace36afdd34d6ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19217, "upload_time": "2017-12-31T22:00:13", "url": "https://files.pythonhosted.org/packages/0d/25/f4afe56ba1bb700e94e29eba828c47f7ea5d0a5e7d26181f484cd489b7cd/zypper-patch-status-collector-0.1.0.tar.gz" } ] }