Print this page
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>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/libfmd_adm/common/fmd_adm.h
          +++ new/usr/src/lib/fm/libfmd_adm/common/fmd_adm.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
       27 +/*
       28 + * Copyright 2018 Nexenta Systems, Inc.
       29 + */
       30 +
  27   31  #ifndef _FMD_ADM_H
  28   32  #define _FMD_ADM_H
  29   33  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   34  #include <fm/fmd_api.h>
  33   35  
  34   36  #ifdef  __cplusplus
  35   37  extern "C" {
  36   38  #endif
  37   39  
  38   40  /*
  39   41   * Fault Management Daemon Administrative Interfaces
  40   42   *
  41   43   * Note: The contents of this file are private to the implementation of the
↓ open down ↓ 45 lines elided ↑ open up ↑
  87   89          uint_t ari_flags;               /* flags (see below) */
  88   90  } fmd_adm_rsrcinfo_t;
  89   91  
  90   92  #define FMD_ADM_RSRC_FAULTY     0x1     /* resource is faulty */
  91   93  #define FMD_ADM_RSRC_UNUSABLE   0x2     /* resource is unusable */
  92   94  #define FMD_ADM_RSRC_INVISIBLE  0x4     /* resource is not directly visible */
  93   95  
  94   96  typedef struct fmd_adm_caseinfo {
  95   97          const char *aci_uuid;
  96   98          const char *aci_code;
       99 +        const char *aci_type;
      100 +        const char *aci_severity;
  97  101          const char *aci_url;
      102 +        const char *aci_desc;
      103 +        const char *aci_fmri;
  98  104          nvlist_t *aci_event;
  99  105  } fmd_adm_caseinfo_t;
 100  106  
 101  107  typedef int fmd_adm_rsrc_f(const fmd_adm_rsrcinfo_t *, void *);
 102  108  typedef int fmd_adm_case_f(const fmd_adm_caseinfo_t *, void *);
 103  109  
 104  110  extern int fmd_adm_rsrc_count(fmd_adm_t *, int, uint32_t *);
 105  111  extern int fmd_adm_rsrc_iter(fmd_adm_t *, int, fmd_adm_rsrc_f *, void *);
 106  112  extern int fmd_adm_rsrc_flush(fmd_adm_t *, const char *);
 107  113  extern int fmd_adm_rsrc_repaired(fmd_adm_t *, const char *);
↓ open down ↓ 36 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX