{"id":20541204,"url":"https://github.com/netways/check_hp_msa","last_synced_at":"2025-04-14T08:39:21.915Z","repository":{"id":52276519,"uuid":"363175957","full_name":"NETWAYS/check_hp_msa","owner":"NETWAYS","description":"PoC for Icinga check plugin for HP MSA storages","archived":false,"fork":false,"pushed_at":"2023-12-06T09:39:36.000Z","size":56,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-03-27T22:11:47.373Z","etag":null,"topics":["hp","icinga","monitoring","plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NETWAYS.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-04-30T15:04:28.000Z","updated_at":"2023-12-06T08:20:22.000Z","dependencies_parsed_at":"2024-11-16T01:31:54.005Z","dependency_job_id":null,"html_url":"https://github.com/NETWAYS/check_hp_msa","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fcheck_hp_msa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fcheck_hp_msa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fcheck_hp_msa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETWAYS%2Fcheck_hp_msa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NETWAYS","download_url":"https://codeload.github.com/NETWAYS/check_hp_msa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248848188,"owners_count":21171323,"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":["hp","icinga","monitoring","plugin"],"created_at":"2024-11-16T01:20:15.437Z","updated_at":"2025-04-14T08:39:21.894Z","avatar_url":"https://github.com/NETWAYS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Warning:** This is a prototype and not finished and not very well tested.\n\n# check_hp_msa\n\nIcinga check plugin for HP MSA storages. Inspired by [Zabbix HPMSA Integration](https://github.com/asand3r/zbx-hpmsa).\n\n## Installation\n\nThe plugin requires at least Python 3.\n\nPython dependencies:\n\n* `requests`\n\nPlease prefer installation via system packages like `python3-requests`.\n\nAlternatively you can install with pip:\n\n    pip3 install requests\n\nMake sure to modify the shebang to your environment, one of the following should be fine:\n\n    #!/usr/bin/env python3\n    #!/usr/bin/python3\n\nThen copy the file to your plugin dir:\n\n    cp check_hp_msa.py /usr/lib*/nagios/plugins/check_hp_msa\n    chmod 755 /usr/lib*/nagios/plugins/check_hp_msa\n\n## Usage\n\n```bash\ncheck_hp_msa.py --help\n\n-h, --help            show this help message and exit\n--api API, -A API     HP MSA host url (e.g. https://msa1.local)\n--username USERNAME, -u USERNAME\n                      Username for login (CHECK_HP_MSA_API_USER)\n--password PASSWORD, -p PASSWORD\n                      Password for login (CHECK_HP_MSA_API_PASSWORD)\n--mode MODE, -m MODE  Check mode\n--insecure            Do not check certificates\n--version, -V         Print version\n--auth-hash-type {md5,sha256}\n                      The Hash algorithm to use for the authentication procedure\n```\n\nVarious flags can be set with environment variables, refer to the help to see which flags.\n\n## Example\n\n```bash\ncheck_hp_msa.py --api 'https://msa.local' -u icinga -p password --mode disks\n[OK] 82 disks\n\n[1.1 ] SEAGATE ST10000NM002G 10.0TB SERIALNO Up OK\n[1.2 ] SEAGATE ST10000NM002G 10.0TB SERIALNO Up OK\n[1.3 ] SEAGATE ST10000NM002G 10.0TB SERIALNO Up OK\n[1.4 ] SEAGATE ST10000NM002G 10.0TB SERIALNO Up OK\n[1.5 ] SEAGATE ST10000NM002G 10.0TB SERIALNO Up OK\n...\n```\n\n## API Documentation\n\nSee the chapter \"Using the XML API\" in [HP MSA 2040CLI Reference Guide](https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c03791989).\n\n## License\n\nHP MSA and its variants are a trademark of Hewlett-Packard Development Company, L.P.\n\nCopyright (C) 2021 [NETWAYS GmbH](mailto:info@netways.de)\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetways%2Fcheck_hp_msa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetways%2Fcheck_hp_msa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetways%2Fcheck_hp_msa/lists"}