mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
sysDescr is two lines
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
# Version is the last word in the sysDescr
|
||||
$version = substr($poll_device['sysDescr'], strrpos($poll_device['sysDescr'], ' ') + 1);
|
||||
|
||||
# Version is the last word in the sysDescr's first line
|
||||
list($version) = explode("\r", substr($poll_device['sysDescr'], strpos($poll_device['sysDescr'], "Release")+8));
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user