WEBCHATPROXY-MIB DEFINITIONS ::= BEGIN
 
IMPORTS
	OBJECT-TYPE, MODULE-IDENTITY, Integer32, TimeTicks, Unsigned32
		FROM SNMPv2-SMI
 
	DisplayString, DateAndTime, TruthValue
		FROM SNMPv2-TC
 
	inconcertAgents
		FROM INCONCERT-MIB;
 
webchatproxy MODULE-IDENTITY
	LAST-UPDATED	"201111301500Z"
	ORGANIZATION	"inConcert Corporation"
	CONTACT-INFO
		"Guillermo Winkler
		Postal: inConcert Corporation
		        8 de Octubre 2297
		        Montevideo
		        Uruguay
		   Tel: +598 99 691341
		 Email: gwinkler@inconcertcc.com"
	DESCRIPTION
		"Webchat Proxy is a distributed server that manages webchat accounts."
	REVISION	"201111301500Z"
	DESCRIPTION
		"Initial published revision."
	::= { inconcertAgents 25 }
 
-- webchatproxyVersion

webchatproxyVersion                       OBJECT IDENTIFIER ::= { webchatproxy 1 }

webchatproxyVersionString OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Text version string of the version of webchat Proxy that
		the SNMP Agent was compiled to run against."
	::= { webchatproxyVersion 1 }
 
-- webchatproxyConfiguration

webchatproxyConfiguration                 OBJECT IDENTIFIER ::= { webchatproxy 2 }

webchatproxyUpTime OBJECT-TYPE
	SYNTAX		TimeTicks
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Time ticks since this webchat Proxy was started."
	::= { webchatproxyConfiguration 1 }
 
webchatproxyPid OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The process id of the running webchat Proxy process."
	::= { webchatproxyConfiguration 2 }
 
webchatproxyPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The port on which the webchat Proxy listens for connections."
	::= { webchatproxyConfiguration 3 }
 
webchatproxyThreads OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of process threads."
	::= { webchatproxyConfiguration 4 }

webchatproxyHandles	 OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of process handles."
	::= { webchatproxyConfiguration 5 }

webchatproxyMemoryUsage OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Process memory usage."
	::= { webchatproxyConfiguration 6 }

webchatproxyLuaMemoryUsage OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Process memory used by Lua."
	::= { webchatproxyConfiguration 7 }

-- webchatproxyInformation

webchatproxyInformation                       OBJECT IDENTIFIER ::= { webchatproxy 3 }

webchatproxyTotalIncomingChats OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total chats received by the proxy since started"
	::= { webchatproxyInformation 1 }

webchatproxyMinuteIncomingChats OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total chats received by the proxy in the last minute"
	::= { webchatproxyInformation 2 }

webchatproxyTotalMessages OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total messages sent and received by the proxy since started"
	::= { webchatproxyInformation 3 }

webchatproxyMinuteMessages OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total messages sent and received by the proxy in the last minute"
	::= { webchatproxyInformation 4 }

webchatproxyActiveAccounts OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total accounts being checked with no problems"
	::= { webchatproxyInformation 5 }

webchatproxyFailedAccounts OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total accounts being checked having some problem"
	::= { webchatproxyInformation 6}

webchatproxyMinuteTcpConnections OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of TCP connections that had been established in the last minute"
	::= { webchatproxyInformation 7}

-- webchatproxyNetwork

webchatproxyNetwork                       OBJECT IDENTIFIER ::= { webchatproxy 4 }

webchatproxyCluster OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Cluster of which the webchat Proxy is part."
	::= { webchatproxyNetwork 1 }

webchatproxySiblingTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF WebchatproxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the fellow webchat Proxies on the cluster."
	::= { webchatproxyNetwork 2 }

webchatproxySiblingEntry OBJECT-TYPE
	SYNTAX		WebchatproxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a fellow webchat Proxy."
	INDEX	{ webchatproxySiblingAddress }
	::= { webchatproxySiblingTable 1 }
 
webchatproxySiblingAddress OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Address (IP:port) of the sibling."
	::= { webchatproxySiblingEntry 1 }

webchatproxySiblingIP OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"IP of the sibling."
	::= { webchatproxySiblingEntry 2 }

webchatproxySiblingPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Port of the sibling."
	::= { webchatproxySiblingEntry 3 }

WebchatproxySiblingEntry ::= SEQUENCE {
	webchatproxySiblingAddress    DisplayString,
	webchatproxySiblingIP         DisplayString,
	webchatproxySiblingPort       Unsigned32
}

-- Known interaction routers

webchatproxyIRTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF WebchatproxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the Interaction Routers connected to the webchat Proxy."
	::= { webchatproxy 5 }

webchatproxyIREntry OBJECT-TYPE
	SYNTAX		WebchatproxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a known proxy."
	INDEX	{ webchatproxyIRIndex }
	::= { webchatproxyIRTable 1 }
 
WebchatproxyIREntry ::= SEQUENCE {
	webchatproxyIRIndex      Unsigned32,
	webchatproxyIRIP         DisplayString,
	webchatproxyIRPort       Unsigned32,
	webchatproxyIRStatus     DisplayString
}

webchatproxyIRIndex OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Index table."
	::= { webchatproxyIREntry 1 }

webchatproxyIRIP OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"IP of the proxy."
	::= { webchatproxyIREntry 2 }

webchatproxyIRPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Port of the proxy."
	::= { webchatproxyIREntry 3 }

webchatproxyIRStatus OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Connection status of the proxy."
	::= { webchatproxyIREntry 4 }

-- Running accounts

webchatproxyAccountTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF WebchatproxyAccountEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with the accounts that this webchat Proxy is handling."
	::= { webchatproxy 6 }

webchatproxyAccountEntry OBJECT-TYPE
	SYNTAX		WebchatproxyAccountEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a account running on a webchat Proxy."
	INDEX	{ webchatproxyAccountCampaign, webchatproxyAccountID }
	::= { webchatproxyAccountTable 1 }
 
webchatproxyAccountCampaign OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Campaign to which the account is assigned."
	::= { webchatproxyAccountEntry 1 }

webchatproxyAccountID OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"ID of the account."
	::= { webchatproxyAccountEntry 2 }

webchatproxyAccountToken OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Token for the account."
	::= { webchatproxyAccountEntry 3 }

webchatproxyAccountIncomingChats OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of chats received on this node for this account since it was managed here."
	::= { webchatproxyAccountEntry 4 }

webchatproxyAccountTotalMessages OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of messages sent and received on this node for this account since it was managed here."
	::= { webchatproxyAccountEntry 5 }

webchatproxyAccountMinuteMessages OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of messages sent and received on this node for this account in the last minute."
	::= { webchatproxyAccountEntry 6 }

webchatproxyAccountStatus OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Status of the account"
	::= { webchatproxyAccountEntry 7 }

WebchatproxyAccountEntry ::= SEQUENCE {
	webchatproxyAccountCampaign             DisplayString,
	webchatproxyAccountID                   DisplayString,
	webchatproxyAccountToken                DisplayString,
	webchatproxyAccountIncomingChats		    Unsigned32,
	webchatproxyAccountTotalMessages		    Unsigned32,
	webchatproxyAccountMinuteMessages		    Unsigned32,
	webchatproxyAccountStatus               DisplayString
}

END


