5.1 Tomcat Valve Logging

You can monitor the web service’s load on the ZENworks Primary Server using valve logs. Response time of the various web service requests coming to the ZENworks Primary Server can also be logged.

IMPORTANT:Valve debug logging is a heavy I/O operation. Performance of the ZENworks Primary Server is affected when valve logging is enabled. Disable or do not enable the Valve logging when you are not debugging.

From ZENworks 2020 Update 3 onwards, the server services are split into Client Management and Admin Management. Based on your requirements, you can enable the valve on the client or admin. For more information see the following sections:

To enable the valve debug logs (Client):

  1. Stop the ZENworks Client Management service on the Primary Servers.

  2. Add debug="true" to the following line within the Engine properties of the server.xml file.

    <Valve className="com.novell.zenworks.tomcat.ZENClientMgmtRequestValve" debug="true"/>

    Path for the server.xml file:

    Linux: /etc/opt/microfocus/zenworks/tomcat-conf/zenclient-mgmt/

    Windows: %ZENSERVER_HOME%\services\zenclient-mgmt\conf

  3. Start the ZENworks Client Management service.

    Valve logs can be found at the following location:

    Linux: /var/opt/microfocus/log/zenworks/client-mgmt/

    Windows: %ZENSERVER_HOME%\services\zenclient-mgmt\logs\

To disable the valve logging, simply comment or remove the lines added in the server.xml file and restart the ZENworks Client Management service.

To enable the valve debug logs (Admin):

  1. Stop the ZENworks Admin Management service on the Primary Servers.

  2. Add debug="true" to the following line within the Engine properties of the server.xml file.

    <Valve className="com.novell.zenworks.tomcat.ZENAdminMgmtRequestValve" debug="true"/>

    Path for the server.xml file:

    Linux: /etc/opt/microfocus/zenworks/tomcat-conf/zenadmin-mgmt/

    Windows: %ZENSERVER_HOME%\services\zenadmin-mgmt\conf

  3. Start the ZENworks Admin Management service.

    Valve logs can be found at the following location:

    Linux: /var/opt/microfocus/log/zenworks/admin-mgmt/

    Windows: %ZENSERVER_HOME%\services\zenadmin-mgmt\logs\

To disable the valve logging, simply comment or remove the lines added in the server.xml file and restart the ZENworks Admin Management services.