Linuxfabrik / monitoring-plugins

220+ check plugins for Icinga and other Nagios-compatible monitoring applications. Each plugin is a standalone command line tool (written in Python) that provides a specific type of check.
https://linuxfabrik.ch
The Unlicense
220 stars 51 forks source link

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

Open SnejPro opened 1 year ago

SnejPro commented 1 year ago

This issue respects the following points:

Which variant of the Monitoring Plugins do you use?

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 commented 1 year ago

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