monitoring-plugins icon indicating copy to clipboard operation
monitoring-plugins copied to clipboard

disk-io: don't monitor user disks on windows

Open SnejPro opened this issue 2 years ago • 1 comments

This issue respects the following points:

  • [X] This is a bug, not a question or a setup/configuration issue.
  • [X] This issue is not already reported on Github (I've searched it).
  • [X] I use the latest release of the Monitoring Plugins (https://github.com/Linuxfabrik/monitoring-plugins/releases).
  • [X] I agree to follow Monitoring Plugins's Code of Conduct.

Which variant of the Monitoring Plugins do you use?

  • [ ] .rpm/.deb package from repo.linuxfabrik.ch
  • [ ] Compiled for Linux (.tar/.zip from download.linuxfabrik.ch)
  • [X] Compiled for Windows (from download.linuxfabrik.ch)
  • [ ] Source Code from GitHub

Bug description

I use disk-io-windows to monitor several Windows servers. Two of these servers are Windows Terminal Servers with user profile disks. Users therefore "take their data" with them when they log on to one of the terminal servers.

grafik

Unfortunately, disk-io-windows also logs these virtual disks and thus stores a lot of unnecessary performance data.

It would therefore be good if disk-io-windows did not monitor these disks or if this could at least be set.

Steps to reproduce - Plugin call

'C:\ProgramData\icinga2\usr\lib64\nagios\plugins\disk-io.exe' '--count' '5' '--critical' '90' '--ignore' 'sr0' '--ignore' 'loop0' '--ignore' 'loop1' '--ignore' 'loop2' '--ignore' 'loop3' '--ignore' 'loop4' '--ignore' 'loop5' '--ignore' 'loop6' '--ignore' 'loop7' '--ignore' 'loop8' '--ignore' 'loop9' '--ignore' 'zram0' '--warning' '80'

Steps to reproduce - Data


PhysicalDrive0: 1.1KiB/s read, 33.5KiB/s write (current)
Disk           ! RWmax/s ! R1/s   ! W1/s    ! R5/s   ! W5/s    ! RW5/s   

---------------+---------+--------+---------+--------+---------+---------

PhysicalDrive0 ! 12.5MiB ! 1.1KiB ! 33.5KiB ! 685.5B ! 29.4KiB ! 30.0KiB 

PhysicalDrive1 ! 10.0MiB ! 0.0B   ! 3.3KiB  ! 0.0B   ! 2.2KiB  ! 2.2KiB  

PhysicalDrive2 ! 10.0MiB ! 0.0B   ! 2.2KiB  ! 17.1B  ! 49.5KiB ! 49.5KiB 



Top3 processes that generated the most I/O traffic:

1. WmiPrvSE.exe: 20.4GiB/69.6KiB (r/w)

2. svchost.exe: 1.8GiB/219.6MiB (r/w)

3. mcshield.exe: 1.5GiB/29.7MiB (r/w)

Environment

Windows Server 2022

Plugin Version

2023051201

Python version

No response

List of Python modules

No response

Additional Information

No response

SnejPro avatar Sep 24 '23 17:09 SnejPro

I think changes need to be made to psutil first: https://github.com/giampaolo/psutil/issues/2306

SnejPro avatar Sep 24 '23 17:09 SnejPro