summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c
diff options
context:
space:
mode:
authorstephh <none@none>2008-08-02 03:26:27 -0700
committerstephh <none@none>2008-08-02 03:26:27 -0700
commit25c6ff4b77fcddf4097ce78a8277275ca603b46c (patch)
tree418fc0cf406815a0bf23f782b349ac0653121a77 /usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c
parent5d2225f6bb395dbd38b87e1f0af3ce4afbca42f3 (diff)
downloadillumos-joyent-25c6ff4b77fcddf4097ce78a8277275ca603b46c.tar.gz
PSARC/2008/487 Repair Observability changes
6534561 need means of finding existing fault state of a resource 6637804 fmd should distinguish between "repaired" and "acquitted" resources 6637812 fmd_nvl_fmri_has_fault() required to report if a given fault has been diagnosed on a resourtce/fru 6663744 send list.updated events when an individual suspect in a suspect list is repaired 6682295 need fmd_nvl_fmri_replaced() functionality 6686317 extend fmd case state to include final "repair responses complete" state 6712074 need scheme/topo interface to report full service state of a resource 6720169 add location member to the sun-fm-mib
Diffstat (limited to 'usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c')
-rw-r--r--usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c b/usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c
index 36025c14cb..08c421915c 100644
--- a/usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c
+++ b/usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c
@@ -390,7 +390,8 @@ syslog_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class)
syslog_pointer = dgettext(SYSLOG_DOMAIN, SYSLOG_POINTER);
syslog_ctl.pri &= LOG_FACMASK;
- if (strcmp(class, FM_LIST_REPAIRED_CLASS) == 0)
+ if (strcmp(class, FM_LIST_RESOLVED_CLASS) == 0 ||
+ strcmp(class, FM_LIST_REPAIRED_CLASS) == 0)
syslog_ctl.pri |= LOG_NOTICE;
else
syslog_ctl.pri |= LOG_ERR;
@@ -549,6 +550,7 @@ _fmd_init(fmd_hdl_t *hdl)
fmd_prop_free_string(hdl, rootdir);
fmd_hdl_subscribe(hdl, FM_LIST_SUSPECT_CLASS);
fmd_hdl_subscribe(hdl, FM_LIST_REPAIRED_CLASS);
+ fmd_hdl_subscribe(hdl, FM_LIST_RESOLVED_CLASS);
}
void