Disk I/O Critical

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rahuliq
Posts: 16
Joined: Thu Mar 14, 2013 11:34 am

Disk I/O Critical

Post 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
Attachments
Capture.JPG
rahuliq
Posts: 16
Joined: Thu Mar 14, 2013 11:34 am

Re: Disk I/O Critical

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Disk I/O Critical

Post by slansing »

Can you post the configuration file for this device? That would help better identify the issue.
rahuliq
Posts: 16
Joined: Thu Mar 14, 2013 11:34 am

Re: Disk I/O Critical

Post 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
}
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Disk I/O Critical

Post 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.
rahuliq
Posts: 16
Joined: Thu Mar 14, 2013 11:34 am

Re: Disk I/O Critical

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Disk I/O Critical

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked