LAR_Maintenance/app/Http/Controllers/HostGroupController.php

25 lines
464 B
PHP
Raw Permalink Normal View History

2024-09-25 20:09:13 +00:00
<?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();
}
}