alarm_checks.c File Reference

SNMP statistic module

More...

#include <signal.h>
#include "../../statistics.h"
#include "alarm_checks.h"
#include "sub_agent.h"
#include "utilities.h"
#include "openserObjects.h"
#include "openserMIBNotifications.h"

Include dependency graph for alarm_checks.c:

Go to the source code of this file.

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.c.


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