IO monitoring in Nagios xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

IO monitoring in Nagios xi

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: IO monitoring in Nagios xi

Post 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'
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: IO monitoring in Nagios xi

Post 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?
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: IO monitoring in Nagios xi

Post 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
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: IO monitoring in Nagios xi

Post 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.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: IO monitoring in Nagios xi

Post by vtrac »

Hi,
Please follow this KB article below:
https://assets.nagios.com/downloads/nag ... gement.pdf


Regards,
Vinh
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: IO monitoring in Nagios xi

Post 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?
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: IO monitoring in Nagios xi

Post by vtrac »

Hi,
What is your command and arguments?

I know you are using "check_napa.py".


Regards,
Vinh
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: IO monitoring in Nagios xi

Post 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>"
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: IO monitoring in Nagios xi

Post 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