Added certificate file validity check for services (#10354)

* snmp extend for monitoring certificate file validity

* Update Applications.md

* Update Applications.md
This commit is contained in:
SourceDoctor
2019-11-05 22:56:31 +01:00
committed by Neil Lathwood
parent 21087579e6
commit 4d50feffb3
8 changed files with 205 additions and 2 deletions

View File

@@ -1322,6 +1322,20 @@ function get_arrays_with_application($device, $app_id, $app_name, $category = nu
return $entries;
}
/**
* Get all certificate names from the collected
* rrd files.
*
* @param array $device device for which we get the rrd's
* @param int $app_id application id on the device
* @return array list of certificate names
*/
function get_domains_with_certificates($device, $app_id)
{
$app_name = 'certificate';
return get_arrays_with_application($device, $app_id, $app_name);
}
/**
* Get all seafile data from the collected
* rrd files.