SNMP Capabilities (#13289)

* SNMP Capabilities
Allow all available auth algorithms to be set in global settings
cleanup other usages

* fix style
This commit is contained in:
Tony Murray
2021-09-28 18:35:59 -05:00
committed by GitHub
parent add06be809
commit 66dddbaa66
11 changed files with 200 additions and 73 deletions

View File

@@ -670,23 +670,6 @@ function version_info($remote = false)
return $output;
}//end version_info()
/**
* Checks SNMPv3 capabilities
*
* SHA2 for Auth Algorithms (SHA-224,SHA-256,SHA-384,SHA-512)
* AES-192, AES-256 for Privacy Algorithms
*/
function snmpv3_capabilities(): array
{
$process = new Process([Config::get('snmpget', 'snmpget'), '--help']);
$process->run();
$ret['sha2'] = Str::contains($process->getErrorOutput(), 'SHA-512');
$ret['aes256'] = Str::contains($process->getErrorOutput(), 'AES-256');
return $ret;
}
/**
* Convert a MySQL binary v4 (4-byte) or v6 (16-byte) IP address to a printable string.
*