snmpObjects.h

00001 /*
00002  * $Id$
00003  *
00004  * SNMPStats Module 
00005  * Copyright (C) 2006 SOMA Networks, INC.
00006  * Written by: Jeffrey Magder (jmagder@somanetworks.com)
00007  *
00008  * This file is part of Kamailio, a free SIP server.
00009  *
00010  * Kamailio is free software; you can redistribute it and/or modify it
00011  * under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version
00014  *
00015  * Kamailio is distributed in the hope that it will be useful, but
00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023  * USA
00024  *
00025  * History:
00026  * --------
00027  * 2006-11-23 initial version (jmagder)
00028  * 
00029  * Note: this file originally auto-generated by mib2c using
00030  *        : mib2c.scalar.conf,v 1.9 2005/01/07 09:37:18 dts12 Exp $
00031  *
00032  * This file defines all registration and handling of all scalars defined in the
00033  * OPENSER-MIB.  Please see OPENSER-MIB for the complete descriptions of the
00034  * individual scalars.
00035  *
00036  */
00037 
00038 #ifndef OPENSEROBJECTS_H
00039 #define OPENSEROBJECTS_H
00040 
00041 #include <net-snmp/net-snmp-config.h>
00042 #include <net-snmp/net-snmp-includes.h>
00043 #include <net-snmp/agent/net-snmp-agent-includes.h>
00044 
00045 /* function declarations */
00046 void init_openserObjects(void);
00047 
00048 Netsnmp_Node_Handler handle_openserMsgQueueDepth;
00049 Netsnmp_Node_Handler handle_openserMsgQueueMinorThreshold;
00050 Netsnmp_Node_Handler handle_openserMsgQueueMajorThreshold;
00051 Netsnmp_Node_Handler handle_openserMsgQueueDepthAlarmStatus;
00052 Netsnmp_Node_Handler handle_openserMsgQueueDepthMinorAlarm;
00053 Netsnmp_Node_Handler handle_openserMsgQueueDepthMajorAlarm;
00054 Netsnmp_Node_Handler handle_openserCurNumDialogs;
00055 Netsnmp_Node_Handler handle_openserCurNumDialogsInProgress;
00056 Netsnmp_Node_Handler handle_openserCurNumDialogsInSetup;
00057 Netsnmp_Node_Handler handle_openserTotalNumFailedDialogSetups;
00058 Netsnmp_Node_Handler handle_openserDialogLimitMinorThreshold;
00059 Netsnmp_Node_Handler handle_openserDialogLimitMajorThreshold;
00060 Netsnmp_Node_Handler handle_openserTotalNumDialogSetups;
00061 Netsnmp_Node_Handler handle_openserDialogUsageState;
00062 Netsnmp_Node_Handler handle_openserDialogLimitAlarmStatus;
00063 Netsnmp_Node_Handler handle_openserDialogLimitMinorAlarm;
00064 Netsnmp_Node_Handler handle_openserDialogLimitMajorAlarm;
00065 
00066 /* The following four functions are used to retrieve thresholds set via the
00067  * kamailio.cfg configuration file. */
00068 int get_msg_queue_minor_threshold(void);
00069 int get_msg_queue_major_threshold(void);
00070 int get_dialog_minor_threshold(void);
00071 int get_dialog_major_threshold(void);
00072 
00073 #endif /* OPENSEROBJECTS_H */