Project

General

Profile

Actions

Bug #4728

open

fix TIMESTAMP formatting in FM code (usr/src/cmd/fm)

Added by Serghei Samsi over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2014-04-04
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Initially the problem was seen as empty TIMESTAMP values in e-mails sent from service/fault-management/smtp-notify agent:

HOSTNAME: u205_x
TIMESTAMP:
FMRI: svc:/network/ftp:default
FROM-STATE: online
TO-STATE: disabled
DESCRIPTION: The indicated service has transitioned to the disabled state
REASON: a disable was requested

Colin Seymour of ORACLE pointed that TIMESTAMP values returns to expected if LANG=C environment variable is set. He also found the problem is due to strftime() insufficient buffer size in smtp-notify code.

While writing small fmevent client, I've observed the same problem in other parts of FM code and the cause seems to be identical.

No data to display

Actions

Also available in: Atom PDF