Export message queues statistic data via SNMP.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6160 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
58af812b9b
commit
21e76fd932
|
@ -317,7 +317,7 @@ public:
|
|||
ENGINE_THREADS = 5,
|
||||
ENGINE_WORKERS = 6,
|
||||
ENGINE_MUTEXES = 7,
|
||||
ENGINE_LOCKS = 8,
|
||||
ENGINE_LOCKS = 8,
|
||||
ENGINE_SEMAPHORES = 9,
|
||||
ENGINE_WAITING = 10,
|
||||
ENGINE_RUNATTEMPT = 11,
|
||||
|
@ -325,6 +325,12 @@ public:
|
|||
ENGINE_STATE = 13,
|
||||
ENGINE_CALL_ACCEPT = 14,
|
||||
ENGINE_UNEX_RESTART = 15,
|
||||
ENGINE_MAXQUEUED = 16,
|
||||
ENGINE_MSGRATE = 17,
|
||||
ENGINE_MAXMSGRATE = 18,
|
||||
ENGINE_MSGENQUEUED = 19,
|
||||
ENGINE_MSGDEQUEUED = 20,
|
||||
ENGINE_MSGDISPATCHED = 21,
|
||||
};
|
||||
// Constructor
|
||||
inline EngineInfo()
|
||||
|
@ -1057,6 +1063,12 @@ static TokenDict s_categories[] = {
|
|||
{"plugins", Monitor::ENGINE},
|
||||
{"handlers", Monitor::ENGINE},
|
||||
{"messages", Monitor::ENGINE},
|
||||
{"msgMaxQueued", Monitor::ENGINE},
|
||||
{"msgLastSecond", Monitor::ENGINE},
|
||||
{"msgMaxPerSecond", Monitor::ENGINE},
|
||||
{"msgEnqueued", Monitor::ENGINE},
|
||||
{"msgDequeued", Monitor::ENGINE},
|
||||
{"msgDispatched", Monitor::ENGINE},
|
||||
{"threads", Monitor::ENGINE},
|
||||
{"workers", Monitor::ENGINE},
|
||||
{"mutexes", Monitor::ENGINE},
|
||||
|
@ -1229,10 +1241,15 @@ static TokenDict s_accountInfo[] = {
|
|||
};
|
||||
|
||||
static TokenDict s_engineQuery[] = {
|
||||
|
||||
{"plugins", EngineInfo::ENGINE_PLUGINS},
|
||||
{"handlers", EngineInfo::ENGINE_HANDLERS},
|
||||
{"messages", EngineInfo::ENGINE_MESSAGES},
|
||||
{"msgMaxQueued", EngineInfo::ENGINE_MAXQUEUED},
|
||||
{"msgLastSecond", EngineInfo::ENGINE_MSGRATE},
|
||||
{"msgMaxPerSecond", EngineInfo::ENGINE_MAXMSGRATE},
|
||||
{"msgEnqueued", EngineInfo::ENGINE_MSGENQUEUED},
|
||||
{"msgDequeued", EngineInfo::ENGINE_MSGDEQUEUED},
|
||||
{"msgDispatched", EngineInfo::ENGINE_MSGDISPATCHED},
|
||||
{"threads", EngineInfo::ENGINE_THREADS},
|
||||
{"workers", EngineInfo::ENGINE_WORKERS},
|
||||
{"mutexes", EngineInfo::ENGINE_MUTEXES},
|
||||
|
@ -1253,6 +1270,12 @@ TokenDict EngineInfo::s_engineInfo[] = {
|
|||
{"plugins", EngineInfo::ENGINE_PLUGINS},
|
||||
{"handlers", EngineInfo::ENGINE_HANDLERS},
|
||||
{"messages", EngineInfo::ENGINE_MESSAGES},
|
||||
{"maxqueue", EngineInfo::ENGINE_MAXQUEUED},
|
||||
{"messagerate", EngineInfo::ENGINE_MSGRATE},
|
||||
{"maxmsgrate", EngineInfo::ENGINE_MAXMSGRATE},
|
||||
{"enqueued", EngineInfo::ENGINE_MSGENQUEUED},
|
||||
{"dequeued", EngineInfo::ENGINE_MSGDEQUEUED},
|
||||
{"dispatched", EngineInfo::ENGINE_MSGDISPATCHED},
|
||||
{"threads", EngineInfo::ENGINE_THREADS},
|
||||
{"workers", EngineInfo::ENGINE_WORKERS},
|
||||
{"mutexes", EngineInfo::ENGINE_MUTEXES},
|
||||
|
|
|
@ -12,7 +12,7 @@ IMPORTS
|
|||
FROM NULL-TEAM-MIB;
|
||||
|
||||
yate MODULE-IDENTITY
|
||||
LAST-UPDATED "201307311120Z"
|
||||
LAST-UPDATED "201701031300Z"
|
||||
ORGANIZATION "S.C. Null Team Impex S.R.L."
|
||||
CONTACT-INFO
|
||||
"Diana Cionoiu
|
||||
|
@ -21,7 +21,7 @@ yate MODULE-IDENTITY
|
|||
Email: office@null.ro"
|
||||
DESCRIPTION
|
||||
"The MIB module for Yate."
|
||||
REVISION "201307311120Z"
|
||||
REVISION "201701031300Z"
|
||||
DESCRIPTION
|
||||
"Most recent version of this MIB module."
|
||||
REVISION "201009281300Z"
|
||||
|
@ -86,6 +86,54 @@ messages OBJECT-TYPE
|
|||
DESCRIPTION
|
||||
"Engine number of messages waiting to be handled."
|
||||
::= { engine 3 }
|
||||
|
||||
msgMaxQueued OBJECT-TYPE
|
||||
SYNTAX Gauge32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Maximum number of queued messages (high watermark)."
|
||||
::= { messages 1 }
|
||||
|
||||
msgLastSecond OBJECT-TYPE
|
||||
SYNTAX Gauge32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Current message rate (messages dispatched in the last second)."
|
||||
::= { messages 2 }
|
||||
|
||||
msgMaxPerSecond OBJECT-TYPE
|
||||
SYNTAX Gauge32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Maximum message rate (highest dispatched messages count in any second of the engine run)."
|
||||
::= { messages 3 }
|
||||
|
||||
msgEnqueued OBJECT-TYPE
|
||||
SYNTAX Counter64
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of messages enqueued in the entire engine run."
|
||||
::= { messages 4 }
|
||||
|
||||
msgDequeued OBJECT-TYPE
|
||||
SYNTAX Counter64
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of messages dequeued in the entire engine run."
|
||||
::= { messages 5 }
|
||||
|
||||
msgDispatched OBJECT-TYPE
|
||||
SYNTAX Counter64
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of messages dispatched (includes dequeued and dispatched messages by worker thread) in the entire engine run."
|
||||
::= { messages 6 }
|
||||
|
||||
threads OBJECT-TYPE
|
||||
SYNTAX Gauge32
|
||||
|
|
|
@ -259,7 +259,7 @@ revision=200910201200Z
|
|||
|
||||
[1.3.6.1.4.1.34501.1]
|
||||
name=yate
|
||||
revision=201307311120Z
|
||||
revision=201701031300Z
|
||||
|
||||
[1.3.6.1.4.1.34501.1.1]
|
||||
name=yateMIBRevision
|
||||
|
@ -292,6 +292,36 @@ name=messages
|
|||
access=read-only
|
||||
type=Gauge32
|
||||
|
||||
[1.3.6.1.4.1.34501.1.3.1.3.1]
|
||||
name=msgMaxQueued
|
||||
access=read-only
|
||||
type=Gauge32
|
||||
|
||||
[1.3.6.1.4.1.34501.1.3.1.3.2]
|
||||
name=msgLastSecond
|
||||
access=read-only
|
||||
type=Gauge32
|
||||
|
||||
[1.3.6.1.4.1.34501.1.3.1.3.3]
|
||||
name=msgMaxPerSecond
|
||||
access=read-only
|
||||
type=Gauge32
|
||||
|
||||
[1.3.6.1.4.1.34501.1.3.1.3.4]
|
||||
name=msgEnqueued
|
||||
access=read-only
|
||||
type=Counter64
|
||||
|
||||
[1.3.6.1.4.1.34501.1.3.1.3.5]
|
||||
name=msgDequeued
|
||||
access=read-only
|
||||
type=Counter64
|
||||
|
||||
[1.3.6.1.4.1.34501.1.3.1.3.6]
|
||||
name=msgDispatched
|
||||
access=read-only
|
||||
type=Counter64
|
||||
|
||||
[1.3.6.1.4.1.34501.1.3.1.4]
|
||||
name=threads
|
||||
access=read-only
|
||||
|
|
Loading…
Reference in New Issue