Example #1
0
 public function get($path = null)
 {
     // header("Refresh: 60");
     $servers = \Koshatul\Config\Config::Get('haproxyweb/server');
     $stats = new \Koshatul\HAProxyWeb\Helper\GetStats($servers);
     $stats->process();
     $output = "";
     $output .= $this->_head();
     $output .= $this->body($stats->getData());
     $output .= $this->_foot();
     echo $output;
 }
Example #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $stats = new \Koshatul\HAProxyWeb\Helper\GetStats($input->getArgument('server'));
     $stats->process();
 }