25 lines
464 B
PHP
25 lines
464 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Host;
|
|
use App\Services\ZabbixService;
|
|
use Carbon\Carbon;
|
|
|
|
class HostGroupController extends BaseController
|
|
{
|
|
public function index()
|
|
{
|
|
return view('host_groups.index');
|
|
}
|
|
|
|
public function sync()
|
|
{
|
|
$zabbix = new ZabbixService(config('zabbix.url'));
|
|
$zabbix->connect(config('zabbix.username'), config('zabbix.password'));
|
|
|
|
|
|
return redirect()->back();
|
|
}
|
|
}
|