{"id":19422389,"url":"https://github.com/smejdil/zabbix-api","last_synced_at":"2025-02-25T04:25:48.527Z","repository":{"id":137394445,"uuid":"432941818","full_name":"smejdil/zabbix-api","owner":"smejdil","description":"Zabbix API examples","archived":false,"fork":false,"pushed_at":"2024-12-14T17:00:10.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T18:42:42.065Z","etag":null,"topics":["api","datascript","perl","zabbix","zabbix-api"],"latest_commit_sha":null,"homepage":"https://open-tech.cz","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smejdil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-29T07:20:46.000Z","updated_at":"2024-12-14T17:00:14.000Z","dependencies_parsed_at":"2023-11-14T16:45:52.901Z","dependency_job_id":"227b2820-4cd3-42fd-a015-3b9cd4aebcd1","html_url":"https://github.com/smejdil/zabbix-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smejdil%2Fzabbix-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smejdil%2Fzabbix-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smejdil%2Fzabbix-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smejdil%2Fzabbix-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smejdil","download_url":"https://codeload.github.com/smejdil/zabbix-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240601377,"owners_count":19827339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","datascript","perl","zabbix","zabbix-api"],"created_at":"2024-11-10T13:33:34.797Z","updated_at":"2025-02-25T04:25:48.471Z","avatar_url":"https://github.com/smejdil.png","language":"Perl","readme":"## zabbix-api\n\nThis small project for Zabbix API examples\n\n## Dependencies\n\n- Zabbix API Perl script has been tested on FreeBSD \n- Package - Perl - p5-JSON-RPC - JSON::RPC::Legacy::Client\n\n- Zabbix API Python script has been tested on FreeBSD\n- Package - Python - zabbix-api and pyzabbix\n\n### Installation\n\n```console\n# Perl\ncd /usr/ports/devel/p5-JSON-RPC \u0026\u0026 make install clean\nman JSON::RPC::Legacy::Client\n\n# Python\ncd /usr/ports/devel/py-pip \u0026\u0026 make install clean\ncd /usr/ports/net-mgmt/py-pyzabbix \u0026\u0026 make install clean\npip install zabbix-api\n\npip list | grep zabbix\npyzabbix               1.0.0               \nzabbix-api             0.5.4\n```\n\n## Examples\n\n```console\n./auth.pl\nAuthentication successful. Auth ID: 8bf1e5e70bddb2bec567e267cc314dfd\n```\n\n```console\n./auth.py\n20: url: http://localhost/api_jsonrpc.php\n10: Trying to login with 'Admin':'md5(d947a125599f62d7bf378bd4e76a32cb)'\n10: json_obj: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'user':'Admin', 'password': 'zabbix'}, 'id': 0}\n20: Sending: {\"jsonrpc\": \"2.0\", \"method\": \"user.login\", \"params\": {\"user\":\"Admin\", \"password\":\"zabbix\"}, \"id\": 0}\n10: Sending headers: {'Content-Type': 'application/json-rpc', 'User-Agent': 'python/zabbix_api'}\n20: Response Code: 200\n10: Response Body: {'jsonrpc': '2.0', 'result': 'adb84cb506db2dd79fdc02528a902d37', 'id': 0}\n10: json_obj: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 1}\n20: Sending: {\"jsonrpc\": \"2.0\", \"method\": \"apiinfo.version\", \"params\": {}, \"id\": 1}\n10: Sending headers: {'Content-Type': 'application/json-rpc', 'User-Agent': 'python/zabbix_api'}\n20: Response Code: 200\n10: Response Body: {'jsonrpc': '2.0', 'result': '5.0.17', 'id': 1}\nConnected to Zabbix API Version 5.0.17\n```\n\n## To do\n\n- other languages\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmejdil%2Fzabbix-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmejdil%2Fzabbix-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmejdil%2Fzabbix-api/lists"}