{"id":13578041,"url":"https://github.com/Full-Monitoring/oluas_proxmox","last_synced_at":"2025-04-05T15:32:14.908Z","repository":{"id":131228338,"uuid":"384568484","full_name":"Full-Monitoring/oluas_proxmox","owner":"Full-Monitoring","description":"Consumindo a API do Proxmox com HTTP Agent","archived":false,"fork":false,"pushed_at":"2022-06-13T20:01:30.000Z","size":4262,"stargazers_count":16,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-05T15:48:58.466Z","etag":null,"topics":["api","http-agent","proxmox","storage","token"],"latest_commit_sha":null,"homepage":"https://full-monitoring.github.io/oluas_proxmox/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Full-Monitoring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-07-09T23:05:01.000Z","updated_at":"2024-07-07T18:59:05.000Z","dependencies_parsed_at":"2023-05-27T15:30:54.843Z","dependency_job_id":null,"html_url":"https://github.com/Full-Monitoring/oluas_proxmox","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Full-Monitoring%2Foluas_proxmox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Full-Monitoring%2Foluas_proxmox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Full-Monitoring%2Foluas_proxmox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Full-Monitoring%2Foluas_proxmox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Full-Monitoring","download_url":"https://codeload.github.com/Full-Monitoring/oluas_proxmox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247359268,"owners_count":20926396,"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","http-agent","proxmox","storage","token"],"created_at":"2024-08-01T15:01:26.524Z","updated_at":"2025-04-05T15:32:09.893Z","avatar_url":"https://github.com/Full-Monitoring.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# PROXMOX 6.3-2 + ZABBIX 5.0.14 + GRAFANA 8.1.1\n\n## Usando item HTTP AGENT\n\n## [Saulo Costa - Telegram](https://t.me/saulos2costa/ \"telegram\")\n\n![image](https://user-images.githubusercontent.com/23584038/128372750-3a1f1948-8318-4ec7-87cb-4b4f8424be64.png)\n\n![image](https://user-images.githubusercontent.com/23584038/129265817-8ed5acf5-d1ae-40ba-84e1-43f8dc34bab5.png)\n\n![print](./contents/img/print-node.png \"Print\")\n\n![print](./contents/img/print-storage.png \"Print\")\n\n![print](./contents/img/alerta_telegram.png \"Print\")\n\n[Criar Token API](https://youtu.be/Iuyd2TXe8SA)\n\n- [Dashborad Grafana](/contents/dash_grafana.json \"Dashborad Grafana\")\n\n## Sobre o Template Zabbix\n\n\u003e Adicione suas macros no host\n\n![image](https://user-images.githubusercontent.com/23584038/132047991-5ed0de0e-1a0d-4a7b-be9e-25aa38593675.png)\n\n\u003e Macros LLD\n\n```js\n{#NAME} -\u003e $.name\n{#TYPE} -\u003e $.type\n{#VMID} -\u003e $.vmid\n{#STORAGE} -\u003e $.storage\n{#NODE} -\u003e $.node\n```\n\n\u003e Contador de vms, storages e nodes (total)\n\n```js\n$.body.data[?(@.type == 'qemu')].length()\n$.body.data[?(@.type == 'storage')].length()\n$.body.data[?(@.type == 'node')].length()\n```\n\n\u003e Contador de vms (ligadas)\n\n```js\n$.[?(@.status == 'running')].length()\n```\n\n\u003e Contador de vms (deligadas)\n\n```js\n$.[?(@.status == 'stopped')].length()\n```\n\n\u003e Filtros de contagem dos protótipos de itens tipo vm\n\n```js\n$.[?(@.name == '{#NAME}')].status.first()\n$.[?(@.name == '{#NAME}')].uptime.first()\n$.[?(@.name == '{#NAME}')].cpu.first()\n$.[?(@.name == '{#NAME}')].maxcpu.first()\n$.[?(@.name == '{#NAME}')].mem.first()\n$.[?(@.name == '{#NAME}')].maxmem.first()\n$.[?(@.name == '{#NAME}')].netin.first()\n$.[?(@.name == '{#NAME}')].netout.first()\n```\n\n\u003e Item de calculo de porcentagem de memória ram da vm\n\n```js\n100*last(\"vm.mem[{#NAME}]\")/last(\"vm.maxmem[{#NAME}]\")\n```\n\n\u003e Alterando valores de retorno de status da vm de running ou stopped para 1 ou 0\n\n```js\nif (value == 'running'){\n    return 1;\n} else {\n    return 0;\n}\n```\n\n\u003e filtros de contagem dos protótipos de itens tipo storage\n\n```js\n$.[?(@.storage == '{#STORAGE}')].disk.first()\n$.[?(@.storage == '{#STORAGE}')].maxdisk.first()\n$.[?(@.storage == '{#STORAGE}')].status.first()\n```\n\n\u003e filtros de contagem dos protótipos de itens tipo storage\n\n```js\n$.[?(@.storage == '{#STORAGE}')].disk.first()\n$.[?(@.storage == '{#STORAGE}')].maxdisk.first()\n$.[?(@.storage == '{#STORAGE}')].status.first()\n```\n\n\u003e Alterando valores de retorno de status do node de available para 1\n\n```js\nif (value == 'available'){\n    return 1;\n} else {\n    return 0;\n}\n```\n\n\u003e Item de calculo de porcentagem de armazenamento do storage\n\n```js\n100*last(\"storage.disk[{#STORAGE}]\")/last(\"storage.maxdisk[{#STORAGE}]\")\n```\n\n\u003e Contador de storages disponíveis ou inidiponíveis\n\n```js\n$.[?(@.status == 'available')].length()\n$.[?(@.status == 'unavailable')].length()\n```\n\n\u003e filtros de contagem dos protótipos de itens tipo node\n\n```js\n$.[?(@.node == '{#NODE}')].disk.first()\n$.[?(@.node == '{#NODE}')].maxdisk.first()\n$.[?(@.node == '{#NODE}')].uptime.first()\n$.[?(@.node == '{#NODE}')].mem.first()\n$.[?(@.node == '{#NODE}')].maxmem.first()\n$.[?(@.node == '{#NODE}')].maxcpu.first()\n$.[?(@.node == '{#NODE}')].status.first()\n$.[?(@.node == '{#NODE}')].cpu.first()\n```\n\n\u003e Item de calculo de porcentagem de memoria ram  e disco do node\n\n```js\n100*last(\"node.mem[{#NODE}]\")/last(\"node.maxmem[{#NODE}]\")\n100*last(\"node.disk[{#NODE}]\")/last(\"node.maxdisk[{#NODE}]\")\n```\n\n\u003e Alterando valores de retorno de status do node de online e offiline para 1 ou 0\n\n```js\nif (value == 'online'){\n    return 1;\n} else {\n    return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFull-Monitoring%2Foluas_proxmox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFull-Monitoring%2Foluas_proxmox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFull-Monitoring%2Foluas_proxmox/lists"}