Hi,

On Thu, Jan 10, 2008 at 09:40:51AM +0900, DAIKI MATSUDA wrote:
> Hi, All, especially Dejan-san.
> 
> By Andrew's suggestion
> (http://developerbugs.linux-foundation.org//show_bug.cgi?id=1820) I
> check the hb_report command. And I am aware of the behaviour that when
> the logfacility directive is set in ha.cf,
> 1. it can not find the log file without -l option.
> [EMAIL PROTECTED] crm]# hb_report -f "2008/1/9 09:40" /tmp/xen_orig
> world: WARN: could not find the log file on world
> star: WARN: could not find the log file on star
> 
> 2. it tries to parse the log file as system log. So, it does not
> include ha-log in tar ball package. (See following)
>  [EMAIL PROTECTED] crm]# hb_report -f "2008/1/9 09:40" -l /var/log/ha-log
> /tmp/xen_orig
> world: WARN: cannot extract time: /var/log/ha-log:2570; will try the next one
> world: WARN: cannot extract time: /var/log/ha-log:2571; will try the next one
> world: WARN: cannot extract time: /var/log/ha-log:2572; will try the next one
> world: WARN: cannot extract time: /var/log/ha-log:2573; will try the next one
> world: WARN: cannot extract time: /var/log/ha-log:2574; will try the next one
> world: WARN: cannot extract time: /var/log/ha-log:2575; will try the next one
> world: WARN: cannot extract time: /var/log/ha-log:2576; will try the next one
> world: WARN: cannot extract time: /var/log/ha-log:2577; will try the next one
> world: WARN: cannot extract time: /var/log/ha-log:2578; will try the next one
> world: WARN: cannot extract time: /var/log/ha-log:2579; will try the next one
> world: WARN: giving up on log...
> 
> So, /usr/share/heartbeat/utillib.sh
> getstamp() {
>         if [ "$HA_SYSLOGMSGFMT" -o "$HA_LOGFACILITY" ]; then
>                 awk '{print $1,$2,$3}'
>         else
>                 awk '{print $2}' | sed 's/_/ /'
>         fi
> }
> Because in upper part $HA_LOGFACILITY is set, in spite of ha_log typ
> log file hb_report tyies to parse as system log file.

Yes, that's true.

> I think that the new option to determine the log file type should be
> added or the logfacility directive should be ignored and logs should
> be taken from ha_log. Whad do you think?

hb_report should behave the same way the Heartbeat does. This is
where it doesn't. I'll fix that.

Thanks for reporting and analyzing.

Cheers,

Dejan



> 
> Best Regards
> MATSUDA, Daiki
> _______________________________________________________
> Linux-HA-Dev: [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
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