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

RMMonitors.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 "RMMonitors.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 MONITORNEXTINDEX   1
#define MONITORUUID   5
#define MONITORCONTROLINDEX   6
#define MONITORCONFIGINDEX   7
#define MONITORLOCATION   8
#define MONITORTYPE   9
#define MONITORSUBSYSTEMID   10
#define MONITORRESOUCEID   11
#define MONITORSTATISTICID   12
#define MONITORLASTVALUELOW   13
#define MONITORLASTVALUEHIGH   14
#define MONITORSTARTTIME   15
#define MONITORSTOPTIME   16
#define MONITORTHRESHOLDLASTEVENTTIME   17
#define MONITORHIGHWATERMARKVALUELOW   18
#define MONITORHIGHWATERMARKVALUEHIGH   19
#define MONITORLOWWATERMARKVALUELOW   20
#define MONITORLOWWATERMARKVALUEHIGH   21
#define MONITORHIGHWATERMARKTIME   22
#define MONITORLOWWATERMARKTIME   23
#define MONITORLEAKYBUCKETLASTEVENTTIME   24
#define MONITORLEAKYBUCKETVALUELOW   25
#define MONITORLEAKYBUCKETVALUEHIGH   26
#define MONITORNOTIFICATIONSTATUS   27
#define MONITORSTATUS   28
#define MONITORSNMPTRAP   29
#define MONITORCOMMAND   30

Functions

void init_RMMonitors (void)
unsigned char * var_RMMonitors (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned char * var_MonitorTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
int write_monitorControlIndex (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_monitorConfigIndex (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_monitorSNMPTrap (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_monitorCommand (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 RMMonitors_variables_oid [] = { 1,3,6,1,4,1,343,2,15,1,2,4 }
variable4 RMMonitors_variables []


Define Documentation

#define MONITORCOMMAND   30
 

#define MONITORCONFIGINDEX   7
 

#define MONITORCONTROLINDEX   6
 

#define MONITORHIGHWATERMARKTIME   22
 

#define MONITORHIGHWATERMARKVALUEHIGH   19
 

#define MONITORHIGHWATERMARKVALUELOW   18
 

#define MONITORLASTVALUEHIGH   14
 

#define MONITORLASTVALUELOW   13
 

#define MONITORLEAKYBUCKETLASTEVENTTIME   24
 

#define MONITORLEAKYBUCKETVALUEHIGH   26
 

#define MONITORLEAKYBUCKETVALUELOW   25
 

#define MONITORLOCATION   8
 

#define MONITORLOWWATERMARKTIME   23
 

#define MONITORLOWWATERMARKVALUEHIGH   21
 

#define MONITORLOWWATERMARKVALUELOW   20
 

#define MONITORNEXTINDEX   1
 

#define MONITORNOTIFICATIONSTATUS   27
 

#define MONITORRESOUCEID   11
 

#define MONITORSNMPTRAP   29
 

#define MONITORSTARTTIME   15
 

#define MONITORSTATISTICID   12
 

#define MONITORSTATUS   28
 

#define MONITORSTOPTIME   16
 

#define MONITORSUBSYSTEMID   10
 

#define MONITORTHRESHOLDLASTEVENTTIME   17
 

#define MONITORTYPE   9
 

#define MONITORUUID   5
 


Function Documentation

void init_RMMonitors void   
 

Definition at line 123 of file RMMonitors.c.

References RMMonitors_variables, and RMMonitors_variables_oid.

Referenced by main.

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

Definition at line 197 of file RMMonitors.c.

References getHigh32, getInteger32, getUnsigned, getUnsigned64, getUUIDString, header_MyGeneric, MONITOR, MONITOR_COMMAND, MONITOR_CONFIGID, MONITOR_CONTROLID, MONITOR_LASTVALUE32, MONITOR_LASTVALUE64, MONITOR_LEAKYBUCKETLASTEVENTTIME, MONITOR_LEAKYBUCKETLEVEL32, MONITOR_LEAKYBUCKETLEVEL64, MONITOR_LOCATION, MONITOR_NOTIFICATIONPAUSED, MONITOR_RESORUCEID, MONITOR_SNMPTRAP, MONITOR_STARTTIME, MONITOR_STATISTICID, MONITOR_STATUS, MONITOR_STOPTIME, MONITOR_SUBSYSTEMID, MONITOR_THRESHOLDLASTEVENTTIME, MONITOR_TYPE, MONITOR_UUID, MONITOR_WATERMARKHIGH32, MONITOR_WATERMARKHIGH64, MONITOR_WATERMARKHIGHTIME, MONITOR_WATERMARKLOW32, MONITOR_WATERMARKLOW64, MONITOR_WATERMARKLOWTIME, write_monitorCommand, write_monitorConfigIndex, write_monitorControlIndex, and write_monitorSNMPTrap.

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

Definition at line 148 of file RMMonitors.c.

References getNewId, and MONITOR.

int write_monitorCommand 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 RMMonitors.c.

References CREATE_MONITOR, DELETE_MONITOR, deleteEntry, header_writeGeneric, MONITOR, MONITOR_COMMAND, NEW_MONITORENTRY, newEntry, RESET_NOTIFICATION, RMMonitors_variables_oid, and setInteger32.

Referenced by var_MonitorTable.

int write_monitorConfigIndex 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 544 of file RMMonitors.c.

References getUnsigned, header_writeGeneric, MONITOR, MONITOR_CONFIGID, RMMonitors_variables_oid, and setUnsigned.

Referenced by var_MonitorTable.

int write_monitorControlIndex 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 456 of file RMMonitors.c.

References getUnsigned, header_writeGeneric, MONITOR, MONITOR_CONTROLID, RMMonitors_variables_oid, and setUnsigned.

Referenced by var_MonitorTable.

int write_monitorSNMPTrap 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 632 of file RMMonitors.c.

References getInteger32, header_writeGeneric, MONITOR, MONITOR_SNMPTRAP, RMMonitors_variables_oid, and setInteger32.

Referenced by var_MonitorTable.


Variable Documentation

struct variable4 RMMonitors_variables[]
 

Definition at line 57 of file RMMonitors.c.

Referenced by init_RMMonitors.

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

Definition at line 47 of file RMMonitors.c.

Referenced by init_RMMonitors, write_monitorCommand, write_monitorConfigIndex, write_monitorControlIndex, and write_monitorSNMPTrap.


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