Page 1 of 1

Disk I/O Critical

Posted: Mon Apr 29, 2013 9:57 am
by rahuliq
Hi

I'm using check_linux_stats.pl plugin to monitor disk I/O.
When I execute the check on the local machine as below

/usr/local/nagios/libexec/check_linux_stats.pl -I -w 100,70 -c 150,100 -p sda5

The output I'm getting is DISK OK io : |sda5_read=0.00;100;150 sda5_write=0.00;70;100

But the Nagios tool is constantly displaying disk io critical as shown in the attachment.

Can somebody please help as what could be the issue.

Regards
Rahul

Re: Disk I/O Critical

Posted: Mon Apr 29, 2013 10:08 am
by rahuliq
All

I removed the service check from the .cfg file and restarted Nagios.

Then a little later I re-added the check and upon restarting Nagios I'm getting the correct result.

Still could somebody help as to why Nagios was showing the wrong result earlier.

Regards
Rahul

Re: Disk I/O Critical

Posted: Mon Apr 29, 2013 10:25 am
by slansing
Can you post the configuration file for this device? That would help better identify the issue.

Re: Disk I/O Critical

Posted: Mon Apr 29, 2013 11:17 am
by rahuliq
Hi

Below is the conf file

define host{
use linux-server,host-pnp
host_name xxx.xxx.com
alias xxx
address xxx.xxx.com
}

define service{
use local-service,srv-pnp
host_name xxx.xxx.com
service_description Total Processes
check_command check_nrpe!check_total_procs
}


define service{
use local-service,srv-pnp
host_name xxx.xxx.com
service_description CPU Load
check_command check_nrpe!check_load
}
define service{
use local-service,srv-pnp
host_name xxx.xxx.com
service_description / Partition
check_command check_nrpe!check_vg_shifu-lv_root
}

define service{
use local-service,srv-pnp
host_name xxx.xxx.com
service_description /opt/solr Partition
check_command check_nrpe!check_vg_shifu-lv_solr
}

define service{
use local-service,srv-pnp
host_name xxx.xxx.com
service_description cpu utilization
check_command check_nrpe!check_cpu_utilization
}

define service{
use local-service,srv-pnp
host_name xxx.xxx.com
service_description memory utilization
check_command check_nrpe!check_memory_utilization
}

define service{
use local-service,srv-pnp
host_name xxx.xxx.com
service_description DISK I/O
check_command check_nrpe!check_DISK_I/O
}

Re: Disk I/O Critical

Posted: Mon Apr 29, 2013 11:42 am
by slansing
Are you not setting a warning and critical threshold for the disk I/O service? It could have returned critical and blank like that if you had not defined those values and it required them.

Re: Disk I/O Critical

Posted: Mon Apr 29, 2013 11:49 am
by rahuliq
I'm setting them in the nrpe.cfg file on the remote machine.

command[check_DISK_I/O]=/usr/local/nagios/libexec/check_linux_stats.pl -I -w 100,70 -c 150,100 -p sda5

The thing is the check was working fine all these days just until this afternoon, even the pnpgraph seems to have been stuck at one value

Re: Disk I/O Critical

Posted: Mon Apr 29, 2013 2:18 pm
by abrist
If you run this check locally from the remote system, what is the output?

Code: Select all

/usr/local/nagios/libexec/check_linux_stats.pl -I -w 100,70 -c 150,100 -p sda5