Page 1 of 1

Nagios API for disk queue length and disk transfers

Posted: Tue May 14, 2019 6:12 am
by vana1
Hi,
I am trying to do disk usage in NCPA, I am able to get the Disk usage, cpu usage, disk read bytes, disk write bytes just want to know is there any way to display "Disk queue Length" and "Disk transfers" i tried few syntax but nothing seems to work out can anyone help out whether its possible to display disk queue length and disk transfers.

Any idea or help would be much appreciated.

[passive checks]
%HOSTNAME%|CPU Usage = cpu/percent --warning 80 --critical 90 --aggregate avg
%HOSTNAME%|Memory Usage = memory/virtual --units Gi
%HOSTNAME%|Disk Usage = disk/logical/C:|/used_percent --warning 70 --critical 90 --units Gi
%HOSTNAME%|Disk Read Bytes = disk/physical/PhysicalDrive0/read_bytes --delta 1 --warning 10000000 --critical 15000000 --units M
%HOSTNAME%|Disk Write Bytes = disk/physical/PhysicalDrive0/write_bytes --delta 1 --warning 10000000 --critical 15000000 --units M
%HOSTNAME%|Disk Transfers = windowscounters/LogicalDisk(C:)/Disk Transfers/sec --warning 350 --critical 425
%HOSTNAME%|Disk Queue Length = /windowscounters/LogicalDisk(C:)/Avg. Disk Queue Length --warning 2 --critical 10


thanks,
Vana.

Re: Nagios API for disk queue length and disk transfers

Posted: Tue May 14, 2019 4:56 pm
by npolovenko
@vana1, My NCPA agent seems to be working with these commands:
%HOSTNAME%|<service name> = /windowscounters/LogicalDisk(C:)/Avg. Disk Write Queue Length --warning 2 --critical 10
%HOSTNAME%|<service name> = /windowscounters/LogicalDisk(C:)/Avg. Disk Bytes/Transfer --warning 350 --critical 425
Untitled.png
You can test out your commands from the NCPA-API web interface. Type in the NCPA client server IP address in the web browser and add :5693.
Go to the API tab and enter the windows counter.
After you find the counter that works with your system, you can automatically generate a passive check definition by clicking on "As passive check config definition" at the bottom of the screen.