I have written a loadable module which retrieves some complex data using Net-SNMP library. Currently I have to specify hostname and SNMP community string as item key parameters:
But there is one major drawback of this method: the {$SNMP_COMMUNITY} macro is resolved to the actual community string and sent in plain text in notification messages as part of the item key. Not very secure.
As long as loadable mudules are executed inside the main Zabbix process, it must be possible to access host configuration using the same functions as the native Zabbix pollers use. The question is which functions?
Code:
some.item.key[{HOST.NAME}, {$SNMP_COMMUNITY}, param_1, param_2, ...]
As long as loadable mudules are executed inside the main Zabbix process, it must be possible to access host configuration using the same functions as the native Zabbix pollers use. The question is which functions?