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

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

Go to the source code of this file.

Defines

#define RMVERSIONSTRING   1
#define RMSUBSYSTEMCOUNT   2
#define SUBSYSTEMUUID   6
#define SUBSYSTEMNAME   7
#define SUBSYSTEMDESCRIPTION   8
#define SUBSYSTEMRESOURCECOUNT   9
#define SUBSYSTEMSTATISTICSCOUNT   10
#define RESOURCENAME   14
#define RESOURCEDESCRIPTION   15
#define STATISTICNAME   19
#define STATISTICDESCRIPTION   20
#define STATISTICUNIT   21
#define STATISTICTYPE   22
#define STATISTICSIZE   23
#define STATISTICSCALE   24
#define STATISTICGAUGEUPPERBOUNDLOW   25
#define STATISTICGAUGEUPPERBOUNDHIGH   26
#define STATISTICCOUNTERRESETVALUELOW   27
#define STATISTICCOUNTERRESETVALUEHIGH   28
#define STATISTICCOUNTERRESET   29
#define PLUGINUUID   30
#define PLUGINNAME   31

Functions

void init_RMSystemInfo (void)
unsigned char * var_RMSystemInfo (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned char * var_RMSubsystemInfoTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned char * var_RMResourceInfoTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned char * var_RMStatisticInfoTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned char * var_RMDataCapturePluginInfoTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned long findStatisticID (oid *name, size_t name_len)
int write_statisticCounterResetValueLow (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_statisticCounterResetValueHigh (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_statisticCounterReset (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 RMSystemInfo_variables_oid [] = { 1,3,6,1,4,1,343,2,15,1,2,1 }
variable4 RMSystemInfo_variables []


Define Documentation

#define PLUGINNAME   31
 

#define PLUGINUUID   30
 

#define RESOURCEDESCRIPTION   15
 

#define RESOURCENAME   14
 

#define RMSUBSYSTEMCOUNT   2
 

#define RMVERSIONSTRING   1
 

#define STATISTICCOUNTERRESET   29
 

#define STATISTICCOUNTERRESETVALUEHIGH   28
 

#define STATISTICCOUNTERRESETVALUELOW   27
 

#define STATISTICDESCRIPTION   20
 

#define STATISTICGAUGEUPPERBOUNDHIGH   26
 

#define STATISTICGAUGEUPPERBOUNDLOW   25
 

#define STATISTICNAME   19
 

#define STATISTICSCALE   24
 

#define STATISTICSIZE   23
 

#define STATISTICTYPE   22
 

#define STATISTICUNIT   21
 

#define SUBSYSTEMDESCRIPTION   8
 

#define SUBSYSTEMNAME   7
 

#define SUBSYSTEMRESOURCECOUNT   9
 

#define SUBSYSTEMSTATISTICSCOUNT   10
 

#define SUBSYSTEMUUID   6
 


Function Documentation

unsigned long findStatisticID oid *    name,
size_t    name_len
 

Definition at line 531 of file RMSystemInfo.c.

References getNextId, getUnsigned, STATISTICINFO, STATISTICINFO_ID, STATISTICINFO_RESOURCEID, and STATISTICINFO_SUBSYSTEMID.

Referenced by write_statisticCounterReset, write_statisticCounterResetValueHigh, and write_statisticCounterResetValueLow.

void init_RMSystemInfo void   
 

Definition at line 114 of file RMSystemInfo.c.

References RMSystemInfo_variables, and RMSystemInfo_variables_oid.

Referenced by main.

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

Definition at line 464 of file RMSystemInfo.c.

References DATACAPTUREPLUGININFO, DATACAPTUREPLUGININFO_NAME, DATACAPTUREPLUGININFO_UUID, getCount, getString, and getUUIDString.

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

Definition at line 276 of file RMSystemInfo.c.

References getString, header_resourceInfo, RESORUCEINFO, RESORUCEINFO_NAME, and RESOURCEINFO_DESCRIPTION.

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

Definition at line 337 of file RMSystemInfo.c.

References getHigh32, getInteger32, getString, getUnsigned, getUnsigned64, header_statisticInfo, STATISTICINFO, STATISTICINFO_COUNTERRESETVALUE32, STATISTICINFO_COUNTERRESETVALUE64, STATISTICINFO_DESCRIPTION, STATISTICINFO_GAUGEUPPERBOUND32, STATISTICINFO_GAUGEUPPERBOUND64, STATISTICINFO_NAME, STATISTICINFO_SCALE, STATISTICINFO_SIZE, STATISTICINFO_TYPE, STATISTICINFO_UNITS, write_statisticCounterReset, write_statisticCounterResetValueHigh, and write_statisticCounterResetValueLow.

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

Definition at line 194 of file RMSystemInfo.c.

References getString, getUnsigned, getUUIDString, header_MyGeneric, SUBSYSTEMINFO, SUBSYSTEMINFO_DESCRIPTION, SUBSYSTEMINFO_NAME, SUBSYSTEMINFO_RESOURCECOUNT, SUBSYSTEMINFO_STATISTICCOUNT, and SUBSYSTEMINFO_UUID.

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

Definition at line 139 of file RMSystemInfo.c.

References getCount, getRMVersion, and SUBSYSTEMINFO.

int write_statisticCounterReset 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 721 of file RMSystemInfo.c.

References findStatisticID, setInteger32, STATISTICINFO, and STATISTICINFO_COUNTERRESET.

Referenced by var_RMStatisticInfoTable.

int write_statisticCounterResetValueHigh 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 640 of file RMSystemInfo.c.

References findStatisticID, getUnsigned64, setHigh32, setUnsigned64, STATISTICINFO, and STATISTICINFO_COUNTERRESETVALUE64.

Referenced by var_RMStatisticInfoTable.

int write_statisticCounterResetValueLow 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 559 of file RMSystemInfo.c.

References findStatisticID, getUnsigned, setUnsigned, STATISTICINFO, and STATISTICINFO_COUNTERRESETVALUE32.

Referenced by var_RMStatisticInfoTable.


Variable Documentation

struct variable4 RMSystemInfo_variables[]
 

Definition at line 57 of file RMSystemInfo.c.

Referenced by init_RMSystemInfo.

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

Definition at line 47 of file RMSystemInfo.c.

Referenced by init_RMSystemInfo.


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