1. Logging Format

Logging in heartbeat-v2.07

All heartbeat components are logging like this:

Example:
========

cib: [32185]

but i think it has to look as the standard format:

Example:
========

smtpd[10799]:

?

#=========================================================

2. Why does the default ha_logd.cf file has to be in /etc?

The hearbeat logfile says:

2006-11-13 16:37:55 +01:00; node1; local7.info; heartbeat: [18382]:
info: logfile and debug file are those specified in logd config file
(default /etc/logd.cf)

The place of ha_logd.cf should be in /etc/ha.d or /etc/ha.d/conf?

So i have to put a symlink to it...

$> ln -s ha.d/ha_logd.cf logd.cf

#=========================================================

3. Why is the logd configuration file in the heartbeat logfile called
logd.cf and as an examples hearbeat provides
/usr/share/doc/heartbeat-2.0.7-r2/ha_logd.cf.gz (gentoo)?

#=========================================================

4. Why does

$> man ha_logd

not say where the logfile configuration has to be?

There is also a typo in the man page of ha_logd:

...User can configure log file, debuf file...

should be

...User can configure log file, debug file...

#=========================================================

5. Can someone explain me the functionality of ha_logd in detail please
(is it used as "fallback" logger daemon, if yes how etc.)?

#=========================================================

6. @all gentoo users, there is also a bug in the init-script of
heartbeat (2.0.7-r2) ha_logd not starting and stopping - bug reported
(http://bugs.gentoo.org/show_bug.cgi?id=155106) - patch attached
(heartbeat.ha_logd.diff).

#=========================================================

7. I think the logging of heartbeat should be improved to a more
transparent and readable format(!?).

#=========================================================

8. If any interests - a syslog-ng-2.0 conf for hearbeat and drbd are
attached.

Derived from:
 
http://overlays.gentoo.org/dev/wschlich/browser/stable/app-admin/syslog-ng/files/syslog-ng.conf

#=========================================================


Thanks for help and comments!

Best regards,
Michael Kapp

--

IT-Systemadministrator Avira GmbH
www.avira.com
--- heartbeat.orig      2006-11-13 16:39:03.178605000 +0100
+++ heartbeat   2006-11-13 16:39:13.438605000 +0100
@@ -30,7 +30,7 @@
        . $HA_DIR/shellfuncs
 
        # start the log subsystem
-       /usr/lib/heartbeat/ha_logd -s &>/dev/null && \
+       /usr/lib/heartbeat/ha_logd -s &>/dev/null || \
                /usr/lib/heartbeat/ha_logd -d
 
        RunStartStop pre-start
@@ -57,7 +57,7 @@
        RunStartStop post-stop ${ret}
 
        # stop log subsystem
-       /usr/lib/heartbeat/ha_logd -s &>/dev/null || \
+       /usr/lib/heartbeat/ha_logd -s &>/dev/null && \
                /usr/lib/heartbeat/ha_logd -k &>/dev/null
 
        eend ${ret}
## Linux-HA: attrd
destination d_ha_attrd { file("/var/log/syslog-ng/ha/attrd.log" 
template(t_local)); };
filter f_ha_attrd { program("^attrd$"); };
log { source(s_local); filter(f_ha_attrd); destination(d_ha_attrd); };

## Linux-HA: ccm
destination d_ha_ccm { file("/var/log/syslog-ng/ha/ccm.log" template(t_local)); 
};
filter f_ha_ccm { program("^ccm$"); };
log { source(s_local); filter(f_ha_ccm); destination(d_ha_ccm); };

## Linux-HA: cib
destination d_ha_cib { file("/var/log/syslog-ng/ha/cib.log" template(t_local)); 
};
filter f_ha_cib { program("^cib$"); };
log { source(s_local); filter(f_ha_cib); destination(d_ha_cib); };

## Linux-HA: cibmon
destination d_ha_cibmon { file("/var/log/syslog-ng/ha/cibmon.log" 
template(t_local)); };
filter f_ha_cibmon { program("^cibmon$"); };
log { source(s_local); filter(f_ha_cibmon); destination(d_ha_cibmon); };

## Linux-HA: crmd
destination d_ha_crmd { file("/var/log/syslog-ng/ha/crmd.log" 
template(t_local)); };
filter f_ha_crmd { program("^crmd$"); };
log { source(s_local); filter(f_ha_crmd); destination(d_ha_crmd); };

## Linux-HA: heartbeat
destination d_ha_heartbeat { file("/var/log/syslog-ng/ha/heartbeat.log" 
template(t_local)); };
filter f_ha_heartbeat { program("^heartbeat$"); };
log { source(s_local); filter(f_ha_heartbeat); destination(d_ha_heartbeat); };

## Linux-HA: logd
destination d_ha_logd { file("/var/log/syslog-ng/ha/logd.log" 
template(t_local)); };
filter f_ha_logd { program("^logd$"); };
log { source(s_local); filter(f_ha_logd); destination(d_ha_logd); };

## Linux-HA: lrmd
destination d_ha_lrmd { file("/var/log/syslog-ng/ha/lrmd.log" 
template(t_local)); };
filter f_ha_lrmd { program("^lrmd$"); };
log { source(s_local); filter(f_ha_lrmd); destination(d_ha_lrmd); };

## Linux-HA: pengine
destination d_ha_pengine { file("/var/log/syslog-ng/ha/pengine.log" 
template(t_local)); };
filter f_ha_pengine { program("^pengine$"); };
log { source(s_local); filter(f_ha_pengine); destination(d_ha_pengine); };

## Linux-HA: pingd
destination d_ha_pingd { file("/var/log/syslog-ng/ha/pingd.log" 
template(t_local)); };
filter f_ha_pingd { program("^pingd$"); };
log { source(s_local); filter(f_ha_pingd); destination(d_ha_pingd); };

## Linux-HA: stonithd
destination d_ha_stonithd { file("/var/log/syslog-ng/ha/stonithd.log" 
template(t_local)); };
filter f_ha_stonithd { program("^stonithd$"); };
log { source(s_local); filter(f_ha_stonithd); destination(d_ha_stonithd); };

## Linux-HA: tengine
destination d_ha_tengine { file("/var/log/syslog-ng/ha/tengine.log" 
template(t_local)); };
filter f_ha_tengine { program("^tengine$"); };
log { source(s_local); filter(f_ha_tengine); destination(d_ha_tengine); };
## DRBD
destination d_drbd { file("/var/log/syslog-ng/drbd.log" template(t_local)); };
filter f_drbd { match("^kernel: drbd([[:digit:]]+)?:"); };
log { source(s_kernel); filter(f_drbd); destination(d_drbd); };

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to