mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed Pulse OS whitespace issue
Due to the newline etc the minigraphs weren't getting displayed correctly.
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
|
||||
$version = trim(snmp_get($device, "productVersion.0", "-OQv", "PULSESECURE-PSG-MIB"),'"');
|
||||
$hardware = "Juniper " . trim(snmp_get($device, "productName.0", "-OQv", "PULSESECURE-PSG-MIB"),'"');
|
||||
$version = preg_replace('/[\r\n\"]+/',' ',snmp_get($device, "productVersion.0", "-OQv", "PULSESECURE-PSG-MIB"));
|
||||
$hardware = "Juniper " . preg_replace('/[\r\n\"]+/',' ',snmp_get($device, "productName.0", "-OQv", "PULSESECURE-PSG-MIB"));
|
||||
$hostname = trim($poll_device['sysName'],'"');
|
||||
|
||||
$usersrrd = $config['rrd_dir'].'/'.$device['hostname'].'/pulse_users.rrd';
|
||||
|
||||
Reference in New Issue
Block a user