mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove un-necessary check (#10900)
This commit is contained in:
@@ -13,15 +13,10 @@ and the other for polling:
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
if ($device['os'] === 'pulse') {
|
||||
echo 'PULSE-MEMORY-POOL: ';
|
||||
|
||||
$usage = str_replace('"', "", snmp_get($device, 'iveMemoryUtil.0', '-OvQ', 'PULSESECURE-PSG-MIB'));
|
||||
|
||||
if (is_numeric($usage)) {
|
||||
discover_mempool($valid_mempool, $device, 0, 'pulse-mem', 'Main Memory', '100', null, null);
|
||||
}
|
||||
echo 'PULSE-MEMORY-POOL: ';
|
||||
$usage = str_replace('"', "", snmp_get($device, 'iveMemoryUtil.0', '-OvQ', 'PULSESECURE-PSG-MIB'));
|
||||
if (is_numeric($usage)) {
|
||||
discover_mempool($valid_mempool, $device, 0, 'pulse-mem', 'Main Memory', '100', null, null);
|
||||
}
|
||||
```
|
||||
|
||||
@@ -29,11 +24,8 @@ if ($device['os'] === 'pulse') {
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
echo 'Pulse Secure MemPool\n';
|
||||
|
||||
$perc = str_replace('"', "", snmp_get($device, "iveMemoryUtil.0", '-OvQ', 'PULSESECURE-PSG-MIB'));
|
||||
|
||||
if (is_numeric($perc)) {
|
||||
$memory_available = str_replace('"', "", snmp_get($device, "memTotalReal.0", '-OvQ', 'UCD-SNMP-MIB'));
|
||||
$mempool['total'] = $memory_available;
|
||||
|
||||
Reference in New Issue
Block a user