Bug 2090403

Summary: RFE - Reduce the number of messages produced by the Monitoring tab in the JS Console.
Product: Red Hat Directory Server Reporter: Têko Mihinto <tmihinto>
Component: cockpit-389-dsAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 12.0CC: afarley, bsmejkal, gkimetto, ldap-maint, mreynolds
Target Milestone: ---Keywords: Triaged
Target Release: dirsrv-12.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: redhat-ds-12-9010020220729141346.12_1_910 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-06 15:44:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Têko Mihinto 2022-05-25 16:53:47 UTC
Description of problem:
Once one clicks on the Monitoring tab, the following messages are logged every couple of seconds:

CMD: refreshCharts: Get server pid ==> ps -ef | grep -v grep | grep dirsrv/slapd-<INSTANCE> 
CMD: refreshCharts: Get cpu and memory stats ==> top -n 1 -b -p <DS_PID> | tail -1
CMD: refreshCharts: Get total memory ==> awk '/MemTotal/{print $2}' /proc/meminfo
CMD: refreshCharts: Get current count ==> netstat -anp | grep ':389\|:636' | grep ESTABLISHED | grep ns-slapd | wc -l

Version-Release number of selected component (if applicable):
$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 9.1 Beta (Plow)
$
$ rpm -qa | grep 389-ds
389-ds-base-libs-2.0.14-7.module+el9dsrv+14845+69b2f526.x86_64
389-ds-base-2.0.14-7.module+el9dsrv+14845+69b2f526.x86_64
cockpit-389-ds-2.0.14-7.module+el9dsrv+14845+69b2f526.noarch
$

How reproducible:
Always.

Steps to Reproduce:
1. Navigate to the Monitoring tab
2. Select the "Disk Space" tab
3. Open the JS Console
4. The debug messages are logged even when navigating away from the Monitoring tab.

Actual results:
Too much debug messages.

Expected results:
Fewer debug messages ( maybe logging them every 5 minutes if the Monitoring tab is still selected ).

Additional info:

Comment 5 errata-xmlrpc 2022-12-06 15:44:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (redhat-ds:12 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8836