mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Minor fixup to MIB polling
This commit is contained in:
@ -1005,6 +1005,7 @@ function rrd_shorten($name, $prefix)
|
||||
|
||||
/*
|
||||
* Save all of the measurable oids for the device in their own RRDs.
|
||||
* FIXME: Do we have to save the shortened name in order to get it back for graphing?
|
||||
*/
|
||||
function save_mibs($device, $mibname, $oids, $mibdefs)
|
||||
{
|
||||
@ -1016,7 +1017,7 @@ function save_mibs($device, $mibname, $oids, $mibdefs)
|
||||
}
|
||||
rrd_create_update(
|
||||
$device,
|
||||
array($mibname, $oid, $index),
|
||||
array($mibname, str_replace($mibname, '', $oid), $index),
|
||||
array("DS:".rrd_shorten($oid, $mibname).":$type"),
|
||||
"N:$val"
|
||||
);
|
||||
|
Reference in New Issue
Block a user