{ "info": { "author": "Christian Becker", "author_email": "christian.becker@wywy.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: System :: Systems Administration" ], "description": "wywygmbh/check-puppet-agent\r\n===========================\r\n\r\nA small script with few dependencies to check the status of puppet agent\r\nruns\r\n\r\nIt is tested as a sensu check plugin, but also compatible with\r\nnagios/icinga/... due to the similar exit codes\r\n\r\nInstallation\r\n------------\r\n\r\ndependencies\r\n~~~~~~~~~~~~\r\n\r\nThe requirements are just:\r\n\r\n- ``argparse`` (command line argument parsing)\r\n- ``yaml`` (to read the puppet state files)\r\n- ``six`` (python 2 and 3 compatibility)\r\n\r\npip\r\n~~~\r\n\r\nThe package is easily available on pypi and can be just installed with\r\npip, this also includes the command line script\r\n\r\n$ pip install check-puppet-agent\r\n\r\nRPM\r\n~~~\r\n\r\nCurrently there are no prebuilt RPM packages provided, but you can built\r\nthem by yourself with some simple commands\r\n\r\n$ git clone ... $ cd check-puppet-agent $ python setup.py bdist\\_rpm\r\n\r\nUsage\r\n-----\r\n\r\nNote: The script is to run as puppet user or root, otherwise it is not\r\nable to read the required files\r\n\r\n::\r\n\r\n $ check-puppet-agent\r\n [CRITICAL] applying catalog compiled at 2015-12-06 21:50:21 (1 days 20 hours 3 minutes 23 seconds ago)\r\n [ OK] last run on 2015-12-08 17:36:19 (17 minutes 25 seconds ago)\r\n [ OK] => last run took 11 seconds\r\n\r\nSample if the agent is disabled by ``puppet agent --disable \"test\"``\r\n\r\n::\r\n\r\n $ check-puppet-agent\r\n [ WARNING] puppet agent is disabled - reason: test\r\n [CRITICAL] applying catalog compiled at 2015-12-06 21:50:21 (1 days 20 hours 4 minutes 53 seconds ago)\r\n [ OK] last run on 2015-12-08 17:36:19 (18 minutes 55 seconds ago)\r\n [ OK] => last run took 11 seconds\r\n\r\nOptions\r\n~~~~~~~\r\n\r\n::\r\n\r\n $ check-puppet-agent --help\r\n usage: check_puppet [-h] [--warning-run-age WARNING_RUN_AGE]\r\n [--critical-run-age CRITICAL_RUN_AGE]\r\n [--warning-catalog-age WARNING_CATALOG_AGE]\r\n [--critical-catalog-age CRITICAL_CATALOG_AGE]\r\n [--warning-run-duration WARNING_RUN_DURATION]\r\n [--critical-run-duration CRITICAL_RUN_DURATION]\r\n [--filename FILENAME]\r\n [--disabled-lock-file DISABLED_LOCK_FILE]\r\n [--run-lock-file RUN_LOCK_FILE]\r\n\r\n optional arguments:\r\n -h, --help show this help message and exit\r\n --warning-run-age WARNING_RUN_AGE\r\n warn at age of last puppet run in seconds (default:\r\n 1h5m) => 0s to disable\r\n --critical-run-age CRITICAL_RUN_AGE\r\n critical at age of last puppet run in seconds\r\n (default: 2h10m) => 0s to disable\r\n --warning-catalog-age WARNING_CATALOG_AGE\r\n warn at catalog age in seconds (default: 1h5m) => 0s\r\n to disable\r\n --critical-catalog-age CRITICAL_CATALOG_AGE\r\n critical at catalog age in seconds (default: 2h10m) =>\r\n 0s to disable\r\n --warning-run-duration WARNING_RUN_DURATION\r\n warn at puppet run duration in seconds (default: 20m)\r\n => 0s to disable\r\n --critical-run-duration CRITICAL_RUN_DURATION\r\n critical at puppet run duration in seconds (default:\r\n 30m) => 0s to disable\r\n --filename FILENAME the puppet state file to parse\r\n --disabled-lock-file DISABLED_LOCK_FILE\r\n the path to the lock file if the agent is disabled\r\n --run-lock-file RUN_LOCK_FILE\r\n the path to the lock file if the agent is running\r\n\r\nLicense\r\n=======\r\n\r\nCopyright 2015 wywy GmbH\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may\r\nnot use this file except in compliance with the License. You may obtain\r\na copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable\r\nlaw or agreed to in writing, software distributed under the License is\r\ndistributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, either express or implied. See the License for the specific\r\nlanguage governing permissions and limitations under the License.\r\n\r\nThis script is proudly presented by the DevOps guys at `wywy\r\nGmbH `__.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wywygmbh/check-puppet-agent", "keywords": "", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "check-puppet-agent", "package_url": "https://pypi.org/project/check-puppet-agent/", "platform": "any", "project_url": "https://pypi.org/project/check-puppet-agent/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/wywygmbh/check-puppet-agent" }, "release_url": "https://pypi.org/project/check-puppet-agent/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "A check to monitor puppet agent runs", "version": "1.0.0" }, "last_serial": 1852536, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d7171fd5f345c77767e54ca7b2788050", "sha256": "6c4336414bc043737ad700fc44ff14605dad2b2528ba9ff17641ac08ccc25eb7" }, "downloads": -1, "filename": "check_puppet_agent-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d7171fd5f345c77767e54ca7b2788050", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 9042, "upload_time": "2015-12-08T17:28:58", "url": "https://files.pythonhosted.org/packages/42/1d/851d318244c4b7ad817bf1bdafa15e409fbcec58abbfdc580755157f92d6/check_puppet_agent-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e187b61cb74631b672662b4a6c723d5", "sha256": "1a92b0087612a16647b0308c238f7d69685ff280f57ffc59fe212aaa6015a203" }, "downloads": -1, "filename": "check_puppet_agent-1.0.0-py3.5.egg", "has_sig": false, "md5_digest": "7e187b61cb74631b672662b4a6c723d5", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 10048, "upload_time": "2015-12-08T17:33:11", "url": "https://files.pythonhosted.org/packages/51/79/968a2739b036512f52273169f4317556a2d31b59af336ea33d38dfc5149d/check_puppet_agent-1.0.0-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "09f40066c7356d5ffcdbb6b4eb6a559d", "sha256": "f940cc6da2f2881433ba2d10ef0fa559ea5e1e123828a71b9f920d47ece8eeac" }, "downloads": -1, "filename": "check-puppet-agent-1.0.0.tar.gz", "has_sig": false, "md5_digest": "09f40066c7356d5ffcdbb6b4eb6a559d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5855, "upload_time": "2015-12-08T17:29:48", "url": "https://files.pythonhosted.org/packages/68/92/c22278b182f036c6fddb56765dc55928f7e2cdea549275e32476e5a70509/check-puppet-agent-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d7171fd5f345c77767e54ca7b2788050", "sha256": "6c4336414bc043737ad700fc44ff14605dad2b2528ba9ff17641ac08ccc25eb7" }, "downloads": -1, "filename": "check_puppet_agent-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d7171fd5f345c77767e54ca7b2788050", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 9042, "upload_time": "2015-12-08T17:28:58", "url": "https://files.pythonhosted.org/packages/42/1d/851d318244c4b7ad817bf1bdafa15e409fbcec58abbfdc580755157f92d6/check_puppet_agent-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e187b61cb74631b672662b4a6c723d5", "sha256": "1a92b0087612a16647b0308c238f7d69685ff280f57ffc59fe212aaa6015a203" }, "downloads": -1, "filename": "check_puppet_agent-1.0.0-py3.5.egg", "has_sig": false, "md5_digest": "7e187b61cb74631b672662b4a6c723d5", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 10048, "upload_time": "2015-12-08T17:33:11", "url": "https://files.pythonhosted.org/packages/51/79/968a2739b036512f52273169f4317556a2d31b59af336ea33d38dfc5149d/check_puppet_agent-1.0.0-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "09f40066c7356d5ffcdbb6b4eb6a559d", "sha256": "f940cc6da2f2881433ba2d10ef0fa559ea5e1e123828a71b9f920d47ece8eeac" }, "downloads": -1, "filename": "check-puppet-agent-1.0.0.tar.gz", "has_sig": false, "md5_digest": "09f40066c7356d5ffcdbb6b4eb6a559d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5855, "upload_time": "2015-12-08T17:29:48", "url": "https://files.pythonhosted.org/packages/68/92/c22278b182f036c6fddb56765dc55928f7e2cdea549275e32476e5a70509/check-puppet-agent-1.0.0.tar.gz" } ] }