• R/O
  • SSH

pm_logconv-hb: Commit

※リポジトリは、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


Commit MetaInfo

Revision558d351a1d924eb5ad1e1064077f319d9c6ff176 (tree)
Time2011-05-09 14:22:39
AuthorYoshihiko SATO <satoyoshi@inte...>
CommiterYoshihiko SATO

Log Message

delete unnecessary code.

Change Summary

Incremental Difference

diff -r b8fb1578e3ec -r 558d351a1d92 pm_logconv.py
--- a/pm_logconv.py Thu Apr 21 13:49:55 2011 +0900
+++ b/pm_logconv.py Mon May 09 14:22:39 2011 +0900
@@ -3319,37 +3319,6 @@
33193319 cstat.shutNodeSet.add(nodename)
33203320 return CONV_OK
33213321
3322- '''
3323- Detect the send shutdown request to DC.
3324- Add localhost name to shutting down node list.
3325- Output nothing.
3326-
3327- MsgNo.14-5)
3328- Sep 16 13:11:51 x3650a crmd: [11369]: info: do_shutdown_req: Sending shutdown request to DC: x3650a
3329- '''
3330- def detect_send_shutdown(self, outputobj, logelm, lconvfrm):
3331- cstat.shutNodeSet.add(HOSTNAME)
3332- return CONV_OK
3333-
3334- '''
3335- Detect the shutting down node.
3336- Add node name to shutting down node list.
3337- Output nothing.
3338-
3339- MsgNo.14-6)
3340- Mar 29 14:14:17 x3650a pengine: [26424]: info: determine_online_status: Node x3650a is shutting down
3341- '''
3342- def detect_node_shutting_down(self, outputobj, logelm, lconvfrm):
3343- try:
3344- nodename = logelm.halogmsg.split()[-4]
3345- except:
3346- return CONV_PARSE_ERROR
3347- if self.is_empty(nodename):
3348- return CONV_ITEM_EMPTY
3349-
3350- cstat.shutNodeSet.add(nodename)
3351- return CONV_OK
3352-
33533322 ##########
33543323 # For logging daemon event.
33553324 ##########
Show on old repository browser