centreon-plugins
centreon-plugins copied to clipboard
[storage::emc::unisphere::restapi::plugin] add quota for mode::storageresources
Hi,
Is it possible to add quota supervision for unisphere ?
Api documentation : unity-restapi-refg_en-us_reference-guide8.pdf
We can have the names of the quotas: https://x.x.x.x/api/types/quotaConfig/instances?fields=filesystem.name and then, we can have the sizes of the soft/hard quotas and the size: https://x.x.x.x/api/instances/quotaConfig/quotaconfig_171798691851_7?fields=filesystem.name%2CtreeQuota.hardLimit%2CtreeQuota.softLimit%2CtreeQuota.path%2CtreeQuota.state%2CtreeQuota.sizeUsed
example : { "@base": "https://x.x.x.x/api/instances/quotaConfig", "updated": "2023-11-24T12:17:10.374Z", "links": [ { "rel": "self", "href": "/quotaconfig_171798691851_7" } ], "content": { "id": "quotaconfig_171798691851_7", "filesystem": { "id": "fs_1", "name": "FS-Services" }, "treeQuota": { "id": "treequota_171798691851_7", "state": 0, "path": "/Services/DIVISION_BIBLIOTHEQUE", "hardLimit": 107374182400, "softLimit": 107374182400, "sizeUsed": 86862370816 } } }
Best regards.