SiteScope Log Preferences and Database LoggingEffective system availability monitoring requires that monitoring data be recorded and stored for an appropriate interval of time. Depending on the size of the data center, network, the number of servers and applications being monitored and the frequency of monitoring, managing the accumulated data can become challenging task in it self. Data records are needed for reporting on availability and performance over time. Yet eventually data storage becomes a problem. SiteScope Log Preferences and Database Logging options allow you to control data accumulation and storage. This section describes:
About SiteScope Logs and Data Logging OptionsBy default, SiteScope saves monitor results, alert data, error data, and other readings returned by monitors into log files. These data are stored as tab delimited text. SiteScope uses the log files to generate various management reports. For monitor data results, a new, date-coded log file is created for each 24-hour period of monitoring. SiteScope can also send monitoring data to an external database application. You can use this to reduce the data storage capacity of the SiteScope server and also make the monitoring data available to other reporting tools. Setting SiteScope Log PreferencesUse the Log Preferences form to limit how much log information SiteScope saves to the local file system. The amount of data can be limited to the number of days to maintain log files or to a maximum data log file size. Note: In order to create a SiteScope management report the monitoring log information for the desired time period of the report must be available on the SiteScope server file system. Enter the log preference options as indicated below and then click the Save Changes button located at the bottom of the form.
Database LoggingSiteScope can optionally log a copy of all the monitoring data into a database. Any database which supports the ODBC or JDBC standards can be used, including Microsoft SQL Server and Oracle.
After you save changes to the Database preferences, you need to stop and restart the SiteScope service to have the changes take effect. Troubleshooting Database ConnectionsWhen Database logging is active and working correctly, you should see a table called SiteScopeLog in your database and a record added to the table every time a monitor runs. The data is sent to the database as a single table in a flat-file format. For additional details, see the section about Log Descriptions. If a table called SiteScopeLog is not created or is empty, check the SiteScope <SiteScope install path>/SiteScope/logs/RunMonitor.log and <SiteScope install path>/SiteScope/logs/Error.log files for log messages starting with "jdbc" or "odbc". When Database logging is working correctly, you should see a set of messages in RunMonitor.log that looks like this: jdbc log, reconnect seconds=600 jdbc log, loading, driver=sun.jdbc.odbc.JdbcOdbcDriver jdbc log, connecting, url=jdbc:odbc:SiteScopeLog, jdbc log, logged in jdbc log, checking log table jdbc log, created log table jdbc log, prepare insert, 19, INSERT INTO SiteScopeLog... jdbc log, connected If these entries do not appear in the log file there is a problem with the database interface or configuration of the database connection. You should also carefully check the Database Connection URL you entered above. This parameter is case sensitive. It is also sensitive to leading or trailing white space which may be the reason the connection does not work properly. Check the spelling and letter case of the connection URL and be sure there are no leading or trailing spaces present in the text box. You can also check the on-line Knowledge Base available via the Customer Support site for other information relating to database logging.
|