The following sections provide information on configuring the settings of the Message Logger component of ZENworks.
The following sections contain information to help you configure the settings in the Management Zone to enable message logging:
In ZENworks Control Center, the Local Device Logging page lets you configure the message logging to a local drive and the system log file of the managed device.
In ZENworks Control Center, click Configuration.
In the Management Zone Settings panel, click Device Management, then click Local Device Logging.
Configure the following options in the Local File panel:
Log Message to a Local File if Severity Is: Choose from one of the following:
Error: Stores messages with a severity of Error.
Warning and Above: Stores messages with a severity of Warning and Error.
Information and Above: Stores messages with a severity of Information, Warning, and Error.
Debug and Above: Stores messages with a severity of Debug, Information, Warning, and Error.
NOTE:The Log Message to a Local File if Severity Is option is applicable only for the zmd-messages, loader-messages and server-messages logs. It is not applicable for the zcc.log file.
If you need to troubleshoot a ZENworks Agent issue on an individual device, you can change the severity setting so that additional information is logged. On the device, double-click the icon in the notification area, click Logging in the left navigation pane, then select an option from the Log Messages if Severity Is drop-down list.
Rolling Based on Size: Closes the current log file and starts a new file based on the file size:
Limit File Size to: Specify the maximum size of the log file, in either kilobytes (KB) or megabytes (MB). The log file is closed after the size of the file reaches the specified limit and a new file is started.
Number of Backup Files: Specify the number of closed files to be backed up. The maximum number of backup files is 13.
Rolling Based on Date: Closes the current log file and starts a new file based on the following schedules:
Daily Pattern: Starts a new file daily.
Monthly Pattern: Starts a new file monthly.
NOTE:Logging based on rolling dates (daily pattern or monthly pattern) will work only when the log file size reaches 100 MB.
NOTE:ZENworks no longer supports Windows Server as a Primary Server from version 24.2 onwards. For more information, see End of Support Windows Primary Server.
On a Windows managed device, the local files include the following:
zmd-messages.log located in %zenworks_home%\logs\LocalStore
On a Linux server, the local files include the following:
zcc.log located in
/var/opt/microfocus/log/zenworks/admin-mgmt
loader-messages.log located in /var/opt/microfocus/log/zenworks
services-messages.log located in:
/var/opt/microfocus/log/zenworks/admin-mgmt
/var/opt/microfocus/log/zenworks/client-mgmt
On a Linux managed device, the local files include the following:
zmd-messages.log located in /var/opt/novell/zenworks/logs/LocalStore
Configure the following options in the System Log panel.
Send Message to Local System Log and Roll Up to Collection Server if Severity Is: Allows you to select the severity of the message to be sent to the local system log and rolled up to the Collection Server. Choose from one of the following:
Error: Stores messages with severity of Error.
Warning and Above: Stores messages with a severity of Warning and Error.
Information and Above: Stores messages with a severity of Information, Warning, and Error.
This setting lets you determine the message types that are added to the local system log. The local system log is the \var\log\messages directory on Linux devices and the zenworks/logs/centralstore directory on Windows devices.
Messages added to this system log directory are sent to the ZENworks Server for viewing in ZENworks Control Center on the Configuration > System Information page or by viewing the Summary page for the server or workstation.
In ZENworks Control Center, the Centralized Message Logging page lets you configure the settings related to message logging performed by the Primary Server.
In ZENworks Control Center, click Configuration.
In the Management Zone Settings panel, click Event and Messaging, then click Centralized Message Logging.
In the Automatic Message Cleanup panel, configure the settings to automatically acknowledge or remove the logged messages from the ZENworks server:
Preferred Maintenance Server: Specify the IP address of the preferred server on which the Message Cleanup actions runs to acknowledge or delete the logged messages from database.
Information: Allows you to configure the following settings for the informational messages:
Auto acknowledge when older than [ ] days: Allows you to automatically acknowledge the logged informational messages that are older than the number of days you specify. For example, if you specify 30 days, then all the informational messages logged before 30 days from the current date are acknowledged when the Message Cleanup activity is scheduled to run. If you specify zero, then the informational messages dated until today are acknowledged. By default, all the informational messages older than 60 days are automatically acknowledged.
Auto delete when older than [ ] days: Allows you to automatically delete the logged informational messages that are older than the number of days you specify. For example, if you specify 30 days, then all the informational messages logged before 30 days from the current date are deleted when the Message Cleanup activity is scheduled to run. If you specify zero, then the informational messages dated until today are deleted. By default, all the informational messages older than 60 days are automatically deleted.
If you want to specify both the auto-acknowledge and auto-delete days, then the number of auto-acknowledge days should always be less than the number for auto-delete days.
Warnings: Allows you to configure the following settings for the warning messages:
Auto acknowledge when older than [ ] days: Allows you to automatically acknowledge the logged warning messages that are older than the number of days you specify. For example, if you specify 30 days, then all the warning messages logged before 30 days from the current date are acknowledged when the Message Cleanup activity is scheduled to run. If you specify zero, then the warning messages dated until today are acknowledged. By default, all the warning messages older than 60 days are automatically acknowledged.
Auto delete when older than [ ] days: Allows you to automatically delete the logged warning messages that are older than the number of days you specify. For example, if you specify 30 days, then all the warning messages logged before 30 days from the current date are deleted when the Message Cleanup activity is scheduled to run. If you specify zero, then the warning messages dated until today are deleted. By default, all the warning messages older than 60 days are automatically deleted.
If you want to specify both the auto-acknowledge and auto-delete days, then the number of auto-acknowledge days should always be less than the number for auto-delete days.
Errors: Allows you to configure the following settings for the error messages:
Auto acknowledge when older than [ ] days: Allows you to automatically acknowledge the logged error messages that are older than the number of days you specify. For example, if you specify 30 days, then all the error messages logged before 30 days from the current date are acknowledged when the Message Cleanup activity is scheduled to run. If you specify zero, then the error messages dated until today are acknowledged. By default, all the error messages older than 60 days are automatically acknowledged.
Auto delete when older than [ ] days: Allows you to automatically delete the logged error messages that are older than the number of days you specify. For example, if you specify 30 days, then all the error messages logged before 30 days from the current date are deleted when the Message Cleanup activity is scheduled to run. If you specify zero, then error messages dated until today are deleted. By default, all the error messages older than 60 days are automatically deleted.
If you want to specify both the auto-acknowledge and auto-delete days, then the number of auto-acknowledge days should always be less than the number for auto-delete days.
Select the Days of the Week and the Time to Perform the Message Cleanup: Allows you to specify the time and the days of the week to run the Message Cleanup action. The administrator can set a daily schedule for Message Cleanup action.
Use Coordinated Universal Time: Allows you to convert the specified time to UTC (GMT) time. By default, this option is selected.
In the E-mail Notification panel, configure the settings to send the error messages to the administrators through e-mail:
Send Log Message via E-mail if Severity Is: Allows you to select the severity of the message to trigger sending the log messages through e-mail.
From: Specify the sender's e-mail address.
To: Specify the e-mail address of the recipients. You can specify more than one e-mail address by separating them with commas.
Subject: Specify the subject to be included while sending the e-mail from the Primary Server. You can customize the Subject field with macro values. For more information on customizing the subject field, see E-Mail Format.
In the SNMP Traps panel, configure the SNMP traps on the ZENworks Server to send log messages:
Send as SNMP Trap if Severity Is: Sends an SNMP trap if the logged message's severity is Error.
Trap Target: Specify the IP address or DNS name of the SNMP server.
Port: Specify the port number of the SNMP server configured for this operation. By default, the port number is 162.
Community String: Specify the community string of the SNMP trap that is to be sent.
In the UDP Forwarder panel, configure the settings to send logged messages through the UDP services. The following table contains information on the options available:
Send Message via UDP: Sends messages to the UDP destinations if the logged message's severity is Error.
UDP Destinations: You can perform the following tasks with the Add, Edit, and Remove options:
Add a Server
Click Add to display the Add UDP Destination Address dialog box.
Specify the server name and the UDP port number configured for this operation.
Click OK.
Remove a Server
Select the check box next to the server (or servers).
Click Remove.
Edit Server Details
Select the check box next to the server.
Click Edit to display the Edit UDP Destination dialog box.
Modify the settings as desired, then click OK.
In the Syslog Server panel, specify the following:
Syslog Server: IP address or hostname of the Syslog server.
Port: Port number through which the system message events or system messages are shared to the Syslog server.
The Syslog Server panel enables you to configure a Syslog server for sending system message events and messages to Syslog servers such as Micro Focus ArcSight and Micro Focus Sentinel.
The Syslog Forwarder panel enables you to configure SIEM tools such as Archsight and Micro Focus Sentinel as Syslog servers to send audit event details and system messages.
To configure a Syslog server, specify IP address or host name of the Syslog server and port number through which the system message events and messages are shared to the Syslog server.
By default, the Message Logger settings configured at the zone level are applied to all the managed devices. However, you can modify the Local Device Logging settings for all the devices within a folder:
In ZENworks Control Center, click Devices.
Click the Folder (Details) option for which you want to configure the Message Logger settings.
Click Settings, then click Device Management > Local Device Logging.
Click Override.
Edit the logging settings as required.
To apply the changes, click Apply.
or
To revert to the Local Device Logging settings configured at the zone level, click Revert.
Click OK.
By default, the Message Logger settings configured at the zone level are applied to all the managed devices. However, you can modify the Local Device Logging settings for the managed device:
In ZENworks Control Center, click Devices.
Click Servers or Workstations to display the list of managed devices.
Click the device for which you want to configure the Message Logger settings.
Click Settings, then click Device Management > Local Device Logging.
Click Override.
Edit the logging settings as required.
To apply the changes click Apply.
or
To revert to the Local Device Logging settings configured at the zone level, click Revert.
Click OK.
To turn on the logging of debug messages for all components:
In ZENworks Control Center, click Configuration.
In the Management Zone Settings panel, click Device Management, then click Local Device Logging.
In the local file panel, select the Log message to a local file if severity is option, then select the severity as Debug and above.
Click Apply, then click OK.