In presence of errors, perccli64 returns non-zero status and makes the script fail:
$ sudo /usr/local/lib/nagios/plugins/get-raid-status-perccli perccli64 command failed Command '['/usr/bin/perccli64', '/call/vall show all J']' returned non-zero exit status 45.
In this case for example:
$ sudo /usr/bin/perccli64 /call/vall show all J { "Controllers":[ { "Command Status" : { "CLI Version" : "007.1910.0000.0000 Oct 08, 2021", "Operating system" : "Linux 5.10.0-18-amd64", "Controller" : 0, "Status" : "Failure", "Description" : "None", "Detailed Status" : [ { "VD" : 239, "Status" : "Failed", "ErrCd" : 45, "ErrMsg" : "device busy or unexpected error occurred" } ] }, "Response Data" : { "/c0/v239" : [ { "DG/VD" : "0/239", "TYPE" : "RAID10", "State" : "Dgrd", "Access" : "RW", "Consist" : "Yes", "Cache" : "RWBD", "Cac" : "-", "sCC" : "OFF", "Size" : "8.729 TB", "Name" : "" } ] } } ] }
and the exit code is 45.
Also, the icinga alert seems to be cut on the first pipe symbol '|'. Eg: "Dell PowerEdge RAID Controller": "communication 0 OK"