25.01.2015 Views

Caché Monitoring Guide - InterSystems Documentation

Caché Monitoring Guide - InterSystems Documentation

Caché Monitoring Guide - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Monitoring</strong> <strong>Caché</strong> Using SNMP<br />

Trap Name (Number)<br />

cacheLoggedError (15)<br />

cacheLicenseExceed (16)<br />

cacheAppAlert (100)<br />

Description<br />

A “severe ” error has been logged in the cconsole.log file. This trap includes<br />

the error message defined in cacheSysErrorMsg.<br />

A request for a license has exceeded the number of licenses currently available<br />

or allowed.<br />

This is a generic trap that can be used by <strong>Caché</strong> applications to generate<br />

alerts via SNMP. For detailed information about how this trap can be used,<br />

see the %Monitor.Alert.External class method.<br />

The following table describes the <strong>Caché</strong>-specific auxiliary objects that can be sent in the traps described in the preceding<br />

table.<br />

Table II–2: <strong>Caché</strong>-specific Auxiliary Objects Sent in Traps<br />

Auxiliary Object<br />

Name (Number)<br />

cacheDBWriteError<br />

(1)<br />

cacheApp (2)<br />

cacheAppSeverity (3)<br />

cacheApptext (4)<br />

Description<br />

The <strong>Caché</strong>-specific error code for a failed database write. Possible values are:<br />

, , , or .<br />

A short text string (maximum of 20 characters) that identifies the application that<br />

generated (or was the source of) a cacheAppAlert trap.<br />

A code that indicates the severity of the problem for a cacheAppAlert trap. The code<br />

can be 0 (info), 1 (warning), 2 (severe), or 3 (fatal)<br />

A text string description (maximum of 1024 characters) of the problem, error, or event<br />

that caused the cacheAppAlert trap.<br />

The following table describes the Ensemble-specific SNMP traps.<br />

Table II–3: Ensemble SNMP Notification Objects (Traps)<br />

Trap Name (Number)<br />

ensEvent (1)<br />

Description<br />

The <strong>Caché</strong> implementation of SNMP signals an Ensemble_LogEvent each time an<br />

Ensemble business host posts an alert to the Ensemble Event Log.<br />

B.5 Sample User-defined SNMP Monitor Class<br />

This section describes an example of how to define a user Monitor class that you can query via SNMP. The Application<br />

Monitor only includes properties with %Monitor data types in the SNMP data.<br />

Example Class<br />

Following is the sample class for this example:<br />

Class SNMP.Example Extends %Monitor.Adaptor<br />

{<br />

/// Give the application a name. This allows you to group different<br />

/// classes together under the same application level in the SNMP MIB.<br />

/// The default is the same as the Package name.<br />

Parameter APPLICATION = "MyApp";<br />

/// This groups a set of properties together at the "table" level of the<br />

/// SNMP MIB hierarchy. The default is the Class name.<br />

114 <strong>Caché</strong> <strong>Monitoring</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!