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

RMThresholdControl.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 "RMThresholdControl.h"
#include <string.h>
#include <ucd-snmp/util_funcs.h>
#include "utility.h"
#include "rmClient.h"

Go to the source code of this file.

Defines

#define THRESHOLDCONTROLNEXTINDEX   1
#define THRESHOLDTOLERANCEVALUELOW   5
#define THRESHOLDTOLERANCEVALUEHIGH   6
#define THRESHOLDSAMPLETIMES   7
#define THRESHOLDLOGRATE   8
#define THRESHOLDCONTROLREFCOUNT   9
#define THRESHOLDCONTROLSTATUS   10

Functions

void init_RMThresholdControl (void)
unsigned char * var_RMThresholdControl (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned char * var_ThresholdControlTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
int write_thresholdToleranceValueLow (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_thresholdToleranceValueHigh (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_thresholdSampleTimes (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_thresholdLogRate (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_thresholdControlStatus (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 RMThresholdControl_variables_oid [] = { 1,3,6,1,4,1,343,2,15,1,2,3,2 }
variable4 RMThresholdControl_variables []


Define Documentation

#define THRESHOLDCONTROLNEXTINDEX   1
 

#define THRESHOLDCONTROLREFCOUNT   9
 

#define THRESHOLDCONTROLSTATUS   10
 

#define THRESHOLDLOGRATE   8
 

#define THRESHOLDSAMPLETIMES   7
 

#define THRESHOLDTOLERANCEVALUEHIGH   6
 

#define THRESHOLDTOLERANCEVALUELOW   5
 


Function Documentation

void init_RMThresholdControl void   
 

Definition at line 83 of file RMThresholdControl.c.

References RMThresholdControl_variables, and RMThresholdControl_variables_oid.

Referenced by main.

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

Definition at line 108 of file RMThresholdControl.c.

References getNewId, and THRESHOLDCONTROL.

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

Definition at line 158 of file RMThresholdControl.c.

References getHigh32, getInteger32, getUnsigned, getUnsigned64, header_MyGeneric, THRESHOLDCONTROL, THRESHOLDCONTROL_LOGRATE, THRESHOLDCONTROL_REFCOUNT, THRESHOLDCONTROL_SAMPLETIME, THRESHOLDCONTROL_STATUS, THRESHOLDCONTROL_TOLERANCE32, THRESHOLDCONTROL_TOLERANCE64, write_thresholdControlStatus, write_thresholdLogRate, write_thresholdSampleTimes, write_thresholdToleranceValueHigh, and write_thresholdToleranceValueLow.

int write_thresholdControlStatus 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 624 of file RMThresholdControl.c.

References ACTIVE, CREATEANDGO, CREATEANDWAIT, deleteEntry, DESTROY, getInteger32, header_writeGeneric, newEntry, NOTINSERVICE, NOTREADY, RMThresholdControl_variables_oid, setInteger32, THRESHOLDCONTROL, and THRESHOLDCONTROL_STATUS.

Referenced by var_ThresholdControlTable.

int write_thresholdLogRate 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 536 of file RMThresholdControl.c.

References getUnsigned, header_writeGeneric, RMThresholdControl_variables_oid, setUnsigned, THRESHOLDCONTROL, and THRESHOLDCONTROL_LOGRATE.

Referenced by var_ThresholdControlTable.

int write_thresholdSampleTimes 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 448 of file RMThresholdControl.c.

References getUnsigned, header_writeGeneric, RMThresholdControl_variables_oid, setUnsigned, THRESHOLDCONTROL, and THRESHOLDCONTROL_SAMPLETIME.

Referenced by var_ThresholdControlTable.

int write_thresholdToleranceValueHigh 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 357 of file RMThresholdControl.c.

References getUnsigned64, header_writeGeneric, RMThresholdControl_variables_oid, setHigh32, setUnsigned64, THRESHOLDCONTROL, and THRESHOLDCONTROL_TOLERANCE64.

Referenced by var_ThresholdControlTable.

int write_thresholdToleranceValueLow 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 269 of file RMThresholdControl.c.

References getUnsigned, header_writeGeneric, RMThresholdControl_variables_oid, setUnsigned, THRESHOLDCONTROL, and THRESHOLDCONTROL_TOLERANCE32.

Referenced by var_ThresholdControlTable.


Variable Documentation

struct variable4 RMThresholdControl_variables[]
 

Initial value:

 {

#define THRESHOLDCONTROLNEXTINDEX
  { THRESHOLDCONTROLNEXTINDEX, ASN_UNSIGNED  , RONLY , var_RMThresholdControl, 1, { 1 } },
#define THRESHOLDTOLERANCEVALUELOW
  { THRESHOLDTOLERANCEVALUELOW, ASN_UNSIGNED  , RWRITE, var_ThresholdControlTable, 3, { 2,1,2 } },
#define THRESHOLDTOLERANCEVALUEHIGH
  { THRESHOLDTOLERANCEVALUEHIGH, ASN_UNSIGNED  , RWRITE, var_ThresholdControlTable, 3, { 2,1,3 } },
#define THRESHOLDSAMPLETIMES
  { THRESHOLDSAMPLETIMES, ASN_UNSIGNED  , RWRITE, var_ThresholdControlTable, 3, { 2,1,4 } },
#define THRESHOLDLOGRATE
  { THRESHOLDLOGRATE    , ASN_TIMETICKS , RWRITE, var_ThresholdControlTable, 3, { 2,1,5 } },
#define THRESHOLDCONTROLREFCOUNT
  { THRESHOLDCONTROLREFCOUNT, ASN_INTEGER   , RONLY , var_ThresholdControlTable, 3, { 2,1,6 } },
#define THRESHOLDCONTROLSTATUS
  { THRESHOLDCONTROLSTATUS, ASN_INTEGER   , RWRITE, var_ThresholdControlTable, 3, { 2,1,7 } },

}

Definition at line 57 of file RMThresholdControl.c.

Referenced by init_RMThresholdControl.

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

Definition at line 47 of file RMThresholdControl.c.

Referenced by init_RMThresholdControl, write_thresholdControlStatus, write_thresholdLogRate, write_thresholdSampleTimes, write_thresholdToleranceValueHigh, and write_thresholdToleranceValueLow.


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