2019-09

9.2

  1. For the event of acquisition. According to the initial time to value, the alarm can only take items to this period of time occurs, the alarm occur before this time line is not going to get in this time period, unless the monitored item recovery, then an error will display.
  2. Monitoring of a variable number of items calculated values ​​do really have no idea. . big head
  3. gj zabbix client after the restart the machine lost contact, because do not boot from the start.

9.3

  1. For a push network connectivity monitoring items zy, because the village name used as a line of dictionary key, when there are two rows of the same name in different provinces of the village, a'll put another cover, so later on the use of provincial corporate name + line name + the name of the village as the key line, the largest reduce duplication. The Unique
  2. zabbix host when the batch update, if you want to use the new host group, you can write directly to the host group that, zabbix will automatically prompt the host group name (new) a custom, then the host will use this new host group
  3. New see a kind of flag judgment, very good use
tmp = {}
data = []
if tmp.get(key,True):   #能够取这个key,则进入下一层逻辑,取不到,直接判True,也进入下一层,
        tmp[key] = False    #将这个key设置为False,再次取到这个key的时候,直接pass,不做处理。这样就可以完成分类
        data.append(key)

9.4

  1. Error code appears, under the idea of ​​the situation, you can debug to view, in a production environment, my idea is to find a problem looking up layer upon layer, it is true you can find the problem, but a little more time to pay, worth . The best way is to print out the problem, watch variables, can be quickly resolved by looking at the log in code, use logging.error, pay attention to the use of variable print repr conversion, then the trigger condition, view real-time logs
  2. Background configuration of each alarm trigger media header, content format, the alarm recovery header, content format, content medium used for generating the alarm
  3. pyc compiled files can replace the original raw file py
  4. In zabbix, the host of a key monitoring item is unique, resulting in repeated zabbix not start
  5. go get a timeout, the processing 443, walk steps do gui
  6. Brain One day, ah, stiff die in fugue, completely unaware of work ah. Trouble trouble trouble

9.5

  1. Code to streamline the way, have to continue to strengthen, not a little repetitive with the production code
  2. dco do report code robustness, the idea is wrong, has not led to the police, after much trial writing when it comes to trial ideas
  3. model can specify a plurality of fields to form a unique combination type field
  4. In addition to code migration, the model-level code changes do need to be migrated, other operations, such as specifying the admin of displayed search field, the source model class specified content, etc., do not migrate. Direct restart the service can be used
  5. Java using jconsole connection service, may be used to extract data from jmx mbean, different java services, mbean in the same type of attribute names are different. We need to be treated differently.
  6. Clone template, good use everywhere, using any compiler batch replacement.

9.6

  1. For custom reports rearrange ideas, can be calculated using the direct zabbix types of monitoring items do the calculation between the individual monitored items, directly save a lot of problems, do not list the calculation process also eliminates the need for direct
  2. go walk in the layout of each control.

Guess you like

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