The power status of the server is detected on the string which returns the NOC-PS API. Depending on the device, the returned string can differ.
If the power status of your server does not get detected correctly, open the file /modules/servers/dedicated/system/OnlineOfflineStrings.php and add the correct strings into the file.
All values must be lowercase. Even if the returned value is capitalized. |
The default file looks like this:
$OnlineStringArray = array('chassis power is on', 'on', 'online', 'running'); $OfflineStringArray = array('chassis power is off', 'off', 'offline', 'stopped'); $ConnectionError = array('unable to establish'); |
If NOC-PS returns "serverUp" for online and "serverDown" for offline, edit the file accordingly. Note that the value has to be inserted lowercase:
$OnlineStringArray = array('chassis power is on', 'on', 'online', 'running', 'serverup'); $OfflineStringArray = array('chassis power is off', 'off', 'offline', 'stopped', 'serverdown'); $ConnectionError = array('unable to establish'); |
The correct values can be checked at the NOC-PS admin panel: