[Linux-HA] heartbeat reporting utility

Robert Lindgren robert.lindgren at gmail.com
Mon Oct 1 08:27:19 MDT 2007


My ha-log contains logs lines like:
cib[3992]: 2007/10/01_15:13:49 info: cib_stats: Processed 4 operations
(12500.00us average, 0% utilization) in the last 10min

Which makes the perl function to return garbage.

+++ l='cib[3992]: 2007/10/01_01:53:56 info:'
+++ str2time 'cib[3992]: 2007/10/01_01:53:56 info:'
+++ perl -e '$time='\''cib[3992]: 2007/10/01_01:53:56 info:'\'';' -e '
        eval "use Date::Parse";
        if (!$@) {
                print str2time($time);
        } else {
                eval "use Date::Manip";
                if (!$@) {
                        print UnixDate(ParseDateString($time), "%s");
                }
        }
        '
++ tmid=
++ '[' -gt 1191243600 ']'
/usr/share/heartbeat/utillib.sh: line 145: [: -gt: unary operator expected
++ '[' -lt 1191243600 ']'
/usr/share/heartbeat/utillib.sh: line 147: [: -lt: unary operator expected


Not sure why my logs look like this, is there something I can change?



More information about the Linux-HA mailing list