CTCH-CTASD-MIB DEFINITIONS ::= BEGIN
IMPORTS
	enterprises,
	OBJECT-TYPE, MODULE-IDENTITY,
	Integer32, Gauge32, Counter32,
	TimeTicks				FROM SNMPv2-SMI
	DisplayString				FROM SNMPv2-TC
	MODULE-COMPLIANCE, OBJECT-GROUP		FROM SNMPv2-CONF;

commtouch MODULE-IDENTITY
	LAST-UPDATED "201006200000Z"
	ORGANIZATION "Commtouch Software,  Ltd."
	CONTACT-INFO
		"postal:   4A Hatzoran St.
                           P.O. Box 8511
                           Netanya 42504, ISRAEL
                 email:    sdk@commtouch.com
		 "

	DESCRIPTION
		"Commtouch ctasd daemon  MIB module "
	REVISION "201006200000Z"
	DESCRIPTION
		"Reworked MIB structure"

	::= { enterprises 9915 }

-------------------------------------------------------------------------------
-- ctasd MIB

ctasd OBJECT IDENTIFIER ::= { commtouch 3 }





--=============================================================================
-------------------------------------------------------------------------------
-- ctengine added part

ctengine OBJECT IDENTIFIER ::= { ctasd 1 }

-------------------------------------------------------------------------------
general OBJECT IDENTIFIER ::= { ctengine 1 }

totalCenterRequests OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of queries forwarded to the Datacenter.."
	::= { general 1 }

totalCommErrors OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of communication errors that occured while trying to query  the Datacenter .."
	::= { general 2 }

totalCenterRequestTime OBJECT-TYPE
	SYNTAX      TimeTicks
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total amount of time the client waited for a response from the Datacenter."
	::= { general 3 }
-- end ctengine general MIB part
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
-- ctengine ASAP MIB

asap OBJECT IDENTIFIER ::= { ctengine 3 }

-------------------------------------------------------------------------------
classification-request OBJECT IDENTIFIER ::= { asap 1 }

asapTotalClassifyMessageRequests OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of ClassifyMessage  queries ."
	::= { classification-request 1 }

asapTotalClassifyMessageCenterRequests OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of ClassifyMessage queries sent to the Datacenter."
	::= { classification-request 2 }

asapTotalClassifyMessageErrors OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of general errors resulting from ClassifyMessage queries."
	::= { classification-request 3 }

asapTotalClassifyMessageCurrRequests OBJECT-TYPE
	SYNTAX      Gauge32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of ClassifyMessage queries currently being processed. "
	::= { classification-request 4 }

-------------------------------------------------------------------------------
classification-stats OBJECT IDENTIFIER ::= { asap 2 }

asapTotalSuspected OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages  classified as suspected."
	::= { classification-stats 1 }

asapTotalBulk OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages classified as bulk."
	::= { classification-stats 2 }

asapTotalConfirmed OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages classified as confirmed."
	::= { classification-stats 3 }

asapTotalNonSpam OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages classified as non-spam."
	::= { classification-stats 4 }

asapTotalUnknown OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages which were not categorized."
	::= { classification-stats 5 }

asapTotalValidBulk OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of valid bulk messages."
	::= { classification-stats 6 }

-------------------------------------------------------------------------------
classification-vod-stats OBJECT IDENTIFIER ::= { asap 3 }

asapTotalVodMedium OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages classified as VOD  Medium."
	::= { classification-vod-stats 1 }

asapTotalVodHigh OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages classified as VOD High."
	::= { classification-vod-stats 2 }

asapTotalVodVirus OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages classified as VOD  Virus."
	::= { classification-vod-stats 3 }

asapTotalVodNonVirus OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages classified as VOD  Non-Virus."
	::= { classification-vod-stats 4 }

asapTotalVodUnknwon OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages where the VOD result was not categorized."
	::= { classification-vod-stats 5 }

-------------------------------------------------------------------------------
report-fp OBJECT IDENTIFIER ::= { asap 4 }

asapTotalReportFPRequests OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of false positive report queries."
	::= { report-fp 1 }

asapTotalReportFPErrors OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of errors that occured while handling false positive report queries."
	::= { report-fp 2 }

-------------------------------------------------------------------------------
report-fn OBJECT IDENTIFIER ::= { asap 5 }

asapTotalReportFNRequests OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of false negative report  queries."
	::= { report-fn 1 }

asapTotalReportFNErrors OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of errors that occured while handling false negative report queries."
	::= { report-fn 2 }

-------------------------------------------------------------------------------
get-status OBJECT IDENTIFIER ::= { asap 6 }

asapTotalGetStatusRequests OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of Get Status queries."
	::= { get-status 1 }

asapTotalGetStatusErrors OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of errors that occured while handling Get Status queries."
	::= { get-status 2 }

-------------------------------------------------------------------------------
cache-stats OBJECT IDENTIFIER ::= { asap 7 }

asapCacheSize OBJECT-TYPE
	SYNTAX      Gauge32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The number of records in the local cache."
	::= { cache-stats 1 }

-------------------------------------------------------------------------------
cache-access-stats OBJECT IDENTIFIER ::= { asap 8 }

asapCacheTotalHits OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of times a response to a query was found in the local cache."
	::= { cache-access-stats 1 }

asapCacheTotalMisses OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of times a query response was not found in the local cache."
	::= { cache-access-stats 2 }

-- end ctengine added part
--=============================================================================

-------------------------------------------------------------------------------
-- General MIB

general-info OBJECT IDENTIFIER ::= { ctasd 2 }

uptime OBJECT-TYPE
	SYNTAX          TimeTicks
	MAX-ACCESS      read-only
	STATUS          current
	DESCRIPTION
		"The total number of seconds elapsed since the daemon was started." 
	::= { general-info 1 }

pid	OBJECT-TYPE
	SYNTAX          Integer32
	MAX-ACCESS      read-only
	STATUS          current
	DESCRIPTION
		"The deamon's process ID." 
	::= { general-info 2 }

-------------------------------------------------------------------------------
-- Http Server MIB

http-server OBJECT IDENTIFIER ::= { ctasd 3 }

asapHttpCurrRequests OBJECT-TYPE
	SYNTAX		Gauge32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The number of HTTP queries that ctasd is currently processing."
	::= { http-server 1 }

asapHttpQueueSize OBJECT-TYPE
	SYNTAX		Gauge32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The number of HTTP connections waiting to be processed."
	::= { http-server 2 }

asapHttpTotalWaitTime OBJECT-TYPE
	SYNTAX		TimeTicks
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"Total wait time for all HTTP queries in the queue."
	::= { http-server 3 }

asapHttpTotalClassifyMessageRequests OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of ClassifyMessage queries."
	::= { http-server 4 }

asapHttpTotalClassifyMessageErrors OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of errors that occurred as a result of ClassifyMessage queries which were sent to ctasd."
	::= { http-server 5 }

asapHttpTotalReportFPRequests OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of ReportFP queries sent to ctasd."
	::= { http-server 6 }

asapHttpTotalReportFPErrors OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of errors that occurred as a result of ReportFP queries which were sent to ctasd."
	::= { http-server 7 }

asapHttpTotalReportFNRequests OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of ReportFN queries sent to ctasd."
	::= { http-server 8 }

asapHttpTotalReportFNErrors OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of errors that occurred as a result of ReportFN queries which were sent to ctasd."
	::= { http-server 9 }

asapHttpTotalGetStatusRequests OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of GetStatus queries sent to ctasd."
	::= { http-server 10 }

asapHttpTotalGetStatusErrors OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of errors that occurred as a result of GetStatus queries sent to ctasd."
	::= { http-server 11 }

-------------------------------------------------------------------------------
-- Outbound additions MIB

outbound OBJECT IDENTIFIER ::= { ctasd 4 }

outboundTotalWhitelisted OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of whitelisted messages."
	::= { outbound 1 }

outboundTotalBlueListed OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of bluelisted messages."
	::= { outbound 2 }	

	
-------------------------------------------------------------------------------
-- ctengine outbound MIB

outbound OBJECT IDENTIFIER ::= { ctengine 5 }

-------------------------------------------------------------------------------
cache-stats OBJECT IDENTIFIER ::= { outbound 3 }

outBoundSenderIdCacheSize OBJECT-TYPE
	SYNTAX      Gauge32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The number of sender ID records in the local cache."
	::= { cache-stats 1 }

outBoundPatternsCacheSize OBJECT-TYPE
	SYNTAX      Gauge32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The number of pattern records in the local cache."
	::= { cache-stats 2 }

-------------------------------------------------------------------------------
threshold-stats OBJECT IDENTIFIER ::= { outbound 4 }

outBoundTotalMessagesThresholdCrossed OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of outbound messages which crossed the threshold."
	::= { threshold-stats 1 }

outBoundTotalBulkThresholdCrossed OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of outbound bulk messages which crossed the threshold."
	::= { threshold-stats 2 }

outBoundTotalSuspectedThresholdCrossed OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of outbound suspected messages which crossed the threshold."
	::= { threshold-stats 3 }

outBoundTotalSpamThresholdCrossed OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of outbound spam messages which crossed the threshold."
	::= { threshold-stats 4 }

outBoundTotalVirusThresholdCrossed OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of outbound virus messages which crossed the threshold."
	::= { threshold-stats 5 }

outBoundTotalConfirmedThresholdCrossed OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of outbound confirmed messages which crossed the threshold."
	::= { threshold-stats 6 }

outBoundTotalRecipientsThresholdCrossed OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of outbound resipients messages which crossed the threshold."
	::= { threshold-stats 7 }

-------------------------------------------------------------------------------
report OBJECT IDENTIFIER ::= { outbound 5 }

outBoundTotalSamplesSentCenter OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of samples sent to the Datacenter."
	::= { report 1 }
	
	
END


