3Ware RAID Monitoring not correctly supported by ispConfig
I noticed there is Support to fetch the RAID-Status by ispConfig if the 3Ware Tools (tw_cli) is installed.
I wondered why my RAID Status has not been shown and server.sh shows this as result of tw_cli: "Error: (CLI:003) Specified controller does not exist."
Then I noticed that tw_cli is always using "c0" as controller-id. The system-call is defined in "server/lib/classes/monitor_tools.inc.php".
Quote:
$data['output'] = shell_exec('tw_cli info c0');
In my case the Controller has been initialised as c2 unit (note: I only have ONE controler used for RAID1).
May be it would be useful to do it in this steps:
$> tw_cli show
Ctl Model (V)Ports Drives Units NotOpt RRate VRate BBU
c2 4 2 1 0 2 - -
Then fetch the first col (Ctl). In my case it is only one named "c2". But in some special cases there also could be more than one controller!
Then make a foreach going through each Controller-Id as you currently did only with "c0".