Acquisition monitored item

Details dimension to the host to acquire a host of items to monitor whether the trigger is enabled and support, etc.
First, you can get all the host information, to make up a list of hostid get out, get each item belongs to monitor this list of hosts and triggers, monitoring items for macros, you need to define their own approach with regular complete the conversion conversion macro name, for the trigger, plus internal parameters can be completed interpretation of the macro.

Question: item acquired is where the monitored items, the hosts have created yourself, templates, auto-discovery of monitored items in which, after the later practice, found that as long as the monitored items in the host, no matter where they came from, template automatically inherit found, can be obtained from item.get into

The key point, status monitoring item information state status
triggers a macro explanation, the state information state status
at the time of acquisition by item can also be associated with the host name of the name, if the name can not acquire, use the host, this is a must. Ip host association, at the time of reporting can be added to it.

Guess you like

Origin www.cnblogs.com/0916m/p/11481797.html