{ "info": { "author": "Toshikatsu Murakoshi", "author_email": "mtoshi.g@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "===================================================\ncactidbadapter\n===================================================\n\nCactidbadapter is a utility tool of python for network operators and Cacti users.\nNetwork operators and administrators sometimes needs to get registered data from Cacti database.\nThis module can get easily devices and fetched snmp polling value.\n\n.. image:: https://secure.travis-ci.org/mtoshi/cactidbadapter.svg?branch=master\n :target: http://travis-ci.org/mtoshi/cactidbadapter\n.. image:: https://coveralls.io/repos/mtoshi/cactidbadapter/badge.svg?branch=master\n :target: https://coveralls.io/r/mtoshi/cactidbadapter?branch=master\n.. image:: https://pypip.in/version/cactidbadapter/badge.svg\n :target: https://pypi.python.org/pypi/cactidbadapter/\n :alt: Latest Version\n\nRequirements\n-------------\n* Python2.7, 3.4, PyPy.\n\nInstallation\n-------------\nGet from PyPI ::\n\n $ pip install cactidbadapter\n\nGet from Github ::\n\n $ git clone https://github.com/mtoshi/cactidbadapter\n $ cd cactidbadapter\n $ python setup.py install\n\nUsing example\n--------------\nExample for get_host(). ::\n\n >>> from cactidbadapter import CactiDBAdapter\n >>> cacti = CactiDBAdapter(database='cacti',\n ... user='admin',\n ... password='*****',\n ... port=3306)\n >>> cacti.get_host()\n [{'hostname': '127.0.0.1', 'id': 1, 'description': 'Localhost'}]\n\nExample for get_host() hostname and description columns. ::\n\n >>> cacti.get_host(columns=('hostname', 'description',))\n [{'hostname': '127.0.0.1', 'description': 'Localhost'}]\n\nExample for get_host() all columns. ::\n\n >>> cacti.get_host(columns=('*',))\n [{'hostname': '127.0.0.1', 'id': 1, 'description': 'Localhost', 'snmp_version': 2, 'snmp_timeout': 500, ... }]\n\nExample for get_host() all columns and limit 1. ::\n\n >>> cacti.get_host(columns=('*',), limit=1)\n [{'hostname': '127.0.0.1', 'id': 1, 'description': 'Localhost', 'snmp_version': 2, 'snmp_timeout': 500, ... }]\n\nExample for show host table columns. ::\n\n >>> cacti.host_columns()\n ['availability', 'availability_method', 'avg_time', 'cur_time', 'description', ... ]\n\nOther sample is here. ::\n\n https://github.com/mtoshi/cactidbadapter/blob/master/samples/sample.py\n\nSNMP system values\n-------------------\nCacti doesn't have system informations with default.\nIf you need system values (sysDescr, sysNaem, sysUpTime ...), then you install \"system.xml\".\n\n 1. For Debian/Ubuntu ::\n\n sudo cp utils/cacti/system.xml /usr/share/cacti/resource/snmp_queries/\n\n 2. Add Data Queries ::\n\n Name: SNMP - Get System Information\n Description: SNMP System Information\n XML Path: /resource/snmp_queries/system.xml\n Data Input Method: Get SNMP Data (Indexed)\n\n 3. Add Host Templates ::\n\n \"Left menu\" > \"Host Templates\" > YOUR_TEMPLATE_NAME > \"Associated Data Queries\" > Add\n\n \"Add Data Query\": \"SNMP - Get System Information\" # Select and Add.\n\nSee also\n---------\n* http://www.cacti.net/", "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/mtoshi/cactidbadapter", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "cactidbadapter", "package_url": "https://pypi.org/project/cactidbadapter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cactidbadapter/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mtoshi/cactidbadapter" }, "release_url": "https://pypi.org/project/cactidbadapter/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "CactiDB Adapter.", "version": "0.1.2" }, "last_serial": 1568744, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "37ec3967c01347e6249008345b5b16e6", "sha256": "1e69338171eb07d2aa2b70602f038814fe3eb6bf014a71bdacd056549c3da507" }, "downloads": -1, "filename": "cactidbadapter-0.1.1.tar.gz", "has_sig": false, "md5_digest": "37ec3967c01347e6249008345b5b16e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5212, "upload_time": "2015-05-25T03:39:49", "url": "https://files.pythonhosted.org/packages/c9/17/d99996c46a36206567feeacc7ab685360d0639ab9f5b37495104efd14414/cactidbadapter-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "1a2ec876ef09c838387c8b23be493ed8", "sha256": "d090360611819cefcbb01d27476f9a0ad9f7f1cbb1078631345cb134570f8147" }, "downloads": -1, "filename": "cactidbadapter-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1a2ec876ef09c838387c8b23be493ed8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5525, "upload_time": "2015-05-30T05:40:48", "url": "https://files.pythonhosted.org/packages/0c/b7/d70184a3533b2dcea1ea2b3607eb38166ec51ba15dc1582f1b96068836ad/cactidbadapter-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1a2ec876ef09c838387c8b23be493ed8", "sha256": "d090360611819cefcbb01d27476f9a0ad9f7f1cbb1078631345cb134570f8147" }, "downloads": -1, "filename": "cactidbadapter-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1a2ec876ef09c838387c8b23be493ed8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5525, "upload_time": "2015-05-30T05:40:48", "url": "https://files.pythonhosted.org/packages/0c/b7/d70184a3533b2dcea1ea2b3607eb38166ec51ba15dc1582f1b96068836ad/cactidbadapter-0.1.2.tar.gz" } ] }