AGENTCHATGATEWAY-MIB DEFINITIONS ::= BEGIN

IMPORTS
	OBJECT-TYPE, MODULE-IDENTITY, Integer32, TimeTicks, Unsigned32
		FROM SNMPv2-SMI

	DisplayString, DateAndTime, TruthValue
		FROM SNMPv2-TC

	inconcertAgents
		FROM INCONCERT-MIB;

agentChatGateway MODULE-IDENTITY
	LAST-UPDATED	"201205201500Z"
	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
		"AgentChatGateway is the stone in your shoe."
	REVISION	"201205201500Z"
	DESCRIPTION
		"Initial published revision."
	::= { inconcertAgents 27 }



agentChatGatewayVersion                       OBJECT IDENTIFIER ::= { agentChatGateway 1 }
agentChatGatewayConfiguration                 OBJECT IDENTIFIER ::= { agentChatGateway 2 }
agentChatGatewayInformation                   OBJECT IDENTIFIER ::= { agentChatGateway 3 }
agentChatGatewayNetwork                       OBJECT IDENTIFIER ::= { agentChatGateway 4 }
agentChatGatewayServices                      OBJECT IDENTIFIER ::= { agentChatGateway 5 }
agentChatGatewayAgents                        OBJECT IDENTIFIER ::= { agentChatGateway 6 }


-- ----------------------------------------------------------------------------------------------
-- agentChatGatewayVersion
-- ----------------------------------------------------------------------------------------------

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


-- ----------------------------------------------------------------------------------------------
-- agentChatGatewayConfiguration
-- ----------------------------------------------------------------------------------------------

agentChatGatewayUpTime OBJECT-TYPE
	SYNTAX		TimeTicks
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Time ticks since this service was started."
	::= { agentChatGatewayConfiguration 1 }

agentChatGatewayPid OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The process id of the running service process."
	::= { agentChatGatewayConfiguration 2 }

agentChatGatewayPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The port on which the service listens for connections."
	::= { agentChatGatewayConfiguration 3 }

agentChatGatewayThreads OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of process threads."
	::= { agentChatGatewayConfiguration 4 }

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

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


-- ----------------------------------------------------------------------------------------------
-- agentChatGatewayInformation
-- ----------------------------------------------------------------------------------------------

agentChatGatewayLoggedAgents OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Amount of agents logged in"
	::= { agentChatGatewayInformation 1 }

agentChatGatewayMinuteMessagesRequested OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total 'get_user_messages' requests received in the last minute"
	::= { agentChatGatewayInformation 2 }

agentChatGatewayMinute403Requests OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Amount of requests failed with status 403 in the last minute"
	::= { agentChatGatewayInformation 3 }

agentChatGatewayMinute401Requests OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Amount of requests failed with status 401 in the last minute"
	::= { agentChatGatewayInformation 4 }

agentChatGatewayMinute503Requests OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Amount of requests failed with status 503 in the last minute"
	::= { agentChatGatewayInformation 5 }

agentChatGatewayMinuteBadRequests OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Amount of requests failed with a status other than 401, 403 or 503 in the last minute"
	::= { agentChatGatewayInformation 6 }

agentChatGatewayTotalFailedWebhandlerRequests OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total number of requests that failed due to network connectivity or status code other than 200"
	::= { agentChatGatewayInformation 7 }

agentChatGatewayCurrentQueuedMessages OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Current number of queued messages"
	::= { agentChatGatewayInformation 8 }

agentChatGatewayMinuteRetrievedMessages OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of messages retrieved in the last minute"
	::= { agentChatGatewayInformation 9 }

agentChatGatewayMinuteAverageCheckCredentialsRequest OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Average of the durations of CheckCredentials request in the last minute"
	::= { agentChatGatewayInformation 10 }

agentChatGatewayMinuteSentMessages OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of messages sent by all agents in the last minute"
	::= { agentChatGatewayInformation 11 }


-- ----------------------------------------------------------------------------------------------
-- agentChatGatewayNetwork
-- ----------------------------------------------------------------------------------------------

agentChatGatewayCluster OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Which cluster the gateway is part of."
	::= { agentChatGatewayNetwork 1 }


-- ----------------------------------------------------------------------------------------------
-- agentChatGatewayServices
-- ----------------------------------------------------------------------------------------------

agentChatGatewayServiceTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF AgentChatGatewayServiceEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the services the gateway is using."
	::= { agentChatGatewayServices 1 }

agentChatGatewayServiceEntry OBJECT-TYPE
	SYNTAX		AgentChatGatewayServiceEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a known service."
	INDEX	{ agentChatGatewayServiceType, agentChatGatewayServiceHost, agentChatGatewayServicePort }
	::= { agentChatGatewayServiceTable 1 }

AgentChatGatewayServiceEntry ::= SEQUENCE {
    agentChatGatewayServiceType       DisplayString,
	agentChatGatewayServiceHost       DisplayString,
	agentChatGatewayServicePort       Unsigned32
}

agentChatGatewayServiceType OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"IP of the service."
	::= { agentChatGatewayServiceEntry 1 }

agentChatGatewayServiceHost OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"IP of the service."
	::= { agentChatGatewayServiceEntry 2 }

agentChatGatewayServicePort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Port of the service."
	::= { agentChatGatewayServiceEntry 3 }


-- ----------------------------------------------------------------------------------------------
-- agentChatGatewayAgents
-- ----------------------------------------------------------------------------------------------

agentChatGatewayAgentTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF AgentChatGatewayAgentEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with the agents the gateway is handling."
	::= { agentChatGatewayAgents 1 }

agentChatGatewayAgentEntry OBJECT-TYPE
	SYNTAX		AgentChatGatewayAgentEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of an agent."
	INDEX	{ agentChatGatewayAgentID }
	::= { agentChatGatewayAgentTable 1 }

AgentChatGatewayAgentEntry ::= SEQUENCE {
	agentChatGatewayAgentID                 DisplayString,
	agentChatGatewayAgentSessionId          DisplayString,
	agentChatGatewayAgentTotalMessages      Unsigned32,
	agentChatGatewayAgentMinuteMessages     Unsigned32,
	agentChatGatewayAgentMinuteMessagesSent Unsigned32
}

agentChatGatewayAgentID OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"ID of the agent."
	::= { agentChatGatewayAgentEntry 1 }

agentChatGatewayAgentSessionId OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Session if for the agent."
	::= { agentChatGatewayAgentEntry 2 }

agentChatGatewayAgentTotalMessages OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of messages sent to this agent by this gateway."
	::= { agentChatGatewayAgentEntry 3 }

agentChatGatewayAgentMinuteMessages OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of messages sent to this agent by this gateway in the last minute."
	::= { agentChatGatewayAgentEntry 4 }

agentChatGatewayAgentMinuteMessagesSent OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of messages sent by this agent in this gateway in the last minute."
	::= { agentChatGatewayAgentEntry 5 }



END
