Add appropriate tags for MIB-based polling

This commit is contained in:
Paul Gear
2016-01-10 19:54:43 +10:00
parent 3831ad3f45
commit a8e0a8b078

View File

@@ -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);
} }