oltpoll.php 532 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Polling PON OLT data
  4. */
  5. if (ubRouting::get('action') == 'oltpoll') {
  6. if ($alterconf['PON_ENABLED']) {
  7. $compressorProcess = new StarDust(ONUSigCompressor::PID);
  8. if ($compressorProcess->notRunning()) {
  9. $pony = new PONizer();
  10. $pony->oltDevicesPolling();
  11. die('OK:OLTPOLL');
  12. } else {
  13. log_register('PON OLTPOLL SKIPPED DUE COMPRESSOR RUNNING');
  14. die('SKIPPED:OLTPOLL');
  15. }
  16. } else {
  17. die('ERROR:PON_DISABLED');
  18. }
  19. }