-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New HP ssa package changes output slightly causing logical drive regex fail #175
Comments
Please include output of ALL commands in bugreport, i.e the commands related to |
ssacli package info:
I've symlinked /usr/sbin/hpssacli to /usr/sbin/ssacli to enable check_raid to work.
The script execution:
Command outputs:
|
I just noticed this change from HP myself. This seems to be a suitable change to the regex on line 3033:
Then adding a new "stub" plugin module ssacli.pm, to extend the hpacucli plugin similarly to hpssacli.pm, lets it function without needing to symlink the binary. |
HP have replaced hpssacli with ssacli (dropping the hp prefix). The command behaves almost identically as far as I can tell. They have also renamed the binary to ssacli.
Binary renaming aside, the output of some of the logical drive check have changed causing the regex to fail.
Output of
check_raid -d
:The output change is minor in that they changed "array" to "Array".
New ssacli:
Old hpssacli:
Updating the regex on line 3033 fixes the issue:
if (my($a, $s) = /^\s+array (\S+)(?:\s*\((\S+)\))?$/) {
to
if (my($a, $s) = /^\s+Array (\S+)(?:\s*\((\S+)\))?$/) {
But you probably want a more suitable solution to deal with backwards compatibility and also perhaps the new binary name.
The text was updated successfully, but these errors were encountered: