centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

[storage::emc::unisphere::restapi::plugin] add quota for mode::storageresources

Open gagzou opened this issue 3 years ago • 2 comments

Hi,

Is it possible to add quota supervision for unisphere ?

Unisphere

Api documentation : unity-restapi-refg_en-us_reference-guide8.pdf

Best regards.

gagzou avatar Sep 26 '22 10:09 gagzou

Could you provide the curl command and result ?

garnier-quentin avatar Sep 26 '22 10:09 garnier-quentin

Apparently it's more complicated. I'll ask Dell about it and get back. Please put the request on hold.

gagzou avatar Sep 26 '22 11:09 gagzou

Hi, 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

gagzou avatar Nov 24 '23 12:11 gagzou

{ "@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 } } }

gagzou avatar Nov 24 '23 12:11 gagzou