history

ZABBIX数据库表结构解析

梦想与她 提交于 2019-11-27 08:11:20
############sample 1 https://blog.51cto.com/sfzhang88/1558254 如何从Zabbix数据库中获取监控数据 sfzhang 关注 6 人评论 40627人阅读 2014-09-25 21:08:57 做过Zabbix的同学都知道,Zabbix通过专用的Agent或者SNMP收集相关的监控数据,然后存储到数据库里面实时在前台展示。Zabbix监控数据主要分为以下两类: 历史数据:history相关表,从history_uint表里面可以查询到设备监控项目的最大,最小和平均值,即存储监控数据的原始数据。 趋势数据:trends相关表,趋势数据是经过Zabbix计算的数据,数据是从history_uint里面汇总的,从trends_uint可以查看到监控数据每小时最大,最小和平均值,即存储监控数据的汇总数据。 Zabbix可以通过两种方式获取历史数据: 1.通过Zabbix前台获取历史数据 通过Zabbix前台查看历史数据非常简单,可以通过Monitoring->Lastest data的方式查看。也可以点击右上角的As plain test按钮保存成文本文件。 2.通过前台获取的数据进行处理和二次查询有很多限制,因此可以通过SQL语句直接从后台DB查询数据。 首先大家应该熟悉SQL语句Select 常用用法: SELECT

How could I change window's location without reloading and # hack?

前提是你 提交于 2019-11-27 07:52:38
At first I thought that hash hack is a requirement, however judging from the recent updates from facebook, I am thinking otherwise. The original hash hack (I am not sure if this is the correct term) is that by changing location.hash, one may save a state in the URL without refreshing the page. That is extensively used by Google's apps, and Facebook, and lately #NewTwitter. However today I noticed that Facebook no longer have this "#" if you use a "modern" browser - like chrome or firefox. I double checked that they are not reloading by using developer tools and firebug respectively. With a

jQuery UI Tabs back button history

空扰寡人 提交于 2019-11-27 07:13:50
Has anyone been able to get jQuery UI Tabs 3(Latest version) working with the back button? I mean if the user hits the back button they should go to the previously visited tab on the page, not a different page. The history plug in sounds like it can work, but i cant seem to make it work with ajax loaded tabs. If anyone has managed to make this work, it would be deeply appreciated, thanks! Justin Hamade I just ran into this as well. Its really easy with the jquery address plugin here http://www.asual.com/jquery/address/ The demo for tabs seemed a bit over complicated. I just did this: $(

Migration from UCM ClearCase to GIT

倾然丶 夕夏残阳落幕 提交于 2019-11-27 07:12:10
问题 I am studying migrating from UCM ClearCase to GIT. The initial intention is to migrate all cc branches with their respective history. A similar experience, best practices, any tips or suggestions will be of great help. 回答1: The biggest advice is in the UCM component to Git repository reorganization. The migration is often a good opportunity to split (too) large UCM component into leaner Git repo. Since Git is distributed , you need to keep in mind you will be cloning the full history around,

popstate returns event.state is undefined

久未见 提交于 2019-11-27 06:34:59
问题 I am learning about history in HTML5, in this example (open the JavaScript browser console to see error) the event.state.url returns: Uncaught TypeError: Cannot read property 'url' of undefined Look and help: http://jsfiddle.net/un4Xk/ 回答1: event is the jQuery event object, not the DOM one. To access the DOM event object, use event.originalEvent : http://jsfiddle.net/pimvdb/un4Xk/1/. var state = event.originalEvent.state; Remember that the state is only defined when the new state has data, so

Can I prevent history.popstate from triggering on initial page-load?

我只是一个虾纸丫 提交于 2019-11-27 06:30:37
I'm working on a site that serves content via AJAX. If you click an item in the menu, a content div gets updated with $.get response, nothing fancy. I'm implementing history.pushState to allow navigation with the browser's back/forward button. I have the following to load content on history navigation: $(function() { $(window).bind("popstate", function() { $.getScript(location.href); }); }); The problem is, when a page is loaded for the first time, this function does $.getScript so the page is loaded immediately again. The first time the page is loaded it renders the initial HTML view, then on

How can I rewrite history so that all files, except the ones I already moved, are in a subdirectory?

流过昼夜 提交于 2019-11-27 06:22:45
I have a project under git . One day I moved all project files from current directory to foo/bar/ under the project. I did it using git mv . Then I added some more files and did some changes to already existing files. As a result, now when I look at the history of foo/bar/file.c , I can only see changes that I did after I moved the file. I tried to fix this in various ways ( filter-branch with subdirectory filter, etc), but nothing helped, so I am pretty stacked here. I'll appreciate any help that you can give me. Thanks! Dan Moulding To rewrite the history with the files moved: If you want

What was the Historical Precursor for .NET Attributes?

∥☆過路亽.° 提交于 2019-11-27 06:14:48
问题 What languages or platforms influenced the .NET 1.0 Team to build-in the concept of Attributes from the very start? Was this an Aspect-Oriented thing? Serialization? or something else? I was still in VB6-land at this time, and never used any of the pre-1.0 .NET versions. 回答1: Believe it or not experiences/feedback from VB and Microsoft Transaction Server/COM+ dev teams had a bit part in some of the design rational of .NET, attributes and metadata. VB6 added support for attributes/metadata

Git - how do I view the change history of a method/function?

我的未来我决定 提交于 2019-11-27 06:09:56
So I found the question about how to view the change history of a file, but the change history of this particular file is huge and I'm really only interested in the changes of a particular method. So would it be possible to see the change history for just that particular method? I know this would require git to analyze the code and that the analysis would be different for different languages, but method/function declarations look very similar in most languages, so I thought maybe someone has implemented this feature. The language I'm currently working with is Objective-C and the SCM I'm

error combining git repositories into subdirs

泪湿孤枕 提交于 2019-11-27 06:08:35
问题 I have looked at several threads addressing this. Combining multiple git repositories Combining multiple git repositories having a space in their name I also looked at the git filter-branch manpage. update I have changed to a 2 script system: #!/bin/bash git filter-branch --index-filter '~/doit.sh' HEAD and doit.sh #!/bin/bash git ls-files -s | \ sed "s-\t-&data/perl_modules/-" | \ GIT_INDEX_FILE="$GIT_INDEX_FILE.new" git update-index --index-info && \ mv "$GIT_INDEX_FILE.new" "$GIT_INDEX