C H A P T E R 1 |
System Monitoring |
Content Delivery Server provides the Application Monitoring Agent for monitoring the state of Content Delivery Server. This agent supports Simple Network Management Protocol (SNMP) and can be integrated with your existing network monitoring system.
Content Delivery Server components also record information in log files that you can use to review the state of the system.
This chapter includes the following topics:
The Application Monitoring Agent provides information on the status of Content Delivery Server. This agent enables your existing network monitoring system to monitor the availability of the Content Delivery Server components. You can also monitor the connections between Content Delivery Server and external systems such as your billing system or subscriber database. The agent is activated when the Monitoring Service is started.
The Application Monitoring Agent provides a Management Information Base (MIB) that describes the statuses and alarms issued by Content Delivery Server. This information is contained in the CDSMibModule.mib file in the $CDS_HOME/deployment/deployment-name/conf directory. Configure your network monitoring system to use this MIB specification. See the product documentation for the network monitoring system that you are using for information on loading the MIB.
TABLE 1-1 shows the status information provided through the MIB. Your network monitoring system can query the Application Monitoring Agent for any of these statuses. A status of 1 indicates that the component is running. A status of 0 indicates that the component is down.
TABLE 1-2 shows the notifications sent by Content Delivery Server to report that an event occurred. In general, a notification indicates that a particular component is unavailable or that a component started. If a component is unavailable, determine the cause and restart the component to ensure that Content Delivery Server continues to operate correctly.
As Content Delivery Server executes, the components record information in the following log files, which are found in the $CDS_HOME/deployment/deployment-name/logs directory:
n is a value from 0 to the maximum number of archive files specified for the cds.FileHandler.count property in the $CDS_HOME/cfg/logging.properties file. CDS.log.0 is the current log. An archive file is created when Content Delivery Server is started or when the maximum number of records specified for the cds.FileHandler.limit property in the logging.properties file is reached.
Database Encoding Check is performed when Content Delivery Server is started using the cdse startserver command.
Review the log files for exceptions, lines flagged as SEVERE, or other indications of problems. See the Sun Java System Content Delivery Server Error Messages for descriptions of messages that you might receive and suggested actions that you can take in response.
Content Delivery Server uses the logging utility that is available with the Java Software Development Kit. You can manage the logging files according to the capabilities of the utility by setting properties in the $CDS_HOME/cfg/logging.properties file. This file controls the logging properties for all Content Delivery Server functions.
The messages that are written to the log are determined by the level of logging that is set. The following levels are valid in order from most restrictive to least restrictive.
The log includes messages at the specified level and messages at higher levels. For example, if the level is set to WARNING, the log contains messages marked as SEVERE and WARNING. Content Delivery Server uses only SEVERE, WARNING, INFO, and FINE for its messages.
The logging utility supports several handlers. Content Delivery Server uses only the file handler and the console handler. In addition, several components of Content Delivery Server log messages. The level of messages logged by these loggers can be set individually, if desired. The following table contains the names of the loggers used by Content Delivery Server.
To manage the log files, set the properties in the $CDS_HOME/cfg/logging.properties file as described in the following table.
Default level of information written to the log. This level is used if no level is set for a specific logger. Valid values are described in TABLE 1-3. The default is INFO. |
|
Default location of the log file. This location is used if the component that creates the log does not specify a location. The default is /tmp/CDS.log. Note - Content Delivery Server logs are in the $CDS_HOME/deployment/deployment-name/logs directory. Adapters that you write or other integration code might write logs to this directory if another location is not specifically stated. |
|
Maximum number of records written to the log before an archive file is created. The default value is 10000000. |
|
Fully qualified name of the class used to format the messages. The default is com.sun.content.server.foundation.log.pattern.PatternFormatter. |
|
Fully qualified name of the class used to format the messages. The default is com.sun.content.server.foundation.log.pattern.PatternFormatter. |
|
com.sun.content.server.foundation.log.pattern.PatternFormatter.pattern |
Pattern used by the class specified for the File Handler and Console Handler formatters to format the messages. The following elements can be used:
The default pattern is %d [%c,%t] %p %m%n, which generates a message similar to the following sample: Tue May 01 16:58:47,608 PDT 2007 [cds.DRM,20] SEVERE <0052> Purchase authorization failed. Note - If you specify a different class for the formatters, a different property might be needed. |
(Optional) Level of logging for a specific logger where logger is one of the values in TABLE 1-4. |
The Catalog Manager and each Vending Manager has its own database. Information such as the status of content or the types of devices supported must be maintained across databases. As changes are made in the Catalog Manager, notifications are sent to the Vending Managers identified by the Vending Manager Server accounts.
If a Vending Manager is not receiving notification of changes or if synchronization fails, verify that the Vending Manager Server account contains the correct account name and password for the Vending Manager. If needed, correct the name or password in the Vending Manager Server account using the Catalog Manager administration console. You do not need to restart the Vending Manager if only the Vending Manager Server account is changed. If you change the vs.account.name or vs.account.password property in the $CDS_HOME/deployment/deployment-name/conf/CDS.properties file, you must restart the Vending Manager. You must also restart the Catalog Manager if it is deployed with the Vending Manager in a basic deployment.
If a Vending Manager Server account is deleted or inactivated, the Catalog Manager stops sending notifications of changes to that Vending Manager. If the Vending Manager Server account is later recreated or reactivated, the Vending Manager must be restarted to initiate synchronization. You must also restart the Catalog Manager if it is deployed with the Vending Manager in a basic deployment.
Additional information about the synchronization between the Catalog Manager and Vending Managers is available in Chapter 2 of the Sun Java System Content Delivery Server Reference Manual.
The Catalog Search Service and the Vending Search Service components of Content Delivery Server use the Solr search server to index content and handle search queries. For each service, Solr creates an index for content in the Catalog Manager and the Vending Manager. The search indexes are managed independent of the content databases.
As content is added or changed, the search indexes are automatically updated. However, it is possible for the indexes to become out of sync with the content and require a manual rebuild. Some of the situations in which a manual rebuild is necessary are described in the following list:
Rebuild the search index when one of the situations described occurs or when you are not getting the results you expect from search queries. You can rebuild the entire index or you can add a specific item to an index. You can also remove an item from the index or remove the entire contents of an index in preparation for starting over if rebuilding intermittently does not solve your problem.
Be aware that rebuilding the entire index can take awhile, depending on the number of content items and the load on the system. You might also want to avoid rebuilding the index while other resource-intensive operations are running, such as bulk content submission, bulk content management, or device capability matching.
To rebuild the search index for the Catalog Manager, log in to the Catalog Manager administration console and enter the following URL in the address field of your browser:
http://host:port/admin/main/search_update?action=rebuild
host:port is the host name and port number for the server on which the Catalog Manager is running. A message is shown when the rebuilding process completes.
To rebuild the search index for the Vending Manager, log in to the Vending Manager administration console and enter the following URL in the address field of your browser:
http://host:port/vsadmin/main/search_update?action=rebuild
host:port is the host name and port number for the server on which the Vending Manager is running. A message is shown when the rebuilding process completes.
Adding an item to the index takes less time than rebuilding the entire index and is an option when you know the class ID of a specific item that is not appearing in query results.
To add a specific item to the index for the Catalog Manager, log in to the Catalog Manager administration console and enter the following URL in the address field of your browser:
http://host:port/admin/main/search_update?action=add&rcid=content-class-id
host:port is the host name and port number for the server on which the Catalog Manager is running and content-class-id is the class ID of the content item. A message is shown when the process completes.
To add a specific item to the index for the Vending Manager, log in to the Vending Manager administration console and enter the following URL in the address field of your browser:
http://host:port/vsadmin/main/search_update?action=add&rcid=class-id
host:port is the host name and port number for the server on which the Vending Manager is running and class-id is the class ID of the content item. A message is shown when the process completes.
If rebuilding the index does not resolve issues with incorrect search results, you can delete everything in the index and then rebuild the index as described in Section 1.4.1, Rebuilding the Entire Index.
To remove everything from the search index for the Catalog Manager, log in to the Catalog Manager administration console and enter the following URL in the address field of your browser:
http://host:port/admin/main/search_update?action=delete_all
host:port is the host name and port number for the server on which the Catalog Manager is running. A message is shown when the process completes.
To remove everything from the search index for the Vending Manager, log in to the Vending Manager administration console and enter the following URL in the address field of your browser:
http://host:port/vsadmin/main/search_update?action=delete_all
host:port is the host name and port number for the server on which the Vending Manager is running. A message is shown when the process completes.
If an item appears in search results that you know should not be there and you know the class ID of the item you can manually remove that item from the search index.
To remove a specific item from the index for the Catalog Manager, log in to the Catalog Manager administration console and enter the following URL in the address field of your browser:
http://host:port/admin/main/search_update?action=delete&rcid=class-id
host:port is the host name and port number for the server on which the Catalog Manager is running and class-id is the class ID of the content item. A message is shown when the process completes.
To remove a specific item from the index for the Vending Manager, log in to the Vending Manager administration console and enter the following URL in the address field of your browser:
http://host:port/vsadmin/main/search_update?action=delete&rcid=class-id
host:port is the host name and port number for the server on which the Vending Manager is running and class-id is the class ID of the content item. A message is shown when the process completes.
Copyright © 2008, Sun Microsystems, Inc. All Rights Reserved.