Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • All values must be lowercase, even if NOC-PS returns the value capitalized or uppercase.
  • You should not directly edit the "OnlineOfflineStrings.php" file. This file will get overwritten on module upgrades.
  • To view the default power values, please open the file "/modules/servers/dedicated/system/OnlineOfflineString.php".

Add new power status values to the module

To extend the power values, follow this simple steps:

  • Get the required value by opening the NOC-PS admin panel and click on IPMI → Status → Execute Command.
  • A popup will appear with a message like "serverUP".
  • Create or open the file "/modules/servers/dedicated/system/OnlineOfflineStrings.override.php" and add the value to the array found in the file OnlineOfflineString.php.

...