How to set-up Disk I/O Service in Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

How to set-up Disk I/O Service in Nagios

Post by glenl »

How to set-up Disk I/O Service in Nagios

Thanks in Advance.
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

Re: How to set-up Disk I/O Service in Nagios

Post by glenl »

I have checked our Nagios.
2 servers have disk i/o defined in them.
The check command describes "check_counter", while the description states "$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckCounter -a "Counter=$ARG1$" ShowAll MaxWarn=$ARG2$ MaxCrit=$ARG3$ ". Does this actually check DISK I/O?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to set-up Disk I/O Service in Nagios

Post by slansing »

You would be able to combine this with a Performance Counter to retrieve disk I/O, which counter are you looking at using? We can fill in the check command for you once we know this, so that you see an example of how to configure them.
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

Re: How to set-up Disk I/O Service in Nagios

Post by glenl »

I would like to know if the parameter set is indeed intended to check disk i/o.

$ARG1$: \\PhysicalDisk(_Total)\\% Disk Time
$ARG2$ and $ARG3$: 60 and 90


Thanks.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to set-up Disk I/O Service in Nagios

Post by slansing »

Well, for instance, if we were going to run a Average Transfer I/O counter check it would be defined as follows:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H (windows ip goes here) -c CheckCounter -a "Counter:=\\PhysicalDisk(0 C:)\Avg. Disk sec/Transfer" ShowAll MaxWarn=60 MaxCrit=90
Try running this from the Nagios server's command line, to the Windows server's IP and see what you get.
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

Re: How to set-up Disk I/O Service in Nagios

Post by glenl »

Thank you the information. I will try it. But,, is the command below is intended to check disk I/O?


$ARG1$: \\PhysicalDisk(_Total)\\% Disk Time
$ARG2$ and $ARG3$: 60 and 90



One of the staff set this command to our nagios but he's not connected now to the company , so i don't know if the parameter is intended to check disk I/O.

Thanks.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to set-up Disk I/O Service in Nagios

Post by slansing »

From Microsoft's TechNet posting on performance counters:
PhysicalDisk : % Disk Time. Much like % Processor time, this counter is a general mark of how busy the disk is. You will see many similarities between the disk and processor since they are both transaction-based services. This counter indicates a disk problem, but must be observed in conjunction with the Current Disk Queue Length counter to be truly informative. Recall also that the disk could be a bottleneck prior to the % Disk Time reaching 100%.
http://technet.microsoft.com/en-us/libr ... 68048.aspx

So yes, it is a form of I/O checking, but if you use this alone, you may want to combine it with another check.
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

Re: How to set-up Disk I/O Service in Nagios

Post by glenl »

Thank you very much SLANSING :D
Locked