improvements to the user macro functionality
(ZBXNEXT-353)
[ZBXNEXT-355] user macros do not work in snmp oid field Created: 2009 Dec 15 Updated: 2017 May 31 Resolved: 2010 Nov 04 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Server (S) |
Affects Version/s: | None |
Fix Version/s: | 1.8.4 |
Type: | Change Request (Sub-task) | Priority: | Critical |
Reporter: | richlv | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 15 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | patch-snmp-user-macros.diff snmp-user-macros.patch | ||||||||||||
Issue Links: |
|
Description |
user macros do not work in snmp oid fields, they are passed/used as-is. that prevents usage of snmp oids like : |
Comments |
Comment by richlv [ 2009 Dec 15 ] |
for the record, item is coming from a template, macro is attached to the host |
Comment by Alexei Vladishev [ 2009 Dec 15 ] |
I wouldn't call it critical bug. It is not supposed to work on the OID. It sounds like a feature request. |
Comment by richlv [ 2009 Dec 15 ] |
hmm. but oid is essentially performing key functionality in snmp checks, currently user macros can't be used with snmp items at all... |
Comment by richlv [ 2010 Mar 18 ] |
Comment by Vladimir Kravchenko [ 2010 Oct 18 ] |
user macros and parameters (keys) in snmp community string, snmp oid, snmp index oid and index value |
Comment by Aleksandrs Saveljevs [ 2010 Oct 18 ] |
Vladimir, thanks for the patch. However, as you write in the patch yourself, this is a hack, so it cannot be included in the official Zabbix distribution. If it works for you, then feel free to use it in the mean time, though. |
Comment by Andrew Dike [ 2010 Oct 18 ] |
Thanks for the patch Vladimir, I may try it out. I've made a perl script to perform SNMP checks that can use macros, it's not very clean but the basic functionality is there. I would much prefer to have macro functionality as part of the SNMP check. I hope this hack/patch can be rolled into the official Zabbix distribution soon. I'm monitoring volumes in a Netapp Filer. Each volume has it's own list of OIDs so macros would be really useful for this. |
Comment by Vladimir Kravchenko [ 2010 Nov 01 ] |
variant 2, only for development 1.9 trunk |
Comment by Alexander Vladishev [ 2010 Nov 04 ] |
Available in development branch svn://svn.zabbix.com/branches/dev/zbxnext-355-snmp-macros |
Comment by John Brännström [ 2010 Nov 04 ] |
Does this mean it will be in the 1.8.4 release or the 2.0 release? |
Comment by richlv [ 2010 Nov 05 ] |
this was branched off from 1.8, so i would suspect 1.8 branch (but also might be 1.8.5...) |
Comment by Andrew Dike [ 2010 Nov 05 ] |
Thanks guys for your work, I'm happy that it's on the roadmap for release. It will make things much easier for me and hopefully many others. |
Comment by Alexander Vladishev [ 2010 Nov 05 ] |
Available in version pre1.8.4rc3, r15305. |