アラートメールの運用
Upcoming SlideShare
Loading in...5
×
 

アラートメールの運用

on

  • 728 views

Hachiojipm #23

Hachiojipm #23

Statistics

Views

Total Views
728
Views on SlideShare
722
Embed Views
6

Actions

Likes
0
Downloads
1
Comments
0

4 Embeds 6

http://twitter.com 2
https://twitter.com 2
http://s.deeeki.com 1
https://si0.twimg.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

アラートメールの運用 アラートメールの運用 Presentation Transcript

  • hachiojipm #23 アラートメールの運用 nekoya 3つのアラートメールアドレス [crit] nekoya.dev.kau.li - hoge.py script /path/to/hoge.py running at 2012-10-25 notice 正常系 16:47:35 ---------------------------------------- warn エラーあるいは警告 2012-10-25 16:47:35 [CRITICAL] global name cursor is not defined crit ケータイに飛ばす 2012-10-25 16:47:35 [WARNING] ---- traceback ---- 2012-10-25 16:47:35 [WARNING]   File "/home/ nekoya/path/to/hoge.py", line 53, in run return オレオレconfig, logger, CLI self.main() or 0 2012-10-25 16:47:35 [WARNING]   File "hoge.py", line 29, in main $logger->warn(fugaaa)とか呼ぶと display_anonymous_sites() 2012-10-25 16:47:35 [WARNING]   File 勝手にメールが飛ぶ "hoge.py", line 10, in fugafuga for site in find_foos(): 2012-10-25 16:47:35 [WARNING]   File 吐かれたログのmax_levelに合わせて "hoge.py", line 23, in find_foos cursor.execute (sql) 送信先メールアドレスを切り替え 2012-10-25 16:47:35 [WARNING] ------------------- ---------------------------------------- finished at 2012-10-25 16:47:35 noticeメールはバッチを-vで呼んだ時 だけ送る2012年10月27日土曜日