mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add appropriate tags for MIB-based polling
This commit is contained in:
@@ -1150,6 +1150,11 @@ function save_mibs($device, $mibname, $oids, $mibdef, &$graphs)
|
|||||||
$tags = array(
|
$tags = array(
|
||||||
'rrd_def' => array("DS:mibval:$type"),
|
'rrd_def' => array("DS:mibval:$type"),
|
||||||
'rrd_name' => $new,
|
'rrd_name' => $new,
|
||||||
|
'index' => $index,
|
||||||
|
'oid' => $mibdef[$obj]['oid'],
|
||||||
|
'module' => $mibdef[$obj]['module'],
|
||||||
|
'mib' => $mibdef[$obj]['mib'],
|
||||||
|
'object_type' => $obj,
|
||||||
);
|
);
|
||||||
data_update($device, 'mibval', $tags, $val);
|
data_update($device, 'mibval', $tags, $val);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user