alarm_checks.h File Reference

SNMP statistic module

More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ALARM_AGENT_FREQUENCY_IN_SECONDS   5
#define ALARM_AGENT_NAME   "snmpstats_alarm_agent"

Functions

int check_dialog_alarm (int threshold_to_compare_to)
int check_msg_queue_alarm (int threshold_to_compare_to)
void run_alarm_check (unsigned int ticks, void *attr)


Detailed Description

SNMP statistic module

Definition in file alarm_checks.h.


Define Documentation

#define ALARM_AGENT_FREQUENCY_IN_SECONDS   5

Definition at line 42 of file alarm_checks.h.

Referenced by mod_init().

#define ALARM_AGENT_NAME   "snmpstats_alarm_agent"

Definition at line 43 of file alarm_checks.h.

Referenced by run_alarm_check().


Function Documentation

int check_dialog_alarm ( int  threshold_to_compare_to  ) 

Returns the number of active dialogs if they exceed the threshold, and zero otherwise.

Definition at line 74 of file alarm_checks.c.

References get_statistic().

Referenced by handle_openserDialogLimitAlarmStatus(), handle_openserDialogLimitMajorAlarm(), handle_openserDialogLimitMinorAlarm(), and run_alarm_check().

int check_msg_queue_alarm ( int  threshold_to_compare_to  ) 

Returns the number of bytes currently waiting in the msg queue if they exceed the threshold, and zero otherwise. If threshold_to_compare_to is < 0, then no check will be performed and zero always returned.

Definition at line 52 of file alarm_checks.c.

References get_total_bytes_waiting().

Referenced by handle_openserMsgQueueDepthAlarmStatus(), handle_openserMsgQueueDepthMajorAlarm(), handle_openserMsgQueueDepthMinorAlarm(), and run_alarm_check().

void run_alarm_check ( unsigned int  ticks,
void *  attr 
)


Generated on Thu May 17 12:00:34 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6