├── LICENSE ├── README.md ├── covid19_affectedcountries.py ├── covid19_status.py ├── grafana_dashboard.json ├── grafana_dashboard.png ├── grafana_dashboard2.png ├── iban.csv ├── requirements.txt ├── zabbix ├── zabbix_template-pt_BR.xml └── zabbix_template.xml └── zabbix_template.png /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # covid19-monitor 2 | Gets information involving CORONAVIRUS - COVID19 casualities and presents to JSON and Zabbix 3 | 4 | ![Grafana](grafana_dashboard.png) 5 | 6 | 7 | ### Usage 8 | 9 | ``` 10 | git@github.com:rickkbarbosa/covid9-monitor.git 11 | pip install -r requirements.txt 12 | ``` 13 | 14 | ### To Zabbix 15 | 16 | Clone repository in a plase acessible by Zabbix (usually, /usr/lib/zabbix/externalscripts) 17 | install python requirements on requirements.txt 18 | Import template to zabbix dashboard (zabbix/zabbix_template.xml - Zabbix server 4.0 and above) 19 | Add template to a host 20 | 21 | ![Using on Zabbix](zabbix_template.png) 22 | 23 | 24 | ## Additional adjustment on Zabbix 4.0.x versions : 25 | 26 | Zabbiux 4.0.x contains a limitation involving number of dependendant items. 27 | A proposed workaround was sugested by [@hardwareadictos](https://github.com/rickkbarbosa/covid9-monitor/issues/10): 28 | 29 | * Change _/usr/share/zabbix/include/defines.inc.php:define('ZBX_DEPENDENT_ITEM_MAX_COUNT', 999)_; to 2999. 30 | 31 | 32 | ### To grafana 33 | 34 | 35 | * Install Zabbix Plugin datasource by [Alexander Zobnin](https://grafana.com/grafana/plugins/alexanderzobnin-zabbix-app) 36 | * Install Worldmap Panel plugin(https://grafana.com/grafana/plugins/grafana-worldmap-panel/installation) 37 | * Install Polystat Grafana plugin(https://grafana.com/grafana/plugins/grafana-polystat-panel/installation) 38 | * Install Multistat Grafana plugin(https://grafana.com/grafana/plugins/michaeldmoore-multistat-panel) 39 | * Install Pie Chart plugin(https://grafana.com/grafana/plugins/grafana-piechart-panel) 40 | * Import dashboard _grafana_dashboard.json_ to grafana 41 | * Points your Zabbix datasource 42 | 43 | ### License 44 | 45 | See LICENSE 46 | 47 | 48 | ### Thanks 49 | 50 | * [Zabbix Brasil](https://t.me/ZabbixBrasil) , for reviews and help with cleanup/garbage collecting 51 | * Everaldo Santos Cabral, for Suggested applications organiztions and Zabbix 4.0 retro-compatible template 52 | * [MrBits](https://github.com/mrbitsdcf) 53 | 54 | 55 | ### Donate 56 | 57 | 58 | * [Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=29JLND674CAGY¤cy_code=BRL) 59 | 60 | * ![Grafana](qr_code.png) -------------------------------------------------------------------------------- /covid19_affectedcountries.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #=============================================================================== 3 | # IDENTIFICATION DIVISION 4 | # ID SVN: $Id$ 5 | # FILE: covid9_status.py 6 | # USAGE: $0 7 | # DESCRIPTION: Get Worldometers Coronavirus / Covid9 affected contry list 8 | # REQUIREMENTS: pandas (pip install pandas) 9 | # lxml (pip install lxml) 10 | # beautifulsoup4 (pip install beautifulsoup4) 11 | # BUGS: --- 12 | # NOTES: --- 13 | # TODO: --- 14 | # AUTHOR: Ricardo Barbosa, rickkbarbosa@live.com 15 | # COMPANY: --- 16 | # VERSION: 1.0 17 | # CREATED: 2020-Mar-10 08:57 BRT 18 | # REVISION: 2020-Mar-20 09:54 BRT 19 | #=============================================================================== 20 | 21 | import sys 22 | import os 23 | import pandas as pd 24 | import json 25 | import re 26 | import requests 27 | from bs4 import BeautifulSoup 28 | 29 | if(sys.version_info.major>=3): 30 | import importlib 31 | importlib.reload(sys) 32 | else: 33 | reload(sys) 34 | sys.setdefaultencoding('utf8') 35 | 36 | here = os.path.dirname(os.path.abspath(__file__)) 37 | url = 'https://www.worldometers.info/coronavirus/#countries' 38 | header = {"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36","X-Requested-With": "XMLHttpRequest"} 39 | 40 | r = requests.get(url, headers=header).text 41 | r = re.sub(r'.*(.*?<\/table>).*', r'\1', r, flags=re.DOTALL) 42 | r = re.sub(r'.*?<\/tbody>', '', r, flags=re.DOTALL) 43 | r = re.sub(r'<.*?>', lambda g: g.group(0).upper(), r) 44 | 45 | # fix HTML multiple tbody 46 | soup = BeautifulSoup(r, "html.parser") 47 | for body in soup("tbody"): 48 | body.unwrap() 49 | 50 | df_countries = pd.read_html(str(soup), flavor="bs4")[0] 51 | 52 | 53 | df_iban = pd.read_csv("{}/{}".format(here, "iban.csv")) 54 | result = pd.merge(df_countries,df_iban,left_on='Country,Other',right_on='Country',how='inner') 55 | 56 | country_list = list() 57 | for index, row in result.iterrows(): 58 | country_list.append({"{#COUNTRY_NAME}": row['Country,Other'], 59 | "{#COUNTRY_IBAN}": row['Alpha-3 code'] }) 60 | 61 | data = json.dumps({"data": country_list}, indent=4) 62 | 63 | print(data) 64 | -------------------------------------------------------------------------------- /covid19_status.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #=============================================================================== 3 | # IDENTIFICATION DIVISION 4 | # ID SVN: $Id$ 5 | # FILE: covid9_status.py 6 | # USAGE: $0 7 | # DESCRIPTION: Get Worldometers Coronavirus / Covid9 data and print to JSON 8 | # REQUIREMENTS: pandas (pip install pandas) 9 | # lxml (pip install lxml) 10 | # beautifulsoup4 (pip install beautifulsoup4) 11 | # BUGS: --- 12 | # NOTES: --- 13 | # TODO: --- 14 | # AUTHOR: Ricardo Barbosa, rickkbarbosa@live.com 15 | # COMPANY: --- 16 | # VERSION: 1.0 17 | # CREATED: 2020-Mar-10 21:47 BRT 18 | # REVISION: 2020-Mar-20 09:33 BRT 19 | #=============================================================================== 20 | 21 | import pandas as pd 22 | import requests 23 | import re 24 | from bs4 import BeautifulSoup 25 | 26 | url = 'https://www.worldometers.info/coronavirus/#countries' 27 | header = {"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36","X-Requested-With": "XMLHttpRequest"} 28 | 29 | r = requests.get(url, headers=header).text 30 | r = re.sub(r'.*(
.*?<\/table>).*', r'\1', r, flags=re.DOTALL) 31 | r = re.sub(r'.*?<\/tbody>', '', r, flags=re.DOTALL) 32 | r = re.sub(r'<.*?>', lambda g: g.group(0).upper(), r) 33 | 34 | 35 | # fix HTML multiple tbody 36 | soup = BeautifulSoup(r, "html.parser") 37 | for body in soup("tbody"): 38 | body.unwrap() 39 | 40 | df = pd.read_html(str(soup), index_col=1, thousands=r',', flavor="bs4")[0] 41 | df = df.replace(regex=[r'\+', r'\,'], value='') 42 | 43 | df = df.fillna('0') 44 | df = df.to_json(orient='index') 45 | 46 | print(df) 47 | -------------------------------------------------------------------------------- /grafana_dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rickkbarbosa/covid9-monitor/a3f7f77cd644a43db6adbe643269bc450349c655/grafana_dashboard.png -------------------------------------------------------------------------------- /grafana_dashboard2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rickkbarbosa/covid9-monitor/a3f7f77cd644a43db6adbe643269bc450349c655/grafana_dashboard2.png -------------------------------------------------------------------------------- /iban.csv: -------------------------------------------------------------------------------- 1 | ,Country,Alpha-2 code,Alpha-3 code,Numeric 2 | 0,Afghanistan,AF,AFG,4 3 | 1,Åland Islands,AX,ALA,248 4 | 2,Albania,AL,ALB,8 5 | 3,Algeria,DZ,DZA,12 6 | 4,American Samoa,AS,ASM,16 7 | 5,Andorra,AD,AND,20 8 | 6,Angola,AO,AGO,24 9 | 7,Anguilla,AI,AIA,660 10 | 8,Antarctica,AQ,ATA,10 11 | 9,Antigua and Barbuda,AG,ATG,28 12 | 10,Argentina,AR,ARG,32 13 | 11,Armenia,AM,ARM,51 14 | 12,Aruba,AW,ABW,533 15 | 13,Australia,AU,AUS,36 16 | 14,Austria,AT,AUT,40 17 | 15,Azerbaijan,AZ,AZE,31 18 | 16,Bahamas (the),BS,BHS,44 19 | 17,Bahrain,BH,BHR,48 20 | 18,Bangladesh,BD,BGD,50 21 | 19,Barbados,BB,BRB,52 22 | 20,Belarus,BY,BLR,112 23 | 21,Belgium,BE,BEL,56 24 | 22,Belize,BZ,BLZ,84 25 | 23,Benin,BJ,BEN,204 26 | 24,Bermuda,BM,BMU,60 27 | 25,Bhutan,BT,BTN,64 28 | 26,Bolivia,BO,BOL,68 29 | 27,"Bonaire, Sint Eustatius and Saba",BQ,BES,535 30 | 28,Bosnia and Herzegovina,BA,BIH,70 31 | 29,Botswana,BW,BWA,72 32 | 30,Bouvet Island,BV,BVT,74 33 | 31,Brazil,BR,BRA,76 34 | 32,British Indian Ocean Territory (the),IO,IOT,86 35 | 33,Brunei,BN,BRN,96 36 | 34,Bulgaria,BG,BGR,100 37 | 35,Burkina Faso,BF,BFA,854 38 | 36,Burundi,BI,BDI,108 39 | 37,Cabo Verde,CV,CPV,132 40 | 38,Cambodia,KH,KHM,116 41 | 39,Cameroon,CM,CMR,120 42 | 40,Canada,CA,CAN,124 43 | 41,Cayman Islands,KY,CYM,136 44 | 42,Central African Republic (the),CF,CAF,140 45 | 43,Chad,TD,TCD,148 46 | 44,Chile,CL,CHL,152 47 | 45,China,CN,CHN,156 48 | 46,Christmas Island,CX,CXR,162 49 | 47,Cocos (Keeling) Islands (the),CC,CCK,166 50 | 48,Colombia,CO,COL,170 51 | 49,Comoros (the),KM,COM,174 52 | 50,Congo (the Democratic Republic of the),CD,COD,180 53 | 50,RDC,CD,COD,180 54 | 51,Congo (the),CG,COG,178 55 | 52,Cook Islands (the),CK,COK,184 56 | 53,Costa Rica,CR,CRI,188 57 | 54,Côte d'Ivoire,CI,CIV,384 58 | 55,Ivory Coast,CI,CIV,384 59 | 55,Croatia,HR,HRV,191 60 | 56,Cuba,CU,CUB,192 61 | 57,Curaçao,CW,CUW,531 62 | 58,Cyprus,CY,CYP,196 63 | 59,Czechia,CZ,CZE,203 64 | 60,Denmark,DK,DNK,208 65 | 61,Djibouti,DJ,DJI,262 66 | 62,Dominica,DM,DMA,212 67 | 63,Dominican Republic,DO,DOM,214 68 | 64,Ecuador,EC,ECU,218 69 | 65,Egypt,EG,EGY,818 70 | 66,El Salvador,SV,SLV,222 71 | 67,Equatorial Guinea,GQ,GNQ,226 72 | 68,Eritrea,ER,ERI,232 73 | 69,Estonia,EE,EST,233 74 | 70,Eswatini,SZ,SWZ,748 75 | 71,Ethiopia,ET,ETH,231 76 | 72,Falkland Islands (the) [Malvinas],FK,FLK,238 77 | 73,Faeroe Islands,FO,FRO,234 78 | 74,Fiji,FJ,FJI,242 79 | 75,Finland,FI,FIN,246 80 | 76,France,FR,FRA,250 81 | 77,French Guiana,GF,GUF,254 82 | 78,French Polynesia,PF,PYF,258 83 | 79,French Southern Territories (the),TF,ATF,260 84 | 80,Gabon,GA,GAB,266 85 | 81,Gambia (the),GM,GMB,270 86 | 82,Georgia,GE,GEO,268 87 | 83,Germany,DE,DEU,276 88 | 84,Ghana,GH,GHA,288 89 | 85,Gibraltar,GI,GIB,292 90 | 86,Greece,GR,GRC,300 91 | 87,Greenland,GL,GRL,304 92 | 88,Grenada,GD,GRD,308 93 | 89,Guadeloupe,GP,GLP,312 94 | 90,Guam,GU,GUM,316 95 | 91,Guatemala,GT,GTM,320 96 | 92,Guernsey,GG,GGY,831 97 | 93,Guinea,GN,GIN,324 98 | 94,Guinea-Bissau,GW,GNB,624 99 | 95,Guyana,GY,GUY,328 100 | 96,Haiti,HT,HTI,332 101 | 97,Heard Island and McDonald Islands,HM,HMD,334 102 | 98,Holy See (the),VA,VAT,336 103 | 99,Honduras,HN,HND,340 104 | 100,Hong Kong,HK,HKG,344 105 | 101,Hungary,HU,HUN,348 106 | 102,Iceland,IS,ISL,352 107 | 103,India,IN,IND,356 108 | 104,Indonesia,ID,IDN,360 109 | 105,Iran,IR,IRN,364 110 | 106,Iraq,IQ,IRQ,368 111 | 107,Ireland,IE,IRL,372 112 | 108,Isle of Man,IM,IMN,833 113 | 109,Israel,IL,ISR,376 114 | 110,Italy,IT,ITA,380 115 | 111,Jamaica,JM,JAM,388 116 | 112,Japan,JP,JPN,392 117 | 113,Channel Islands,JE,JEY,832 118 | 113,Jersey,JE,JEY,832 119 | 114,Jordan,JO,JOR,400 120 | 115,Kazakhstan,KZ,KAZ,398 121 | 116,Kenya,KE,KEN,404 122 | 117,Kiribati,KI,KIR,296 123 | 118,Korea (the Democratic People's Republic of),KP,PRK,408 124 | 119,Korea (the Republic of),KR,KOR,410 125 | 119,S. Korea,KR,KOR,410 126 | 120,Kuwait,KW,KWT,414 127 | 121,Kyrgyzstan,KG,KGZ,417 128 | 122,Lao People's Democratic Republic (the),LA,LAO,418 129 | 123,Latvia,LV,LVA,428 130 | 124,Lebanon,LB,LBN,422 131 | 125,Lesotho,LS,LSO,426 132 | 126,Liberia,LR,LBR,430 133 | 127,Libya,LY,LBY,434 134 | 128,Liechtenstein,LI,LIE,438 135 | 129,Lithuania,LT,LTU,440 136 | 130,Luxembourg,LU,LUX,442 137 | 131,Macao,MO,MAC,446 138 | 132,North Macedonia,MK,MKD,807 139 | 133,Madagascar,MG,MDG,450 140 | 134,Malawi,MW,MWI,454 141 | 135,Malaysia,MY,MYS,458 142 | 136,Maldives,MV,MDV,462 143 | 137,Mali,ML,MLI,466 144 | 138,Malta,MT,MLT,470 145 | 139,Marshall Islands (the),MH,MHL,584 146 | 140,Martinique,MQ,MTQ,474 147 | 141,Mauritania,MR,MRT,478 148 | 142,Mauritius,MU,MUS,480 149 | 143,Mayotte,YT,MYT,175 150 | 144,Mexico,MX,MEX,484 151 | 145,Micronesia (Federated States of),FM,FSM,583 152 | 146,Moldova,MD,MDA,498 153 | 147,Monaco,MC,MCO,492 154 | 148,Mongolia,MN,MNG,496 155 | 149,Montenegro,ME,MNE,499 156 | 150,Montserrat,MS,MSR,500 157 | 151,Morocco,MA,MAR,504 158 | 152,Mozambique,MZ,MOZ,508 159 | 153,Myanmar,MM,MMR,104 160 | 154,Namibia,,NAM,516 161 | 155,Nauru,NR,NRU,520 162 | 156,Nepal,NP,NPL,524 163 | 157,Netherlands,NL,NLD,528 164 | 158,New Caledonia,NC,NCL,540 165 | 159,New Zealand,NZ,NZL,554 166 | 160,Nicaragua,NI,NIC,558 167 | 161,Niger (the),NE,NER,562 168 | 162,Nigeria,NG,NGA,566 169 | 163,Niue,NU,NIU,570 170 | 164,Norfolk Island,NF,NFK,574 171 | 165,Northern Mariana Islands (the),MP,MNP,580 172 | 166,Norway,NO,NOR,578 173 | 167,Oman,OM,OMN,512 174 | 168,Pakistan,PK,PAK,586 175 | 169,Palau,PW,PLW,585 176 | 170,Palestine,PS,PSE,275 177 | 171,Panama,PA,PAN,591 178 | 172,Papua New Guinea,PG,PNG,598 179 | 173,Paraguay,PY,PRY,600 180 | 174,Peru,PE,PER,604 181 | 175,Philippines,PH,PHL,608 182 | 176,Pitcairn,PN,PCN,612 183 | 177,Poland,PL,POL,616 184 | 178,Portugal,PT,PRT,620 185 | 179,Puerto Rico,PR,PRI,630 186 | 180,Qatar,QA,QAT,634 187 | 181,Réunion,RE,REU,638 188 | 182,Romania,RO,ROU,642 189 | 183,Russia,RU,RUS,643 190 | 184,Rwanda,RW,RWA,646 191 | 185,Saint Barthélemy,BL,BLM,652 192 | 185,St. Barth,BL,BLM,652 193 | 186,"Saint Helena, Ascension and Tristan da Cunha",SH,SHN,654 194 | 187,Saint Kitts and Nevis,KN,KNA,659 195 | 188,Saint Lucia,LC,LCA,662 196 | 189,Saint Martin,MF,MAF,663 197 | 190,Saint Pierre and Miquelon,PM,SPM,666 198 | 191,Saint Vincent and the Grenadines,VC,VCT,670 199 | 191,St. Vincent Grenadines,VC,VCT,670 200 | 192,Samoa,WS,WSM,882 201 | 193,San Marino,SM,SMR,674 202 | 194,Sao Tome and Principe,ST,STP,678 203 | 195,Saudi Arabia,SA,SAU,682 204 | 196,Senegal,SN,SEN,686 205 | 197,Serbia,RS,SRB,688 206 | 198,Seychelles,SC,SYC,690 207 | 199,Sierra Leone,SL,SLE,694 208 | 200,Singapore,SG,SGP,702 209 | 201,Sint Maarten (Dutch part),SX,SXM,534 210 | 202,Slovakia,SK,SVK,703 211 | 203,Slovenia,SI,SVN,705 212 | 204,Solomon Islands,SB,SLB,90 213 | 205,Somalia,SO,SOM,706 214 | 206,South Africa,ZA,ZAF,710 215 | 207,South Georgia and the South Sandwich Islands,GS,SGS,239 216 | 208,Sudan,SS,SSD,728 217 | 209,Spain,ES,ESP,724 218 | 210,Sri Lanka,LK,LKA,144 219 | 211,Sudan (the),SD,SDN,729 220 | 212,Suriname,SR,SUR,740 221 | 213,Svalbard and Jan Mayen,SJ,SJM,744 222 | 214,Sweden,SE,SWE,752 223 | 215,Switzerland,CH,CHE,756 224 | 216,Syrian Arab Republic,SY,SYR,760 225 | 217,Taiwan,TW,TWN,158 226 | 218,Tajikistan,TJ,TJK,762 227 | 219,"Tanzania, United Republic of",TZ,TZA,834 228 | 220,Thailand,TH,THA,764 229 | 221,Timor-Leste,TL,TLS,626 230 | 222,Togo,TG,TGO,768 231 | 223,Tokelau,TK,TKL,772 232 | 224,Tonga,TO,TON,776 233 | 225,Trinidad and Tobago,TT,TTO,780 234 | 226,Tunisia,TN,TUN,788 235 | 227,Turkey,TR,TUR,792 236 | 228,Turkmenistan,TM,TKM,795 237 | 229,Turks and Caicos Islands (the),TC,TCA,796 238 | 230,Tuvalu,TV,TUV,798 239 | 231,Uganda,UG,UGA,800 240 | 232,Ukraine,UA,UKR,804 241 | 233,United Arab Emirates (the),AE,ARE,784 242 | 233,UAE,AE,ARE,784 243 | 234,United Kingdom of Great Britain and Northern Ireland (the),GB,GBR,826 244 | 234,UK,GB,GBR,826 245 | 234,United Kingdom,GB,GBR,826 246 | 235,United States Minor Outlying Islands (the),UM,UMI,581 247 | 236,United States of America (the),US,USA,840 248 | 236,USA,US,USA,840 249 | 237,Uruguay,UY,URY,858 250 | 238,Uzbekistan,UZ,UZB,860 251 | 238,Vatican City,VA,VAT,379 252 | 239,Vanuatu,VU,VUT,548 253 | 240,Venezuela,VE,VEN,862 254 | 241,VietNam,VN,VNM,704 255 | 242,Virgin Islands (British),VG,VGB,92 256 | 243,Virgin Islands (U.S.),VI,VIR,850 257 | 244,Wallis and Futuna,WF,WLF,876 258 | 245,Western Sahara,EH,ESH,732 259 | 246,Yemen,YE,YEM,887 260 | 247,Zambia,ZM,ZMB,894 261 | 248,Zimbabwe,ZW,ZWE,716 262 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pandas 2 | lxml 3 | html5lib 4 | requests 5 | beautifulsoup4 -------------------------------------------------------------------------------- /zabbix/zabbix_template-pt_BR.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0 4 | 2020-03-13T18:17:30Z 5 | 6 | 7 | Templates/Applications 8 | 9 | 10 | 11 | 1262 | 1263 | 1264 | 1265 | Covid9 - Total Cases 1266 | 900 1267 | 200 1268 | 0.0000 1269 | 100.0000 1270 | 1 1271 | 1 1272 | 0 1273 | 1 1274 | 0 1275 | 0.0000 1276 | 0.0000 1277 | 0 1278 | 0 1279 | 0 1280 | 0 1281 | 1282 | 1283 | 0 1284 | 0 1285 | 1A7C11 1286 | 0 1287 | 2 1288 | 0 1289 | 1290 | Coronavirus - Monitoramento Covid-19 1291 | covid19.data[ActiveCases] 1292 | 1293 | 1294 | 1295 | 1 1296 | 0 1297 | F63100 1298 | 0 1299 | 2 1300 | 0 1301 | 1302 | Coronavirus - Monitoramento Covid-19 1303 | covid19.data[Serious] 1304 | 1305 | 1306 | 1307 | 2 1308 | 0 1309 | 2774A4 1310 | 0 1311 | 2 1312 | 0 1313 | 1314 | Coronavirus - Monitoramento Covid-19 1315 | covid19.data[TotalRecovered] 1316 | 1317 | 1318 | 1319 | 3 1320 | 0 1321 | A54F10 1322 | 0 1323 | 2 1324 | 0 1325 | 1326 | Coronavirus - Monitoramento Covid-19 1327 | covid19.data[TotalDeaths] 1328 | 1329 | 1330 | 1331 | 1332 | 1333 | -------------------------------------------------------------------------------- /zabbix/zabbix_template.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0 4 | 2020-03-13T18:17:18Z 5 | 6 | 7 | Templates 8 | 9 | 10 | 11 | 1297 | 1298 | 1299 | 1300 | Covid 9 - Total Cases 1301 | 900 1302 | 200 1303 | 0.0000 1304 | 100.0000 1305 | 1 1306 | 1 1307 | 0 1308 | 1 1309 | 0 1310 | 0.0000 1311 | 0.0000 1312 | 0 1313 | 0 1314 | 0 1315 | 0 1316 | 1317 | 1318 | 0 1319 | 0 1320 | 1A7C11 1321 | 0 1322 | 2 1323 | 0 1324 | 1325 | Template - Covid19 1326 | covid19.data[ActiveCases] 1327 | 1328 | 1329 | 1330 | 1 1331 | 0 1332 | F63100 1333 | 0 1334 | 2 1335 | 0 1336 | 1337 | Template - Covid19 1338 | covid19.data[TotalDeaths] 1339 | 1340 | 1341 | 1342 | 2 1343 | 0 1344 | 2774A4 1345 | 0 1346 | 2 1347 | 0 1348 | 1349 | Template - Covid19 1350 | covid19.data[Serious] 1351 | 1352 | 1353 | 1354 | 3 1355 | 0 1356 | A54F10 1357 | 0 1358 | 2 1359 | 0 1360 | 1361 | Template - Covid19 1362 | covid19.data[TotalRecovered] 1363 | 1364 | 1365 | 1366 | 1367 | 1368 | 1369 | -------------------------------------------------------------------------------- /zabbix_template.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rickkbarbosa/covid9-monitor/a3f7f77cd644a43db6adbe643269bc450349c655/zabbix_template.png --------------------------------------------------------------------------------