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 }

asapTotalVodUnknown 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 }

-------------------------------------------------------------------------------
-- SpamD Server MIB

spamd-server OBJECT IDENTIFIER ::= { ctasd 5 }

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

asapSpamdQueueSize OBJECT-TYPE
	SYNTAX		Gauge32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The number of Spamd connections waiting to be processed."
	::= { spamd-server 2 }
	
asapSpamdTotalWaitTime OBJECT-TYPE
	SYNTAX		TimeTicks
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"Total wait time for all Spamd queries in the queue."
	::= { spamd-server 3 }

asapSpamdTotalClassifyMessageRequests OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of ClassifyMessage queries which were sent to ctasd using spamd interface."
	::= { spamd-server 4 }

asapSpamdTotalClassifyMessageErrors 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 using ctasd interface."
	::= { spamd-server 5 }

-------------------------------------------------------------------------------
-- 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 }
	

-------------------------------------------------------------------------------
-- ctengine Antivirus MIB

antivirus OBJECT IDENTIFIER ::= { ctengine 6 }

-------------------------------------------------------------------------------
antivirus-enabled-asap OBJECT IDENTIFIER ::= { antivirus 1 }

avTotalClassifyMessageRequests OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of Antivirus scan requests during ClassifyMessage queries."
	::= { antivirus-enabled-asap 1 }

avTotalClassifyMessageErrors OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of Antivirus errors resulting from ClassifyMessage queries."
	::= { antivirus-enabled-asap 2 }

avTotalItemsScannedInMessages OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of items that were scanned in ClassifyMessage. Items include any file, java script, http session etc. that was sent to AV for scanning."
	::= { antivirus-enabled-asap 3 }

avTotalMessagesInfected OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of messages that at least one threat was found."
	::= { antivirus-enabled-asap 4 }

avTotalMessagesThreats OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of threats found in scanned ClassifyMessages."
	::= { antivirus-enabled-asap 5 }

-------------------------------------------------------------------------------
antivirus-only OBJECT IDENTIFIER ::= { antivirus 2 }

avTotalClassifyObjectRequests OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"Total number of ClassifyObject queries."
	::= { antivirus-only 1 }

avTotalClassifyObjectErrors OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of general errors in ClassifyObject queries."
	::= { antivirus-only 2 }

avTotalItemsScannedInObjects OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of items that were scanned in ClassifyObject."
	::= { antivirus-only 3 }

avTotalObjectsInfected OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of classify Objects that at least one thread was found."
	::= { antivirus-only 4 }

avTotalObjectsThreats OBJECT-TYPE
	SYNTAX      Counter32
	MAX-ACCESS  read-only
	STATUS      current
	DESCRIPTION
		"The total number of threats found in scanned ClassifyObjects."
	::= { antivirus-only 5 }


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

antivirus-http OBJECT IDENTIFIER ::= { ctasd 6 }

avHttpTotalClassifyObjectRequests OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of ClassifyObject queries which were sent to ctasd."
	::= { antivirus-http 1 }

avHttpTotalClassifyObjectErrors OBJECT-TYPE
	SYNTAX		Counter32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION  
    		"The total number of errors that occurred as a result of ClassifyObject queries which were sent to ctasd."
	::= { antivirus-http 2 }
	
END


