mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Added polling for serial and OS version
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
if (preg_match('/^Pacific Broadband Networks .+\n.+ Version ([^,]+), .+\n.+\n.+\nSerial num:([^,]+), .+/', $poll_device['sysDescr'], $regexp_result)) {
|
||||
$version = $regexp_result[1];
|
||||
$serial = $regexp_result[2];
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user