※リポジトリは、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 | 558d351a1d924eb5ad1e1064077f319d9c6ff176 (tree) |
---|---|
Tiempo | 2011-05-09 14:22:39 |
Autor | Yoshihiko SATO <satoyoshi@inte...> |
Commiter | Yoshihiko SATO |
delete unnecessary code.
@@ -3319,37 +3319,6 @@ | ||
3319 | 3319 | cstat.shutNodeSet.add(nodename) |
3320 | 3320 | return CONV_OK |
3321 | 3321 | |
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 | - | |
3353 | 3322 | ########## |
3354 | 3323 | # For logging daemon event. |
3355 | 3324 | ########## |