Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 6): Bug 986857
Description of problem: When nsslapd-disk-monitoring-logging-critical is set to "on", disk monitoring plugin monitors filesystem containing DS logs. If filesystem is running out of space, it triggers disk monitoring plugin. However, when nsslapd-disk-monitoring-logging-critical is set to "off", disk monitoring plugin is not checking mentioned filesystem. So, in case when there is not enough space to store logs, disk monitoring is not triggered, even though deleting rotated logfiles would help. Version-Release number of selected component (if applicable): 389-ds-base-1.2.11.15-17.el6_4.x86_64 How reproducible: always Steps to Reproduce: 1. Create a separate filesystem and mount at /var/log/dirsrv/slapd-dstet, configure disk monitoring plugin: [jrusnack@dstet dstet]$ ldapsearch -D "cn=directory manager" -w Secret123 -b "cn=config" -s base | grep "nsslapd-disk-monitoring" nsslapd-disk-monitoring: on nsslapd-disk-monitoring-threshold: 30000000 nsslapd-disk-monitoring-grace-period: 1 nsslapd-disk-monitoring-logging-critical: off [jrusnack@dstet dstet]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_dstet-lv_root 9.4G 7.3G 1.8G 81% / tmpfs 499M 76K 499M 1% /dev/shm /dev/vda1 485M 33M 427M 8% /boot /home/jrusnack/testfs 39M 4.5M 33M 13% /var/log/dirsrv/slapd-dstet [jrusnack@dstet dstet]$ dd if=/dev/zero of=/var/log/dirsrv/slapd-dstet slapd-dstet/ slapd-dstet.bak/ [jrusnack@dstet dstet]$ dd if=/dev/zero of=/var/log/dirsrv/slapd-dstet/foo bs=1M count=10 10+0 records in 10+0 records out 10485760 bytes (10 MB) copied, 0.0435152 s, 241 MB/s [jrusnack@dstet dstet]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_dstet-lv_root 9.4G 7.3G 1.8G 81% / tmpfs 499M 76K 499M 1% /dev/shm /dev/vda1 485M 33M 427M 8% /boot /home/jrusnack/testfs 39M 15M 23M 40% /var/log/dirsrv/slapd-dstet # filesystem containing logs is now filled below the threshold, but disk monitoring plugin is not triggered and no error messages present in the error log 2. Try filling / below the threshold: [jrusnack@dstet dstet]$ dd if=/dev/zero of=/home/jrusnack/foo bs=1K count=1768160 1768160+0 records in 1768160+0 records out 1810595840 bytes (1.8 GB) copied, 46.3845 s, 39.0 MB/s [jrusnack@dstet dstet]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_dstet-lv_root 9.4G 8.9G 23M 100% / tmpfs 499M 76K 499M 1% /dev/shm /dev/vda1 485M 33M 427M 8% /boot /home/jrusnack/testfs 39M 15M 23M 40% /var/log/dirsrv/slapd-dstet [jrusnack@dstet dstet]$ sudo cat /var/log/dirsrv/slapd-dstet/errors | grep "is too low" [22/Jul/2013:11:09:28 +0200] - Disk space is too low on disk (/), remaining space: 22996 Kb, disabling access and audit logging. [22/Jul/2013:11:09:38 +0200] - Disk space is too low on disk (/), remaining space: 22996 Kb, deleting rotated logs. [22/Jul/2013:11:09:58 +0200] - Disk space is too low on disk (/), remaining space: 22992 Kb Actual results: Disk monitoring plugin is not monitoring available space of /var/log/dirsrv/<instance name> mountpoint when nsslapd-disk-monitoring-logging-critical is set to "off". Additional info: See related bugs Bug 982621 - Disk monitoring not shutting down with nsslapd-disk-monitoring-logging-critical set to off Bug 972930 - RHDS not shutting down when disk monitoring threshold is reached to half.
attachment 0001-Ticket-47441-Disk-Monitoring-not-checking-filesystem.patch
git merge diskmon Updating 56e4fac..c088789 Fast-forward ldap/servers/slapd/daemon.c | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-)
git push origin master Counting objects: 11, done. Delta compression using up to 4 threads. Compressing objects: 100% (6/6), done. Writing objects: 100% (6/6), 785 bytes, done. Total 6 (delta 4), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git 56e4fac..c088789 master -> master
commit c088789
1.3.1
df0eb3a..024abee 389-ds-base-1.3.1 -> 389-ds-base-1.3.1
1.3.0
dd74bed..1cca5bf 389-ds-base-1.3.0 -> 389-ds-base-1.3.0
1.2.11
5a0d74a..0ac4187 389-ds-base-1.2.11 -> 389-ds-base-1.2.11 commit 0ac4187
Metadata Update from @mreynolds: - Issue set to the milestone: 1.2.11.22
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/778
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Fixed)
Login to comment on this ticket.