Page 1 of 2

IO monitoring in Nagios XI

Posted: Thu Mar 25, 2021 9:17 am
by kalyanpabolu
Hi Team,

We want to configure IO monitoring in Nagios XI for Windows servers. We have already installed NCPA agent on Windows servers and we are monitoring other OS related parameters.

Can you please help me with suitable plugin for IO monitoring.

Re: IO monitoring in Nagios XI

Posted: Thu Mar 25, 2021 6:41 pm
by ssax
I found these:

https://exchange.nagios.org/directory/P ... ad/details
https://exchange.nagios.org/directory/P ... at/details

NCPA can also monitor these physical disk values:

Code: Select all

./check_ncpa.py -H localhost -t '<your token>' -M 'disk/physical/PhysicalDrive0/read_time'
./check_ncpa.py -H localhost -t '<your token>' -M 'disk/physical/PhysicalDrive0/read_bytes'
./check_ncpa.py -H localhost -t '<your token>' -M 'disk/physical/PhysicalDrive0/write_count'
./check_ncpa.py -H localhost -t '<your token>' -M 'disk/physical/PhysicalDrive0/write_time'
./check_ncpa.py -H localhost -t '<your token>' -M 'disk/physical/PhysicalDrive0/write_bytes'
./check_ncpa.py -H localhost -t '<your token>' -M 'disk/physical/PhysicalDrive0/read_count'

Re: IO monitoring in Nagios XI

Posted: Sat Mar 27, 2021 12:26 am
by kalyanpabolu
Hello,

Thank you for reply!!

I am getting the output for PhysicalDrive0. So, similarly I can get the output for other drives too right?

Re: IO monitoring in Nagios XI

Posted: Mon Mar 29, 2021 3:55 pm
by vtrac
Hi,
Yes, assuming you have more than one drive.

Another way to know what physical disk you have is to run the below command on your XI prompt:

Code: Select all

curl -k -v "https://x.x.x.x:5693/api/disk/physical/?token=<yourToken>"

Regards,
Vinh

Re: IO monitoring in Nagios XI

Posted: Tue Mar 30, 2021 9:22 am
by kalyanpabolu
Hello,

Thank you for your help!!
Its working as expected. Can you please let me know how to configure this in Nagios XI?
I am talking about service configuration.

Re: IO monitoring in Nagios XI

Posted: Tue Mar 30, 2021 9:51 am
by vtrac
Hi,
Please follow this KB article below:
https://assets.nagios.com/downloads/nag ... gement.pdf


Regards,
Vinh

Re: IO monitoring in Nagios XI

Posted: Tue Mar 30, 2021 9:56 am
by kalyanpabolu
Hello,

I am aware how to configure service in Nagios.
But this is a direct command with no plugins so I was confused like how to add it.
Can you guide me on the same please?

Re: IO monitoring in Nagios XI

Posted: Tue Mar 30, 2021 10:21 am
by vtrac
Hi,
What is your command and arguments?

I know you are using "check_napa.py".


Regards,
Vinh

Re: IO monitoring in Nagios XI

Posted: Wed Mar 31, 2021 3:30 am
by kalyanpabolu
Hello,

I wanted t use below as service in Nagios XI.
curl -k -v "https://x.x.x.x:5693/api/disk/physical/ ... <yourToken>"

Re: IO monitoring in Nagios XI

Posted: Wed Mar 31, 2021 9:22 am
by vtrac
Hi,
It is best to use NCPA "check_ncpa.py" script.
The curl command I gave you just a quick way to check your system. It does not give you any option to check or return the status like "OK" or "Critical".

From the "curl" command, you can pass what you are looking for with the "-M" option (example below):

Code: Select all

./check_ncpa.py -H localhost -t '<your token>' -M 'disk/physical/PhysicalDrive0/read_time'

Regards,
Vinh