#include <string.h>#include "openserObjects.h"#include "../../dprint.h"#include "../../statistics.h"#include "../../config.h"#include "snmpstats_globals.h"#include "utilities.h"#include "alarm_checks.h"

Go to the source code of this file.
Functions | |
| int | get_dialog_major_threshold (void) |
| int | get_dialog_minor_threshold (void) |
| int | get_msg_queue_major_threshold (void) |
| int | get_msg_queue_minor_threshold (void) |
| int | handle_openserCurNumDialogs (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserCurNumDialogsInProgress (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserCurNumDialogsInSetup (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserDialogLimitAlarmStatus (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserDialogLimitMajorAlarm (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserDialogLimitMajorThreshold (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserDialogLimitMinorAlarm (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserDialogLimitMinorThreshold (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserDialogUsageState (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserMsgQueueDepth (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserMsgQueueDepthAlarmStatus (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserMsgQueueDepthMajorAlarm (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserMsgQueueDepthMinorAlarm (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserMsgQueueMajorThreshold (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserMsgQueueMinorThreshold (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| int | handle_openserTotalNumFailedDialogSetups (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) |
| void | init_openserObjects (void) |
| int | set_dlg_major_threshold (modparam_t type, void *val) |
| int | set_dlg_minor_threshold (modparam_t type, void *val) |
| static int | set_if_valid_threshold (modparam_t type, void *val, char *varStr, int *newVal) |
| int | set_queue_major_threshold (modparam_t type, void *val) |
| int | set_queue_minor_threshold (modparam_t type, void *val) |
Variables | |
| static int | dialog_major_threshold = -1 |
| static int | dialog_minor_threshold = -1 |
| static int | msgQueueMajorThreshold = -1 |
| static int | msgQueueMinorThreshold = -1 |
| int get_dialog_major_threshold | ( | void | ) |
Definition at line 679 of file openserObjects.c.
References dialog_major_threshold.
Referenced by run_alarm_check().
| int get_dialog_minor_threshold | ( | void | ) |
Definition at line 674 of file openserObjects.c.
References dialog_minor_threshold.
Referenced by run_alarm_check().
| int get_msg_queue_major_threshold | ( | void | ) |
Definition at line 669 of file openserObjects.c.
References msgQueueMajorThreshold.
Referenced by run_alarm_check().
| int get_msg_queue_minor_threshold | ( | void | ) |
Definition at line 664 of file openserObjects.c.
References msgQueueMinorThreshold.
Referenced by run_alarm_check().
| int handle_openserCurNumDialogs | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
| int handle_openserCurNumDialogsInProgress | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
| int handle_openserCurNumDialogsInSetup | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
| int handle_openserDialogLimitAlarmStatus | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
Definition at line 531 of file openserObjects.c.
References check_dialog_alarm(), dialog_major_threshold, dialog_minor_threshold, TC_ALARM_STATUS_MAJOR, and TC_ALARM_STATUS_MINOR.
| int handle_openserDialogLimitMajorAlarm | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
Definition at line 583 of file openserObjects.c.
References check_dialog_alarm(), dialog_major_threshold, TC_ALARM_STATE_CLEAR, and TC_ALARM_STATE_MAJOR.
| int handle_openserDialogLimitMajorThreshold | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
| int handle_openserDialogLimitMinorAlarm | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
Definition at line 562 of file openserObjects.c.
References check_dialog_alarm(), dialog_minor_threshold, TC_ALARM_STATE_CLEAR, and TC_ALARM_STATE_MINOR.
| int handle_openserDialogLimitMinorThreshold | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
| int handle_openserDialogUsageState | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
Definition at line 498 of file openserObjects.c.
References dialog_major_threshold, get_statistic(), TC_USAGE_STATE_ACTIVE, TC_USAGE_STATE_BUSY, TC_USAGE_STATE_IDLE, and TC_USAGE_STATE_UNKNOWN.
| int handle_openserMsgQueueDepth | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
| int handle_openserMsgQueueDepthAlarmStatus | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
Definition at line 328 of file openserObjects.c.
References check_msg_queue_alarm(), msgQueueMajorThreshold, msgQueueMinorThreshold, TC_ALARM_STATUS_MAJOR, and TC_ALARM_STATUS_MINOR.
| int handle_openserMsgQueueDepthMajorAlarm | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
Definition at line 377 of file openserObjects.c.
References check_msg_queue_alarm(), msgQueueMajorThreshold, TC_ALARM_STATE_CLEAR, and TC_ALARM_STATE_MAJOR.
| int handle_openserMsgQueueDepthMinorAlarm | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
Definition at line 357 of file openserObjects.c.
References check_msg_queue_alarm(), msgQueueMinorThreshold, TC_ALARM_STATE_CLEAR, and TC_ALARM_STATE_MINOR.
| int handle_openserMsgQueueMajorThreshold | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
| int handle_openserMsgQueueMinorThreshold | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
| int handle_openserTotalNumFailedDialogSetups | ( | netsnmp_mib_handler * | handler, | |
| netsnmp_handler_registration * | reginfo, | |||
| netsnmp_agent_request_info * | reqinfo, | |||
| netsnmp_request_info * | requests | |||
| ) |
| void init_openserObjects | ( | void | ) |
Definition at line 59 of file openserObjects.c.
References handle_openserCurNumDialogs, handle_openserCurNumDialogsInProgress, handle_openserCurNumDialogsInSetup, handle_openserDialogLimitAlarmStatus, handle_openserDialogLimitMajorAlarm, handle_openserDialogLimitMajorThreshold, handle_openserDialogLimitMinorAlarm, handle_openserDialogLimitMinorThreshold, handle_openserDialogUsageState, handle_openserMsgQueueDepth, handle_openserMsgQueueDepthAlarmStatus, handle_openserMsgQueueDepthMajorAlarm, handle_openserMsgQueueDepthMinorAlarm, handle_openserMsgQueueMajorThreshold, handle_openserMsgQueueMinorThreshold, handle_openserTotalNumFailedDialogSetups, and OPENSER_OID.
Referenced by initialize_agentx().
| int set_dlg_major_threshold | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the dialog major threshold
Definition at line 659 of file openserObjects.c.
References dialog_major_threshold, and set_if_valid_threshold().
| int set_dlg_minor_threshold | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the dialog minor threshold
Definition at line 652 of file openserObjects.c.
References dialog_minor_threshold, and set_if_valid_threshold().
| static int set_if_valid_threshold | ( | modparam_t | type, | |
| void * | val, | |||
| char * | varStr, | |||
| int * | newVal | |||
| ) | [static] |
Definition at line 606 of file openserObjects.c.
References INT_PARAM, and LM_ERR.
Referenced by set_dlg_major_threshold(), set_dlg_minor_threshold(), set_queue_major_threshold(), and set_queue_minor_threshold().
| int set_queue_major_threshold | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the Msg Queue Depth Major Threshold
Definition at line 645 of file openserObjects.c.
References msgQueueMajorThreshold, and set_if_valid_threshold().
| int set_queue_minor_threshold | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the Msg Queue Depth Minor Threshold
Definition at line 638 of file openserObjects.c.
References msgQueueMinorThreshold, and set_if_valid_threshold().
int dialog_major_threshold = -1 [static] |
Definition at line 276 of file openserObjects.c.
Referenced by get_dialog_major_threshold(), handle_openserDialogLimitAlarmStatus(), handle_openserDialogLimitMajorAlarm(), handle_openserDialogLimitMajorThreshold(), handle_openserDialogUsageState(), run_alarm_check(), and set_dlg_major_threshold().
int dialog_minor_threshold = -1 [static] |
Definition at line 275 of file openserObjects.c.
Referenced by get_dialog_minor_threshold(), handle_openserDialogLimitAlarmStatus(), handle_openserDialogLimitMinorAlarm(), handle_openserDialogLimitMinorThreshold(), run_alarm_check(), and set_dlg_minor_threshold().
int msgQueueMajorThreshold = -1 [static] |
Definition at line 279 of file openserObjects.c.
Referenced by get_msg_queue_major_threshold(), handle_openserMsgQueueDepthAlarmStatus(), handle_openserMsgQueueDepthMajorAlarm(), handle_openserMsgQueueMajorThreshold(), and set_queue_major_threshold().
int msgQueueMinorThreshold = -1 [static] |
Definition at line 278 of file openserObjects.c.
Referenced by get_msg_queue_minor_threshold(), handle_openserMsgQueueDepthAlarmStatus(), handle_openserMsgQueueDepthMinorAlarm(), handle_openserMsgQueueMinorThreshold(), and set_queue_minor_threshold().
1.5.6