You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

Added values must be lowercase

All values must be lowercase. Even if the returned value is capitalized.

The default file looks like this:

OnlineOfflineStrings.php
$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:

Edited file
$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:

  1. Open the NOC-PS admin page
  2. Select the server and click on IPMI
  3. Click on status → Execute command


  • No labels