bgpmon.php 276 B

12345678910111213
  1. <?php
  2. //BGP peers periodic polling
  3. if (ubRouting::get('action') == 'bgpmon') {
  4. if ($alterconf['BGPMON_ENABLED']) {
  5. $bgpMon = new BGPMon();
  6. $bgpMon->pollAllDevsStats();
  7. die('OK: BGPMON');
  8. } else {
  9. die('ERROR: BGPMON DISABLED');
  10. }
  11. }