{"id":13626002,"url":"https://github.com/eht16/zabbix-scripts","last_synced_at":"2025-07-26T10:33:24.661Z","repository":{"id":141683937,"uuid":"2279153","full_name":"eht16/zabbix-scripts","owner":"eht16","description":"Various Zabbix Stuff","archived":false,"fork":false,"pushed_at":"2011-08-28T21:35:06.000Z","size":116,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T20:22:59.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/eht16.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-27T12:57:11.000Z","updated_at":"2024-05-15T14:40:22.000Z","dependencies_parsed_at":"2023-03-13T10:29:49.559Z","dependency_job_id":null,"html_url":"https://github.com/eht16/zabbix-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eht16/zabbix-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eht16%2Fzabbix-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eht16%2Fzabbix-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eht16%2Fzabbix-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eht16%2Fzabbix-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eht16","download_url":"https://codeload.github.com/eht16/zabbix-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eht16%2Fzabbix-scripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267150468,"owners_count":24043473,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-01T21:02:07.524Z","updated_at":"2025-07-26T10:33:24.605Z","avatar_url":"https://github.com/eht16.png","language":"Python","readme":"Various small Zabbix related scripts and utilities\n==================================================\n\n\nThis is a collection of various scripts I wrote for my personal use\nfor Zabbix.\n\n\nzabbix_graph.py\n---------------\nThis script reads one or more graphs from the Zabbix frontend and\nsends them as attachments via mail to one (or more) configured mail addresses.\n\nThe script is inspired by http://www.zabbix.com/forum/showthread.php?t=15316\nbut simpler as it just takes a list of graphids to work on instead\nof using a special media report in Zabbix to determine the graphids\nfrom the database.\n\nAnd so, this script only needs a Zabbix frontend user, no direct database\naccess is necessary.\nAlso, this script does not need to write any temporary files.\nIt is written in Python as I know the language best and everything necessary\nis included in the standard libraries, at least since Python 2.6, maybe even earlier.\n\nThe graphs are queried from the Zabbix frontend and then sent as attachments\nvia mail to the configured address.\n\nThis scripts is best to be used as a cronjob, maybe once a day or week, as you\nprefer. Though there is basically no error handling, errors are printed to stderr\nand so they are sent via mail to the administrator by the cron daemon,\nassuming it is configured properly.\n\n\n\nzabbix_smstrade.py\n------------------\nA script to send Zabbix alerts as SMS. The German SMS gateway \nhttp://www.smstrade.de is used as transport.\nSo, this script is pretty much specific for this provider and its HTTP API.\n\nIt is very similar to http://www.zabbix.com/wiki/howto/config/alerts/smsapi\nbut written in Python. Similarly, the subject is ignored, instead the message\nis used as SMS text. Additionally, this script will cut the passed message text\nafter 160 characters to ensure only one (non-concatenated) SMS is sent.\n\nThe script should not produce any output normally. But it does log a status line\nwhen the SMS is delivered to the smstrade.de API, including the response code to\nthe system's syslog daemon. Additionally, it logs any errors to syslog.\nSo, it can be used (and is intended to) as an alert script (media type script in Zabbix).\n\n\nzabbix_common.py\n----------------\nThis is not really a script, just some common code shared by various scripts. Simply ignore.\n\n\n\nCommon Configuration\n--------------------\n\nThe scripts are configured by one shared config file.\nA sample config file is included. You should copy it to \none of the following locations (it is read in that order):\n\n * /etc/zabbix-scripts.conf\n * /etc/zabbix/zabbix-scripts.conf\n * ~/.zabbix-scripts.conf  (~ is replaced by the home directory of the user who executes this script)\n\n\n\nLicense\n-------\nThese scripts are distributed under the terms of the GNU General Public License\nas published by the Free Software Foundation; version 2 of the license.\nA copy of this license can be found in the file COPYING included with\nthe source code of this program.\n\n\n\nIdeas, questions, patches and bug reports\n-----------------------------------------\nIf you add something, or fix a bug, find a cool feature missing or just want to say hello,\nplease tell me. I'm always happy about feedback.\n\n\n--\n2011 by Enrico Tröger\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feht16%2Fzabbix-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feht16%2Fzabbix-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feht16%2Fzabbix-scripts/lists"}