From a8e0a8b078ff851311ba211085de5ba1f879d646 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Sun, 10 Jan 2016 19:54:43 +1000 Subject: [PATCH] Add appropriate tags for MIB-based polling --- includes/snmp.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/snmp.inc.php b/includes/snmp.inc.php index 4a665560f..3f91539ae 100644 --- a/includes/snmp.inc.php +++ b/includes/snmp.inc.php @@ -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); }