Check disk error
Posted: Thu Nov 18, 2010 1:00 pm
Hi, first thing first - I'm new to nagios and to Linux - sorry.
I've setup nagios and it seems to be working. But, when I setup a definition to check hard drive space on one of my test linux box and run nagios -v. I get an error message.
Error: Service check command 'check_disk -w 10% -c 5% /tmp -p /var -C -w 100000 -c 50000 -p /' specified in service 'linux1.test.com' for host 'linux1' not defined anywhere!
I found this link - http://nagiosplugins.org/man/check_disk
And, this sample below.
check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /
Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB
This is where I got the idea from.
I've also tried this
define service {
use local-service
host_name localhost
service_description Root Partition
check_command check_local_disk!20%!10%!/
}
After defining this and running nagios -v - I get no errors. But, when I tested it by filling up the hd with dummy files. It doesn't alert me of the status of the filled HD. So, that's when I tried the "check_disk".
Please help - thanks.
I've setup nagios and it seems to be working. But, when I setup a definition to check hard drive space on one of my test linux box and run nagios -v. I get an error message.
Error: Service check command 'check_disk -w 10% -c 5% /tmp -p /var -C -w 100000 -c 50000 -p /' specified in service 'linux1.test.com' for host 'linux1' not defined anywhere!
I found this link - http://nagiosplugins.org/man/check_disk
And, this sample below.
check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /
Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB
This is where I got the idea from.
I've also tried this
define service {
use local-service
host_name localhost
service_description Root Partition
check_command check_local_disk!20%!10%!/
}
After defining this and running nagios -v - I get no errors. But, when I tested it by filling up the hd with dummy files. It doesn't alert me of the status of the filled HD. So, that's when I tried the "check_disk".
Please help - thanks.