mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update apache.inc.php (#5938)
Same situation as with pull request https://github.com/librenms/librenms/pull/5919 . snmpget returns multiline output inside quotes (first and last line have quotes).
This commit is contained in:
committed by
Neil Lathwood
parent
07c9535c37
commit
c6f6cf1f09
@ -43,7 +43,7 @@ $rrd_def = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
$fields = array(
|
$fields = array(
|
||||||
'access' => $total_access,
|
'access' => intval(trim($total_access, '"')),
|
||||||
'kbyte' => $total_kbyte,
|
'kbyte' => $total_kbyte,
|
||||||
'cpu' => $cpuload,
|
'cpu' => $cpuload,
|
||||||
'uptime' => $uptime,
|
'uptime' => $uptime,
|
||||||
@ -62,7 +62,7 @@ $fields = array(
|
|||||||
'sb_logging' => $score_logging,
|
'sb_logging' => $score_logging,
|
||||||
'sb_graceful' => $score_graceful,
|
'sb_graceful' => $score_graceful,
|
||||||
'sb_idle' => $score_idle,
|
'sb_idle' => $score_idle,
|
||||||
'sb_open' => $score_open,
|
'sb_open' => intval(trim($score_open, '"')),
|
||||||
);
|
);
|
||||||
|
|
||||||
$tags = compact('name', 'app_id', 'rrd_name', 'rrd_def');
|
$tags = compact('name', 'app_id', 'rrd_name', 'rrd_def');
|
||||||
|
Reference in New Issue
Block a user