Re: IO monitoring in Nagios XI
Posted: Tue Apr 06, 2021 3:25 am
Hello,
I wanted to understand what threshold it is taking for the drives?
I wanted to understand what threshold it is taking for the drives?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
curl -k -v "https://x.x.x.x:5693/api/disk/physical/PhysicalDrive0/?token=<yourToken>"
Code: Select all
C:\Program Files (x86)\Nagios\NCPA\plugins
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x-t 'yourToken' -P 5693 -M plugins/check_ms_win_disk_load.ps1 -a '-dl C'
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H 192.168.254.149 -t 'VT9900' -P 5693 -M plugins/check_ms_win_disk_load.ps1 -a '-dl C'
Here are the outputs:
OK: Drive C: Avg of 2 samples: {Rate (Read: 0.00000MB/s)(Write: 0.13468MB/s)} {Avg Nr of (Reads: 0.00000r/s)(Writes: 6.40290w/s)} {Latency (Read: 0.00000ms)(Write: 0.10900ms)} {Queue Length (Read: 0.00000ql)(Write: 0.00140ql)} | 'Read_Latency'=0.00000ms 'Write_Latency'=0.10900ms 'Read_Queue'=0.00000ql 'Write_Queue'=0.00140ql 'Number_of_Reads'=0.00000r/s 'Number_of_Writes'=6.40290w/s 'Read_Rate'=0.00000MB/s 'Write_Rate'=0.13468MB/s
Code: Select all
check_ms_windows_disk_load.ps1:
This script is designed to monitor Microsoft Windows disk load.
Arguments:
-H | --Hostname => Optional hostname of remote system, default is localhost, not yet tested on remote host.
-dl | --DiskLetter => Diskletter to get data from.
-rqw | --ReadQueueWarn => Warning threshold for read queue length.
-rqc | --ReadQueueCrit => Critical threshold for read queue length.
-wqw | --WriteQueueWarn => Warning threshold for write queue length.
-wqc | --WriteQueueCrit => Critical threshold for write queue length.
-ms | --MaxSamples => Amount of samples to take.
-h | --Help => Print this help output.