Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

RMThresholdConfig.c File Reference

#include <netinet/in.h>
#include <ucd-snmp/ucd-snmp-config.h>
#include <ucd-snmp/ucd-snmp-includes.h>
#include <ucd-snmp/ucd-snmp-agent-includes.h>
#include "RMThresholdConfig.h"
#include <string.h>
#include <ucd-snmp/util_funcs.h>
#include "rmClient.h"
#include "utility.h"

Go to the source code of this file.

Defines

#define THRESHOLDCONFIGNEXTINDEX   1
#define THRESHOLDTYPE   5
#define THRESHOLDTESTCONDITION   6
#define THRESHOLDPRECONDITION   7
#define THRESHOLDEVENTSEVERITY   9
#define THRESHOLDCANCELEVENTSEVERITY   10
#define THRESHOLDVALUELOW   11
#define THRESHOLDVALUEHIGH   12
#define THRESHOLDCONFIGREFCOUNT   13
#define THRESHOLDCONFIGSTATUS   14

Functions

void init_RMThresholdConfig (void)
unsigned char * var_RMThresholdConfig (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned char * var_ThresholdConfigTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
int write_thresholdType (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)
int write_thresholdTestCondition (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)
int write_thresholdPreCondition (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)
int write_thresholdEventSeverity (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)
int write_thresholdCancelEventSeverity (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)
int write_thresholdValueLow (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)
int write_thresholdValueHigh (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)
int write_thresholdConfigStatus (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)

Variables

oid RMThresholdConfig_variables_oid [] = { 1,3,6,1,4,1,343,2,15,1,2,2,2 }
variable4 RMThresholdConfig_variables []


Define Documentation

#define THRESHOLDCANCELEVENTSEVERITY   10
 

#define THRESHOLDCONFIGNEXTINDEX   1
 

#define THRESHOLDCONFIGREFCOUNT   13
 

#define THRESHOLDCONFIGSTATUS   14
 

#define THRESHOLDEVENTSEVERITY   9
 

#define THRESHOLDPRECONDITION   7
 

#define THRESHOLDTESTCONDITION   6
 

#define THRESHOLDTYPE   5
 

#define THRESHOLDVALUEHIGH   12
 

#define THRESHOLDVALUELOW   11
 


Function Documentation

void init_RMThresholdConfig void   
 

Definition at line 90 of file RMThresholdConfig.c.

References RMThresholdConfig_variables, and RMThresholdConfig_variables_oid.

Referenced by main.

unsigned char* var_RMThresholdConfig struct variable *    vp,
oid *    name,
size_t *    length,
int    exact,
size_t *    var_len,
WriteMethod **    write_method
 

Definition at line 115 of file RMThresholdConfig.c.

References getNewId, and THRESHOLDCONFIG.

unsigned char* var_ThresholdConfigTable struct variable *    vp,
oid *    name,
size_t *    length,
int    exact,
size_t *    var_len,
WriteMethod **    write_method
 

Definition at line 164 of file RMThresholdConfig.c.

References getHigh32, getInteger32, getUnsigned, getUnsigned64, header_MyGeneric, THRESHOLDCONFIG, THRESHOLDCONFIG_CANCELEVENTSEVERITY, THRESHOLDCONFIG_EVENTSEVERITY, THRESHOLDCONFIG_PRECONDITION, THRESHOLDCONFIG_REFCOUNT, THRESHOLDCONFIG_STATUS, THRESHOLDCONFIG_TESTCONDITION, THRESHOLDCONFIG_TYPE, THRESHOLDCONFIG_VALUE32, write_thresholdCancelEventSeverity, write_thresholdConfigStatus, write_thresholdEventSeverity, write_thresholdPreCondition, write_thresholdTestCondition, write_thresholdType, write_thresholdValueHigh, and write_thresholdValueLow.

int write_thresholdCancelEventSeverity int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 654 of file RMThresholdConfig.c.

References getInteger32, header_writeGeneric, RMThresholdConfig_variables_oid, setInteger32, THRESHOLDCONFIG, and THRESHOLDCONFIG_CANCELEVENTSEVERITY.

Referenced by var_ThresholdConfigTable.

int write_thresholdConfigStatus int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 922 of file RMThresholdConfig.c.

References ACTIVE, CREATEANDGO, CREATEANDWAIT, deleteEntry, DESTROY, getInteger32, header_writeGeneric, newEntry, NOTINSERVICE, NOTREADY, RMThresholdConfig_variables_oid, setInteger32, THRESHOLDCONFIG, and THRESHOLDCONFIG_STATUS.

Referenced by var_ThresholdConfigTable.

int write_thresholdEventSeverity int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 566 of file RMThresholdConfig.c.

References getInteger32, header_writeGeneric, RMThresholdConfig_variables_oid, setInteger32, THRESHOLDCONFIG, and THRESHOLDCONFIG_EVENTSEVERITY.

Referenced by var_ThresholdConfigTable.

int write_thresholdPreCondition int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 476 of file RMThresholdConfig.c.

References getInteger32, header_writeGeneric, RMThresholdConfig_variables_oid, setInteger32, THRESHOLDCONFIG, and THRESHOLDCONFIG_PRECONDITION.

Referenced by var_ThresholdConfigTable.

int write_thresholdTestCondition int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 388 of file RMThresholdConfig.c.

References getInteger32, header_writeGeneric, RMThresholdConfig_variables_oid, setInteger32, THRESHOLDCONFIG, and THRESHOLDCONFIG_TESTCONDITION.

Referenced by var_ThresholdConfigTable.

int write_thresholdType int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 301 of file RMThresholdConfig.c.

References getInteger32, header_writeGeneric, RMThresholdConfig_variables_oid, setInteger32, THRESHOLDCONFIG, and THRESHOLDCONFIG_TYPE.

Referenced by var_ThresholdConfigTable.

int write_thresholdValueHigh int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 830 of file RMThresholdConfig.c.

References getUnsigned64, header_writeGeneric, RMThresholdConfig_variables_oid, setHigh32, setUnsigned64, THRESHOLDCONFIG, and THRESHOLDCONFIG_VALUE64.

Referenced by var_ThresholdConfigTable.

int write_thresholdValueLow int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 742 of file RMThresholdConfig.c.

References getUnsigned, header_writeGeneric, RMThresholdConfig_variables_oid, setUnsigned, THRESHOLDCONFIG, and THRESHOLDCONFIG_VALUE32.

Referenced by var_ThresholdConfigTable.


Variable Documentation

struct variable4 RMThresholdConfig_variables[]
 

Initial value:

 {

#define THRESHOLDCONFIGNEXTINDEX
  { THRESHOLDCONFIGNEXTINDEX, ASN_UNSIGNED  , RONLY , var_RMThresholdConfig, 1, { 1 } },
#define THRESHOLDTYPE
  { THRESHOLDTYPE       , ASN_INTEGER   , RWRITE, var_ThresholdConfigTable, 3, { 2,1,2 } },
#define THRESHOLDTESTCONDITION
  { THRESHOLDTESTCONDITION, ASN_INTEGER   , RWRITE, var_ThresholdConfigTable, 3, { 2,1,3 } },
#define THRESHOLDPRECONDITION
  { THRESHOLDPRECONDITION, ASN_INTEGER   , RWRITE, var_ThresholdConfigTable, 3, { 2,1,4 } },
#define THRESHOLDEVENTSEVERITY
  { THRESHOLDEVENTSEVERITY, ASN_INTEGER   , RWRITE, var_ThresholdConfigTable, 3, { 2,1,5 } },
#define THRESHOLDCANCELEVENTSEVERITY
  { THRESHOLDCANCELEVENTSEVERITY, ASN_INTEGER   , RWRITE, var_ThresholdConfigTable, 3, { 2,1,6 } },
#define THRESHOLDVALUELOW
  { THRESHOLDVALUELOW   , ASN_UNSIGNED  , RWRITE, var_ThresholdConfigTable, 3, { 2,1,7 } },
#define THRESHOLDVALUEHIGH
  { THRESHOLDVALUEHIGH  , ASN_UNSIGNED  , RWRITE, var_ThresholdConfigTable, 3, { 2,1,8 } },
#define THRESHOLDCONFIGREFCOUNT
  { THRESHOLDCONFIGREFCOUNT, ASN_INTEGER   , RONLY , var_ThresholdConfigTable, 3, { 2,1,9 } },
#define THRESHOLDCONFIGSTATUS
  { THRESHOLDCONFIGSTATUS, ASN_INTEGER   , RWRITE, var_ThresholdConfigTable, 3, { 2,1,10 } },

}

Definition at line 58 of file RMThresholdConfig.c.

Referenced by init_RMThresholdConfig.

oid RMThresholdConfig_variables_oid[] = { 1,3,6,1,4,1,343,2,15,1,2,2,2 }
 

Definition at line 48 of file RMThresholdConfig.c.

Referenced by init_RMThresholdConfig, write_thresholdCancelEventSeverity, write_thresholdConfigStatus, write_thresholdEventSeverity, write_thresholdPreCondition, write_thresholdTestCondition, write_thresholdType, write_thresholdValueHigh, and write_thresholdValueLow.


Generated on Tue Sep 10 16:46:34 2002 for ResourceMonitorSNMPSubagent by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002