mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Rewrite netstats polling (#13368)
* Rewrite netstats polling As modern module Don't use snmpgetnext as it can result in extra data returned * remove copyrights on interfaces * typehints * fix silly backslashes
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace LibreNMS\Interfaces\Polling\Netstats;
|
||||
|
||||
interface IcmpNetstatsPolling
|
||||
{
|
||||
public function pollIcmpNetstats(array $oids): array;
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace LibreNMS\Interfaces\Polling\Netstats;
|
||||
|
||||
interface IpForwardNetstatsPolling
|
||||
{
|
||||
public function pollIpForwardNetstats(array $oids): array;
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace LibreNMS\Interfaces\Polling\Netstats;
|
||||
|
||||
interface IpNetstatsPolling
|
||||
{
|
||||
public function pollIpNetstats(array $oids): array;
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace LibreNMS\Interfaces\Polling\Netstats;
|
||||
|
||||
interface SnmpNetstatsPolling
|
||||
{
|
||||
public function pollSnmpNetstats(array $oids): array;
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace LibreNMS\Interfaces\Polling\Netstats;
|
||||
|
||||
interface TcpNetstatsPolling
|
||||
{
|
||||
public function pollTcpNetstats(array $oids): array;
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace LibreNMS\Interfaces\Polling\Netstats;
|
||||
|
||||
interface UdpNetstatsPolling
|
||||
{
|
||||
public function pollUdpNetstats(array $oids): array;
|
||||
}
|
Reference in New Issue
Block a user