{ "info": { "author": "Canux CHENG", "author_email": "canuxcheng@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: System :: Monitoring" ], "description": ".. image:: https://img.shields.io/pypi/v/arguspy.svg\n :target: https://pypi.python.org/pypi/arguspy/\n\n.. image:: https://img.shields.io/pypi/dm/arguspy.svg\n :target: https://pypi.python.org/pypi/arguspy/\n\n.. image:: https://travis-ci.org/crazy-canux/arguspy.svg?branch=master\n :target: https://travis-ci.org/crazy-canux/arguspy\n\n.. image:: https://coveralls.io/repos/github/crazy-canux/arguspy/badge.svg?branch=master\n :target: https://coveralls.io/github/crazy-canux/arguspy?branch=master\n\n\n=======\narguspy\n=======\n\n.. figure:: https://github.com/crazy-canux/arguspy/blob/master/data/images/argus.jpg\n :alt: pic1\n\n[Deprecated] As nagios is too old, this project is deprecated.\n\nPlease Move to another project `[super-devops] `_.\n\nArguspy is pure python code.\n\nIt's a API packge for monitoring plugins, like Nagios, Icinga, Naemon, Shinken, Centreon, Opsview and Sensu.\n\n`[awesome-monitoring] `_.\n\n--------------\nHow to install\n--------------\n\nUse pip to install::\n\n $ pip install super_devops\n $ pip install arguspy\n\n----------\nHow to use\n----------\n\nJust import what protocol you need::\n\n from arguspy.ftp_ftplib import Ftp\n from arguspy.http_requests import Http\n from arguspy.mssql_pymssql import Mssql\n from arguspy.mysql_pymysql import Mysql\n from arguspy.ssh_paramiko import Ssh\n from arguspy.winrm_pywinrm import WinRM\n from arguspy.wmi_sh import Wmi\n from arguspy.wmi_subprocess import Wmi\n\nThen write your own function monitoring class::\n\n class YourClass(Ftp/Mssql/Ssh/WinRM/Wmi/Http/Snmp/...):\n def __init__(self):\n super(YourClass, self).__init__()\n self.logger.debug(\"Init YourClass.\")\n\n def define_sub_options(self):\n super(YourClass, self).define_sub_options()\n self.your_parser = self.subparsers.add_parser(...)\n self.your_parser.add_argument(...)\n ...\n\n def your_handle(self):\n \"\"\"Put your function monitoring code here.\"\"\"\n # Default status is ok.\n status = self.ok\n\n # Call the API and get the monitoring data.\n # Read the document or check the API on python/ipython Interactive console.\n # help(Ftp/...)\n # dir(Ftp/...)\n ...\n\n # Compare with the warning and critical value and change the status.\n ...\n\n self.shortoutput = \"...\"\n self.longoutput.append(...)\n self.perfdata.append(...)\n\n self.logger.debug(\"Return status and output.\")\n status(self.output())\n\nIf you put more than one function monitoring class in one file(Not recommend)::\n\n class Register(YourClass1, YourClass2, ...):\n def __init__(self):\n super(Register, self).__init__()\n\nLast step::\n\n def main():\n plugin = Register()\n if plugin.args.option == 'action':\n plugin.action_handle()\n elif ...:\n ...\n else:\n plugin.unknown(\"Unknown actions.\")\n\n if __name__ == \"__main__\":\n main()\n\n--------------\nHow to extends\n--------------\n\nCheck the TODO list, you can give test examples or documents.\n\nAlso you can pull request for your code.\n\n-----\nTODO\n-----\n\n* Write unit tests in tests/\n* Write docs in docs/\n* Write examples in examples/\n\n* Compatible with Python3\n* vSphere monitoring\n* LDAP monitoring\n* SNMP monitoring\n\n============\nContribution\n============\n\n`[Contribution] `_\n\n=======\nAuthors\n=======\n\n`[Authors] `_\n\n=======\nLicense\n=======\n\n`[License] `_\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://github.com/crazy-canux/arguspy", "keywords": "monitoring nagios icinga plugins", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "arguspy", "package_url": "https://pypi.org/project/arguspy/", "platform": "any", "project_url": "https://pypi.org/project/arguspy/", "project_urls": { "Homepage": "https://github.com/crazy-canux/arguspy" }, "release_url": "https://pypi.org/project/arguspy/2.0.0/", "requires_dist": null, "requires_python": "", "summary": "Common interface of tons protocals, used for monitoring tools, like nagios/icinga...", "version": "2.0.0" }, "last_serial": 3516488, "releases": { "1.3.0": [ { "comment_text": "", "digests": { "md5": "43a3cd4adf588630ef18e2218dedc658", "sha256": "bc596cf3696e87e275a77e287c2d56099d8e7fcf01d763d5ae9213643e680372" }, "downloads": -1, "filename": "arguspy-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "43a3cd4adf588630ef18e2218dedc658", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18991, "upload_time": "2017-07-16T15:03:19", "url": "https://files.pythonhosted.org/packages/6e/1b/20b7f67d57ce8de67da97b036940ec6e3f6291df0882928e3fe52e9dc493/arguspy-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "25896f83c21bf2dbf3be3bfbf47c36e9", "sha256": "d1d2583e9f7288ed40116cdd198df05bbb6234c52333d0f176158eb54f9b5806" }, "downloads": -1, "filename": "arguspy-1.3.0.tar.gz", "has_sig": false, "md5_digest": "25896f83c21bf2dbf3be3bfbf47c36e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 501806, "upload_time": "2017-07-16T15:03:23", "url": "https://files.pythonhosted.org/packages/ec/97/1dd66ced451bafa77cba5223602691822899f35d60e04b5f07cef970333f/arguspy-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "ba202a2380b4cdc75e3b5546ef9ca2c3", "sha256": "232e827758a9e7e07cd21d1089d5592148f362cb385ef6f51b32b2d18ce02fc8" }, "downloads": -1, "filename": "arguspy-1.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ba202a2380b4cdc75e3b5546ef9ca2c3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19153, "upload_time": "2017-07-27T06:33:14", "url": "https://files.pythonhosted.org/packages/33/20/25df68df61daefdfbc87885bd58edde6670c369dfdfc5819b4165b6f58ca/arguspy-1.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "523f56ce3e70a6e9619be260bb7073cf", "sha256": "12b79c7306cce6ce780937c78a3c0dfb28069e061d643cfe18d1516f61790627" }, "downloads": -1, "filename": "arguspy-1.3.1.tar.gz", "has_sig": false, "md5_digest": "523f56ce3e70a6e9619be260bb7073cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 501566, "upload_time": "2017-07-27T06:33:17", "url": "https://files.pythonhosted.org/packages/2b/9f/45ef41c62182ca87e1b71e51e831668d2222041868e4471b34b54d79abb1/arguspy-1.3.1.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "39aab21ee4695d3798de344fb4cdcaa8", "sha256": "97061420992ceb451763ebb3520aaf6db12f52f26bf90523187257b455867911" }, "downloads": -1, "filename": "arguspy-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "39aab21ee4695d3798de344fb4cdcaa8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16113, "upload_time": "2018-01-24T07:36:09", "url": "https://files.pythonhosted.org/packages/bf/2e/99dbaa003eba348721c1faf16330882145f7a04562361ccdc89b2c54b38a/arguspy-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "67568d8ae0cfaceecc26cc277d6ec4e2", "sha256": "97ef028daacf8d0f19f4ff2b2a91f475cc3d0f136d74d54e66091d4c6790a6dc" }, "downloads": -1, "filename": "arguspy-2.0.0.tar.gz", "has_sig": false, "md5_digest": "67568d8ae0cfaceecc26cc277d6ec4e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 573135, "upload_time": "2018-01-24T07:36:22", "url": "https://files.pythonhosted.org/packages/94/a9/b0f1e0a9f9e4df74d91a9664160942885a30e5876b611c772ca76ad2a8c2/arguspy-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "39aab21ee4695d3798de344fb4cdcaa8", "sha256": "97061420992ceb451763ebb3520aaf6db12f52f26bf90523187257b455867911" }, "downloads": -1, "filename": "arguspy-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "39aab21ee4695d3798de344fb4cdcaa8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16113, "upload_time": "2018-01-24T07:36:09", "url": "https://files.pythonhosted.org/packages/bf/2e/99dbaa003eba348721c1faf16330882145f7a04562361ccdc89b2c54b38a/arguspy-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "67568d8ae0cfaceecc26cc277d6ec4e2", "sha256": "97ef028daacf8d0f19f4ff2b2a91f475cc3d0f136d74d54e66091d4c6790a6dc" }, "downloads": -1, "filename": "arguspy-2.0.0.tar.gz", "has_sig": false, "md5_digest": "67568d8ae0cfaceecc26cc277d6ec4e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 573135, "upload_time": "2018-01-24T07:36:22", "url": "https://files.pythonhosted.org/packages/94/a9/b0f1e0a9f9e4df74d91a9664160942885a30e5876b611c772ca76ad2a8c2/arguspy-2.0.0.tar.gz" } ] }