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
Disk I/O Critical
Re: Disk I/O Critical
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
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
Can you post the configuration file for this device? That would help better identify the issue.
Re: Disk I/O Critical
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
}
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
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
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
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
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 sda5Former 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.
"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.