{ "info": { "author": "Pablo Estigarribia", "author_email": "pablodav@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Topic :: System :: Monitoring" ], "description": "Title1\n======\n\nChecks an url raise an alert if some problem is found.\nUses curl with all its power, so you can extend your check with all curl options.\n\n`VERSION `__\n\nInstall\n=======\n\nLinux::\n\n sudo pip3 install curlnagios --upgrade\n\nAlso is possible to use::\n\n sudo python3 -m pip install curlnagios --upgrade\n\nOn windows with python3.5::\n\n pip install curlnagios --upgrade\n\nFor proxies add::\n\n --proxy='http://user:passw@server:port'\n\nUsage\n=====\n\nUse the command line::\n\n > curlnagios --help\n usage: curlnagios [-h] [-u [URL]] [-e [EXTRA_ARGS]]\n\n optional arguments:\n -h, --help show this help message and exit\n -u [URL], --url [URL]\n url to check \n -e [EXTRA_ARGS], --extra_args [EXTRA_ARGS]\n extra args to add to curl, see `curl manpage `_.\n\n\nExample usage\n=============\n\nExample use with proxy::\n\n > curlnagios --url='http://xx/dd' --extra_args='--proxy http://user:pass@host:8080'\n\nExample using proxy, and authentication with ntlm for the website:\n\n > curlnagios --url='http://xx/dd' --extra_args='--proxy http://user:pass@host:8080 --user user:pass --ntlm'\n\nAll the extra_args are options directly comming from curl manpage, you can use almost any \nwith exception of -s, -o, -w as these are\nimplicit added on the curl command line argument to format the output for this plugin.\n\nExample usage with AzureAD oauth2\n=================================\n\nWhen creating authentication with AzureAD oauth2, you need to create a client Application and Azure AD only applications:\n\nhttps://apps.dev.microsoft.com/#/appList\n\nThen use:\n\n > curlnagios --url 'https://{yoururltotest}/api/path' --client_id 'unique-client-id' --scope 'https://{tenant}/unique-id-here-for-the-app/.default' --client_secret 'theclientoken' --grant_type 'client_credentials' --auth_url 'https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token' --oauth2\n\nChange {tenant} with your identifier and the unique id for client and for application.\nAdd your client secret\n\nThis comes from documentation using token: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-access-token\n\nNagios config\n=============\n\nExample command::\n\n define command{\n command_name check_http_curl\n command_line /usr/local/bin/curlnagios --url='$ARG1$' --extra_args='$ARG2$'\n }\n\n define command{\n command_name check_http_curl_azuread\n command_line /usr/local/bin/curlnagios --url='$ARG1$' --client_id '$ARG2$' --scope '$ARG3$' --client_secret '$ARG4$' --auth_url 'https://login.microsoftonline.com/$ARG5$/oauth2/v2.0/token' --oauth2 --extra_args='$ARG6$'\n }\n\nExample service::\n\n define service {\n host_name SERVERX\n service_description service_name\n check_command check_http_curl!http://url/path!--proxy http://user:name@host:8080 --user user:name --ntlm\n use\t\t\t\t generic-service\n notes some useful notes\n }\n\nExample service bypassing reverse proxy and dns and proxy server::\n\n define service {\n host_name SERVERY\n service_description fqdn.backend1\n check_command check_http_curl!http://192.168.10.10:80!--noproxy \"192.168.10.10\" -H \"Host: fqdn.site.name\"\n use\t\t\t\t generic-service\n notes Monitoring backend1 de of site fqdn.site.name\n }\n\n ## In this way you can connect to some backend and pass with -H the host header to get and also ensure no proxy used to connect to url.\n\nExample using azuread oauth2::\n\n define service {\n host_name SERVERY\n service_description fqdn.backend1\n check_command check_http_curl_azuread!http://fqdn.site.name/api/xx!client-unique-id!https://{tenant}/unique-id-here-for-the-app/.default!client-secret-unique!tenant!some extra args if desired\n use\t\t\t\t generic-service\n notes Monitoring backend1 de of site fqdn.site.name\n }\n\nYou can use ansible role that already has the installation and command: https://github.com/CoffeeITWorks/ansible_nagios4_server_plugins\n\nTODO\n====\n\n* Use hash passwords\n* Add Unit tests?\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pablodav/curlnagios", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "curlnagios", "package_url": "https://pypi.org/project/curlnagios/", "platform": "", "project_url": "https://pypi.org/project/curlnagios/", "project_urls": { "Homepage": "https://github.com/pablodav/curlnagios" }, "release_url": "https://pypi.org/project/curlnagios/0.6.0/", "requires_dist": [ "requests (>=2.19.1)", "rstcheck" ], "requires_python": "", "summary": "curl check_http nagios plugin", "version": "0.6.0" }, "last_serial": 4270021, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "8174ada63588a483898b461da4fd6fea", "sha256": "bc196257e6d34ae617ffc7cdd167d0b4734b2c74be870f3f36857b8328979a11" }, "downloads": -1, "filename": "curlnagios-0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "8174ada63588a483898b461da4fd6fea", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6652, "upload_time": "2018-03-22T19:48:26", "url": "https://files.pythonhosted.org/packages/b0/74/65c4adf1355df1bde8e1440b09d880644282c2bb7f2a14dba22dc2de4950/curlnagios-0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd41cf290541d5ec786b72ea965f40da", "sha256": "6eafd61ba8cf817c623fa5e05c2815eb4bae305267f4ef3c4b41d836b00cf60a" }, "downloads": -1, "filename": "curlnagios-0.5.tar.gz", "has_sig": false, "md5_digest": "fd41cf290541d5ec786b72ea965f40da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4855, "upload_time": "2018-03-22T19:48:27", "url": "https://files.pythonhosted.org/packages/8c/17/799e5f6c56a66d7c71ada8f3d9b1f682626de24139ca82b9a73ef7ca3512/curlnagios-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "33615f9d3745547a240475a8bb87a56c", "sha256": "5de897e14ff0169a8797ed930403ba721bfe8a360c71d0a178fd95dd9e091510" }, "downloads": -1, "filename": "curlnagios-0.5.1-py3-none-any.whl", "has_sig": false, "md5_digest": "33615f9d3745547a240475a8bb87a56c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7560, "upload_time": "2018-09-06T15:24:30", "url": "https://files.pythonhosted.org/packages/15/82/0d8b6c15bc9896274eda58158982561856f8e7b9f4a4d3a7f1b90560af7e/curlnagios-0.5.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fbeb6f2297a13217471f8a4f9bb8ef03", "sha256": "f72b84743e91b48693aab03ea9e5d614e812169810a7593bff24ccac83b8d32e" }, "downloads": -1, "filename": "curlnagios-0.5.1.tar.gz", "has_sig": false, "md5_digest": "fbeb6f2297a13217471f8a4f9bb8ef03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5402, "upload_time": "2018-09-06T15:24:32", "url": "https://files.pythonhosted.org/packages/ec/00/611a946be626964eb104483af289dcc173cb904037559d7d01e661748599/curlnagios-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "4402da521528289e3e619b30757c7f48", "sha256": "f2e61767ced15cdda040d84af51e47c4af172d05b5e7521c01a9cd43c9f16044" }, "downloads": -1, "filename": "curlnagios-0.6.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4402da521528289e3e619b30757c7f48", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10673, "upload_time": "2018-09-13T20:48:28", "url": "https://files.pythonhosted.org/packages/42/33/56ddb55d7e97c6c7bc7bc114e8cfb0e9905d93f2b66fbfbed03315daaf9a/curlnagios-0.6.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "342bc3220809871148e9fe8ece464588", "sha256": "32b2e3a48f15e31009d6f63f03bac60cbe938de46514b25758ed2faa6ab7ea19" }, "downloads": -1, "filename": "curlnagios-0.6.0.tar.gz", "has_sig": false, "md5_digest": "342bc3220809871148e9fe8ece464588", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8028, "upload_time": "2018-09-13T20:48:30", "url": "https://files.pythonhosted.org/packages/ee/b4/b09e7dfec82f530f81e9d9c898ac624bdcd210089ce66ed9d71de557d549/curlnagios-0.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4402da521528289e3e619b30757c7f48", "sha256": "f2e61767ced15cdda040d84af51e47c4af172d05b5e7521c01a9cd43c9f16044" }, "downloads": -1, "filename": "curlnagios-0.6.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4402da521528289e3e619b30757c7f48", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10673, "upload_time": "2018-09-13T20:48:28", "url": "https://files.pythonhosted.org/packages/42/33/56ddb55d7e97c6c7bc7bc114e8cfb0e9905d93f2b66fbfbed03315daaf9a/curlnagios-0.6.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "342bc3220809871148e9fe8ece464588", "sha256": "32b2e3a48f15e31009d6f63f03bac60cbe938de46514b25758ed2faa6ab7ea19" }, "downloads": -1, "filename": "curlnagios-0.6.0.tar.gz", "has_sig": false, "md5_digest": "342bc3220809871148e9fe8ece464588", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8028, "upload_time": "2018-09-13T20:48:30", "url": "https://files.pythonhosted.org/packages/ee/b4/b09e7dfec82f530f81e9d9c898ac624bdcd210089ce66ed9d71de557d549/curlnagios-0.6.0.tar.gz" } ] }