Print this page
NEX-17796 libfmd_snmp performance is awful
Reviewed by: Cynthia Eastham <cynthia.eastham@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
NEX-17772 libfmd_snmp should learn about new FmProblem fields
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
*** 22,71 ****
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PROBLEM_H
#define _PROBLEM_H
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
! #include <libuutil.h>
#include <libnvpair.h>
typedef struct sunFmProblem_data {
int d_valid;
uu_avl_node_t d_uuid_avl;
const char *d_aci_uuid;
const char *d_aci_code;
const char *d_aci_url;
const char *d_diag_engine;
struct timeval d_diag_time;
! ulong_t d_nsuspects;
nvlist_t **d_suspects;
nvlist_t *d_aci_event;
uint8_t *d_statuses;
} sunFmProblem_data_t;
- typedef struct sunFmProblem_update_ctx {
- const char *uc_host;
- uint32_t uc_prog;
- int uc_version;
- const char *uc_index;
- uint32_t uc_type;
- } sunFmProblem_update_ctx_t;
-
typedef nvlist_t sunFmFaultEvent_data_t;
typedef uint8_t sunFmFaultStatus_data_t;
int sunFmProblemTable_init(void);
- int sunFmFaultEventTable_init(void);
#ifdef __cplusplus
}
#endif
--- 22,69 ----
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+ /*
+ * Copyright 2018 Nexenta Systems, Inc.
+ */
+
#ifndef _PROBLEM_H
#define _PROBLEM_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
!
#include <libnvpair.h>
+ #include <libuutil.h>
typedef struct sunFmProblem_data {
int d_valid;
uu_avl_node_t d_uuid_avl;
const char *d_aci_uuid;
const char *d_aci_code;
+ const char *d_aci_type;
+ const char *d_aci_severity;
const char *d_aci_url;
+ const char *d_aci_desc;
+ const char *d_aci_fmri;
const char *d_diag_engine;
struct timeval d_diag_time;
! uint32_t d_nsuspects;
nvlist_t **d_suspects;
nvlist_t *d_aci_event;
uint8_t *d_statuses;
} sunFmProblem_data_t;
typedef nvlist_t sunFmFaultEvent_data_t;
typedef uint8_t sunFmFaultStatus_data_t;
int sunFmProblemTable_init(void);
#ifdef __cplusplus
}
#endif