mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
New OS: DHCPatriot (dhcpatriot)
This commit is contained in:
14
includes/polling/sensors/count/dhcpatriot.inc.php
Normal file
14
includes/polling/sensors/count/dhcpatriot.inc.php
Normal 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));
|
||||
}
|
Reference in New Issue
Block a user