使用者工具

網站工具


linux:monitor:zabbix_alert

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
linux:monitor:zabbix_alert [2014/03/23 14:51]
ali88 [申請使用Google API金鑰]
linux:monitor:zabbix_alert [2014/03/23 18:00] (目前版本)
ali88
行 1: 行 1:
-{{:​linux:​monitor:​api_htmlauthcode.png?​300|}}======利用google api calendar 發送SMS======+======利用google api calendar 發送SMS======
 因為發送訊息,​是以python程式寫成。運用Google API Calendar等工具將信息傳到Google日曆,​再利用Google日曆提供手機簡訊提醒工具來達成SMS的目的。 因為發送訊息,​是以python程式寫成。運用Google API Calendar等工具將信息傳到Google日曆,​再利用Google日曆提供手機簡訊提醒工具來達成SMS的目的。
 =====安裝===== =====安裝=====
行 8: 行 8:
 #​easy_install rfc3339 #​easy_install rfc3339
 #​easy_install google-api-python-client</​code>​ #​easy_install google-api-python-client</​code>​
-{{:​linux:​monitor:​google_calendar.png?​300|}}=====申請使用Google API金鑰=====+{{:​linux:​monitor:​google_calendar.png?​300|}} 
 +=====申請使用Google API金鑰=====
 因為是使用Google API,​需要到 https://​code.google.com/​apis/​console/​ (使用google帳號登入)申請API金鑰。 因為是使用Google API,​需要到 https://​code.google.com/​apis/​console/​ (使用google帳號登入)申請API金鑰。
   - 先到 service 開啟 calendar api (舊版控制台){{:​linux:​monitor:​api_services.png?​700|}}   - 先到 service 開啟 calendar api (舊版控制台){{:​linux:​monitor:​api_services.png?​700|}}
行 99: 行 100:
       * 送出events 後會print event id ,​就完成了。{{:​linux:​monitor:​api_cmd3.png?​700|}}{{:​linux:​monitor:​google_calendar.png?​700|}}       * 送出events 後會print event id ,​就完成了。{{:​linux:​monitor:​api_cmd3.png?​700|}}{{:​linux:​monitor:​google_calendar.png?​700|}}
  
 +======參考資料======
 +  * [[http://​jerry2yang.wordpress.com/​2012/​02/​06/​ubuntu-install-google-calendar-api-with-python/​|Ubuntu install google calendar api with python]]
 +  * [[https://​www.evernote.com/​shard/​s112/​sh/​0db8e94a-8c19-4272-b1b8-392c4a623bb6/​063809b3590dd7ea095cc0fd87a95a27?​noteKey=063809b3590dd7ea095cc0fd87a95a27&​noteGuid=0db8e94a-8c19-4272-b1b8-392c4a623bb6|JasonW同事-使用GOOGLE 日曆功能 發送SMS]]
 +  * [[http://​www.openfoundry.org/​tw/​tech-column/​8536-introduction-of-python-extension-management-tools|Python 套件管理程式簡介]]
linux/monitor/zabbix_alert.1395586308.txt.gz · 上一次變更: 2014/03/23 14:51 由 ali88