mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update exim-stats.inc.php (#5919)
* Update exim-stats.inc.php Output from debug of poller.php: SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Oqv -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro udp:HOSTNAME:161 .1.3.6.1.4.1.8072.1.3.2.3.1.2.10.101.120.105.109.45.115.116.97.116.115] "0 0" exim-statsRRD[update /opt/librenms/rrd/monitoring2/app-exim-stats-5.rrd N:0:0] So we have two resulting variables from that outpu (note additional quotes there) $frozen = '"0'; $queue = '0"'; And it fails. My graphs contain nan instead of real values. I think same issue is with apache application. * Update exim-stats.inc.php Updated to remove quote from string and then convert it to integer.
This commit is contained in:
committed by
Neil Lathwood
parent
debb945477
commit
07c9535c37
@ -36,8 +36,8 @@ $rrd_def = array(
|
||||
);
|
||||
|
||||
$fields = array(
|
||||
'frozen' => $frozen,
|
||||
'queue' => $queue
|
||||
'frozen' => intval(trim($frozen, '"')),
|
||||
'queue' => intval(trim($queue, '"'))
|
||||
);
|
||||
|
||||
$tags = compact('name', 'app_id', 'rrd_name', 'rrd_def');
|
||||
|
Reference in New Issue
Block a user