※リポジトリは、https://github.com/linux-ha-japan/pm_logconv-hb-1.0 へ移行しました。
Pacemaker 対応ログメッセージ変換機能。
Heartbeat-2.1.4 用 hb-logconv(*) のPacemaker1.0 + Heartbeat スタック対応版。
(*) http://sourceforge.jp/projects/linux-ha/releases/?package_id=10282
Revisión | cd2a2a90a18d0cfaa47079624ed525102cc0c15a (tree) |
---|---|
Tiempo | 2013-05-22 18:00:38 |
Autor | Yoshihiko SATO <satoyoshi@inte...> |
Commiter | Yoshihiko SATO |
タグの文字コード出力対応
@@ -1536,7 +1536,7 @@ | ||
1536 | 1536 | logfile = open(path, 'r') |
1537 | 1537 | cstat.ino = os.fstat(logfile.fileno()).st_ino |
1538 | 1538 | else: |
1539 | - self.do_ptn_matching(logline) | |
1539 | + self.do_ptn_matching(logline.replace('#011', ' ')) | |
1540 | 1540 | statfile.write() |
1541 | 1541 | except Exception, strerror: |
1542 | 1542 | pm_log.error("convert: error occurred.") |