Repository navigation
[CPCLOUD-6541] New Stor CLI plugin - #102
Merged
Merged
Conversation
laurisb
approved these changes
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
StorCLI plugin for Agent360 (replaces MegaCLI)
Background
The MegaCLI plugin (
agent360/plugins/megacli.py) doesn't work correctly on some setups. MegaCLI itself reached end of life in 2013, with support ending in 2020. StorCLI is its successor.Changes
agent360/plugins/storcli.pyNothing else changed.
megacli.pyis left as is.How it works
Commands run (all with
Jfor JSON output):storcli64 /call show allstorcli64 /call/vall show allstorcli64 /call/eall/sall show allBinary lookup:
binary =under[storcli]in/etc/agent360.ini, thenstorcli64,storcli,/opt/MegaRAID/storcli/storcli64and/usr/sbin/storcli64.Privileges: the plugin prefixes
sudo -nwhen the agent isn't root. It needs a sudoers entry:Enable in
/etc/agent360.ini:Reported metrics
controller_<c>optimal, memory correctable and uncorrectable errors, BBU status, virtual and physical drive counts, ROC temperaturevd_<c>_<v>optimal, access,consistent, stripe size, number of drives, span depth, default, current and disk cache policy, encryptionpd_<c>_<e>_<s>healthy, media, interface, size, model, media, other and predictive-failure error counts,smart_alert, temperatureDifferences from the MegaCLI plugin
Testing status
storcli64.sudo -u agent360 agent360 test storclion a real server.Open points
megacli.py.bbu_statusis a number or a string depending on the controller.