Fixed Pulse OS whitespace issue

Due to the newline etc the minigraphs weren't getting displayed correctly.
This commit is contained in:
Ahmed Sajid
2016-07-26 16:29:01 -04:00
parent aaa045d3a0
commit 10cdcfa9b4

View File

@@ -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';