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:
@@ -1148,8 +1148,13 @@ function save_mibs($device, $mibname, $oids, $mibdef, &$graphs)
|
||||
rrd_file_rename($device, $old, $new);
|
||||
|
||||
$tags = array(
|
||||
'rrd_def' => array("DS:mibval:$type"),
|
||||
'rrd_name' => $new,
|
||||
'rrd_def' => array("DS:mibval:$type"),
|
||||
'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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user