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:
Tony Murray
2021-10-19 19:32:28 -05:00
committed by GitHub
parent c8b394f317
commit fdfea6e93b
17 changed files with 405 additions and 274 deletions

View File

@@ -0,0 +1,8 @@
<?php
namespace LibreNMS\Interfaces\Polling\Netstats;
interface IcmpNetstatsPolling
{
public function pollIcmpNetstats(array $oids): array;
}

View File

@@ -0,0 +1,8 @@
<?php
namespace LibreNMS\Interfaces\Polling\Netstats;
interface IpForwardNetstatsPolling
{
public function pollIpForwardNetstats(array $oids): array;
}

View File

@@ -0,0 +1,8 @@
<?php
namespace LibreNMS\Interfaces\Polling\Netstats;
interface IpNetstatsPolling
{
public function pollIpNetstats(array $oids): array;
}

View File

@@ -0,0 +1,8 @@
<?php
namespace LibreNMS\Interfaces\Polling\Netstats;
interface SnmpNetstatsPolling
{
public function pollSnmpNetstats(array $oids): array;
}

View File

@@ -0,0 +1,8 @@
<?php
namespace LibreNMS\Interfaces\Polling\Netstats;
interface TcpNetstatsPolling
{
public function pollTcpNetstats(array $oids): array;
}

View File

@@ -0,0 +1,8 @@
<?php
namespace LibreNMS\Interfaces\Polling\Netstats;
interface UdpNetstatsPolling
{
public function pollUdpNetstats(array $oids): array;
}