原创 jQuery小技巧

回到頂部的按鈕 通過使用jQuery中的animate 與 scrollTop 方法可以創建一個非常簡易的帶有平滑滾動的回到頂部的按鈕: // Back to top $('a.top').click(function (e) { e

原创 zabbix 郵件報錯 Support for SMTP authentication was not compiled in

服務器系統是centos6.5 zabbix版本是3.0.4 根據 網上教程配置好郵件腳本後,觸發發送郵件的時候報錯: Support for SMTP authentication was not compiled in 官網說的

原创 zabbix 分佈式監控(proxy)源碼安裝

安裝分佈式監控(代理節點) 1.下載軟件zabbix-3.2.1.tar.gz 1.1 解壓 wget http://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Sta

原创 zabbix3.0.4 郵件告警詳細配置

sendEmail是一個輕量級,命令行的SMTP郵件客戶端。如果你需要使用命令行發送郵件,那麼sendEmail是非常完美的選擇:使用簡單並且功能強大.這個被設計用在php、bash perl和web站點使用。 1.下載軟件

原创 js cookie的使用

這裏定義一個方便操作cookie的方法: var Cookie_ = { set:function(key,val,time){ //設置cookie方法,鍵值對和過期天數 var date=new Date;

原创 JS 繼承

實現繼承 function Animal(name){ this.name = name; this.showName = function(){ alert(this.

原创 Select2下拉選項庫 部分積累

用了這麼久的Select2插件,也該寫篇文章總結總結。 在我的印象裏Select2有2個版本,最新版本有一些新的特性,並且更新了一下方法參數,比最初版本要好看一些,本文針對新版本。 官網:http://select2.github.io/

原创 Get value from agent failed: cannot connect to [[192.168.186.130]:10050]: [113]No route to host

客戶端配置zabbix-agent 後,網頁端出現Get value from agent failed: cannot connect to [[192.168.186.130]:10050]: [113]No route to hos

原创 Starting zabbix_agentd: No such file or directory

問題描述 [root@localhost admin]# service zabbix_agentd restart Shutting down zabbix_agentd: [FAILED] Starting zabbix_agentd

原创 Zabbix Agent active主動模式監控

zabbix_server端當主機數量過多的時候,由Server端去收集數據,Zabbix會出現嚴重的性能問題,主要表現如下: 1、當被監控端到達一個量級的時候,Web操作很卡,容易出現502 2、圖層斷裂 3、開啓的

原创 zabbix 漢化

zabbix2.x的版本自帶漢化,3.x的版本也可以通過修改配置文件強制使用自帶的漢化,但是不管哪種,翻譯的精準度令人費解;偶然發現一個專門翻譯zabbix的網站https://www.zabbix.org/pootle/ ,裏面翻譯了

原创 zabbix: failed to accept an incoming connection

錯誤描述 查日誌發現: failed to accept an incoming connection: connection from "192.168.186.132" rejected, allowed hosts: "127.0

原创 zabbix監控報錯zabbix server is not running: the information displayed may not be current

zabbix監控搭建完後打開web界面http://xxx/zabbix報錯: zabbix server is not running: the information displayed may not be current! 1

原创 HTML5 學習指導

HTML 語義 HTML5爲我們提供了很多旨在精確描述內容的語義元素。確保你可以從它豐富的詞彙中獲益。 <!-- bad --> <div id="main"> <div class="article"> <div class

原创 JavaScript 的異步和單線程

問題 Q:下面的代碼是否能滿足sleep效果? var t = true; setTimeout(function(){ t = false; }, 1000); while(t){ } alert('end'); 一開始我認爲setT