New OS: DHCPatriot (dhcpatriot)

This commit is contained in:
Geoffrey Ferk
2020-04-23 12:09:14 -05:00
parent 7264ab7ff7
commit 30656481d9
13 changed files with 3867 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
/*
*
* OIDs obtained from First Network Group Inc. DHCPatriot operations manual version 6.4.x
* Found here: http://www.network1.net/products/dhcpatriot/documentation/PDFs/v64xmanual-rev1.pdf
*
*/
if ($sensor['sensor_type'] === 'dhcpatriotLicenseExpiration') {
$current_time = time();
$epoch_time = explode(':', $sensor_value);
$sensor_value = round((intval($epoch_time[1]) - $current_time) / (60 * 60 * 24));
}