added zabbix sync and view for Device

This commit is contained in:
Luca Haid
2024-11-05 20:42:16 +01:00
parent bea341f869
commit eb9a1a3995
6 changed files with 118 additions and 63 deletions

View File

@@ -72,6 +72,14 @@ class Zabbix {
return $response['result'];
}
public function getICMPItems($hostId) {
$response = $this->zabbixRequest('item.get', array(
'hostids' => $hostId,
'search' => array('name' => array("ICMP"))
));
return $response['result'];
}
public function getUptimeItems($hostId) {
$response = $this->zabbixRequest('item.get', array(
'hostids' => $hostId,