{"id":1034,"date":"2016-06-09T07:13:02","date_gmt":"2016-06-09T07:13:02","guid":{"rendered":"http:\/\/www.ipcpu.com\/?p=1034"},"modified":"2018-06-09T07:13:50","modified_gmt":"2018-06-09T07:13:50","slug":"zabbix-timeshift","status":"publish","type":"post","link":"https:\/\/c.ipcpu.com\/2016\/06\/zabbix-timeshift\/","title":{"rendered":"zabbix\u76d1\u63a7\u6570\u636e\u4e0e\u6628\u5929\u540c\u4e00\u65f6\u671f\u5bf9\u7167"},"content":{"rendered":"

\u5728\u5b9e\u9645\u7684\u4f7f\u7528\u5f53\u4e2d\uff0c\u7ecf\u5e38\u4f1a\u51fa\u73b0\u4e00\u4e9b\u6307\u6807\uff0c\u9700\u8981\u8ddf\u6628\u65e5\u8fdb\u884c\u5bf9\u7167\u7684\u60c5\u51b5\u3002<\/p>\n

zabbix\u57281.8.2\u4ee5\u540e\u4e5f\u8003\u8651\u5230\u4e86\u8fd9\u70b9\uff0c\u589e\u52a0\u4e86\u4e00\u4e2atimeshift\u529f\u80fd\u3002<\/p>\n

\u76ee\u524d\u53ea\u6709\u5728\u89e6\u53d1\u5668\u4e2d\u652f\u6301\uff1a<\/p>\n

\u4f8b\u5982\u5b98\u65b9\u63d0\u4f9b\u7684\u4f8b\u5b50\uff1a<\/p>\n

\n
\u89e6\u53d1\u5668\u540d\u79f0\u4e3a\uff1aComparing average load today with average load of the same time yesterday (using a second time_shift parameter).\r\n\r\n{server:system.cpu.load.avg(1h)}\/{server:system.cpu.load.avg(1h,1d)}>2\r\n\r\nThis expression will fire if the average load of the last hour tops the average load of the same hour yesterday more than two times. \u5982\u679c\u6700\u540e\u4e00\u5c0f\u65f6\u7684\u5e73\u5747cpu load\u8d85\u8fc7\u524d\u4e00\u5929\u7684\u540c\u4e00\u5c0f\u65f6\u4e24\u500d\uff0c\u5c31\u4f1a\u4f7f\u89e6\u53d1\u5668\u7684\u72b6\u6001\u53d8\u66f4\u4e3aPROBLEM\u3002<\/code><\/pre>\n<\/div>\n

\u4ece\u76ee\u524d\u6587\u6863\u6765\u770b\u6211\u4eec\u5e38\u7528\u7684avg\u3001count\u3001last\u3001max\u3001min\u3001sum\u7b49\u51fd\u6570\u90fd\u652f\u6301time_shift\uff08Zabbix 1.8.2+\uff09\u3002
\n\u4f46\u662f\uff0c\u5728\u56fe\u50cf\u65b9\u9762zabbix\u76ee\u524d\u597d\u50cf\u4e0d\u652f\u6301timeshift\u529f\u80fd\uff0c\u4f46\u662fgrafana\u662f\u652f\u6301\u7684\uff0c\u5982\u4e0b
\n<\/p>\n

\u53c2\u8003\u8d44\u6599<\/h2>\n

https:\/\/www.zabbix.com\/documentation\/3.4\/zh\/manual\/config\/triggers\/expression<\/a><\/p>\n

<\/p>\n

<\/div>\n
<\/div>\n
\n
<\/div>\n
<\/div>\n
<\/div>\n
<\/div>\n
<\/div>\n<\/div>\n
\n
<\/div>\n
<\/div>\n
<\/div>\n
<\/div>\n
<\/div>\n<\/div>\n

<\/wiz_tmp_tag><\/p>\n

\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def<\/a> » zabbix\u76d1\u63a7\u6570\u636e\u4e0e\u6628\u5929\u540c\u4e00\u65f6\u671f\u5bf9\u7167<\/a><\/p>","protected":false},"excerpt":{"rendered":"

\u5728\u5b9e\u9645\u7684\u4f7f\u7528\u5f53\u4e2d\uff0c\u7ecf\u5e38\u4f1a\u51fa\u73b0\u4e00\u4e9b\u6307\u6807\uff0c\u9700\u8981\u8ddf\u6628\u65e5\u8fdb\u884c\u5bf9\u7167\u7684\u60c5\u51b5\u3002 zabbix\u57281.8.2\u4ee5\u540e\u4e5f\u8003\u8651\u5230\u4e86\u8fd9\u70b9\uff0c\u589e\u52a0\u4e86\u4e00\u4e2atimeshift\u529f\u80fd\u3002 \u76ee\u524d\u53ea\u6709\u5728\u89e6\u53d1\u5668\u4e2d\u652f\u6301\uff1a \u4f8b\u5982\u5b98\u65b9\u63d0\u4f9b\u7684\u4f8b\u5b50\uff1a \u89e6\u53d1\u5668\u540d\u79f0\u4e3a\uff1aComparing average load today with average load of the same time yesterday (using a second time_shift parameter). {server:system.cpu.load.avg(1h)}\/{server:system.cpu.load.avg(1h,1d)}>2 This expression will fire if the average load of the last hour tops the average load of the same hour yesterday more than two times. \u5982\u679c\u6700\u540e\u4e00\u5c0f\u65f6\u7684\u5e73\u5747cpu load\u8d85\u8fc7\u524d\u4e00\u5929\u7684\u540c\u4e00\u5c0f\u65f6\u4e24\u500d\uff0c\u5c31\u4f1a\u4f7f\u89e6\u53d1\u5668\u7684\u72b6\u6001\u53d8\u66f4\u4e3aPROBLEM\u3002 \u4ece\u76ee\u524d\u6587\u6863\u6765\u770b\u6211\u4eec\u5e38\u7528\u7684avg\u3001count\u3001last\u3001max\u3001min\u3001sum\u7b49\u51fd\u6570\u90fd\u652f\u6301time_shift\uff08Zabbix 1.8.2+\uff09\u3002 \u4f46\u662f\uff0c\u5728\u56fe\u50cf\u65b9\u9762zabbix\u76ee\u524d\u597d\u50cf\u4e0d\u652f\u6301timeshift\u529f\u80fd\uff0c\u4f46\u662fgrafana\u662f\u652f\u6301\u7684\uff0c\u5982\u4e0b \u53c2\u8003\u8d44\u6599 https:\/\/www.zabbix.com\/documentation\/3.4\/zh\/manual\/config\/triggers\/expression \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[72],"_links":{"self":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/1034"}],"collection":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/comments?post=1034"}],"version-history":[{"count":2,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/1034\/revisions"}],"predecessor-version":[{"id":1036,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/1034\/revisions\/1036"}],"wp:attachment":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/media?parent=1034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/categories?post=1034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/tags?post=1034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}