DISK CRITICAL - 20% is not accessible

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
jnojr
Posts: 13
Joined: Wed Apr 27, 2016 3:15 pm

DISK CRITICAL - 20% is not accessible

Post by jnojr »

Some of my hosts report this, or "DISK CRITICAL - -c is not accessible" They're all lumped together in my config. I've tried carefully retyping one host stanza to no avail. All use the same check_disk command on the server and the same check_disk client (2.0.3) On the server, I can check_nrpe to check disks on these hosts, and it works fine. I've been Googling away, and a lot of people suggest permission errors, but I'm checking '/' The 'nagios' user is the same on all hosts, including a shell of /sbin/nologon I'm really scratching my head here!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: DISK CRITICAL - 20% is not accessible

Post by rkennedy »

Can you show us the complete check_command that the service is using in conjunction with check_disk? This should help us understand, and be able to replicate on our end.
Former Nagios Employee
jnojr
Posts: 13
Joined: Wed Apr 27, 2016 3:15 pm

Re: DISK CRITICAL - 20% is not accessible

Post by jnojr »

rkennedy wrote:Can you show us the complete check_command that the service is using in conjunction with check_disk? This should help us understand, and be able to replicate on our end.
Unfortunately, this issue is on a network with no Internet connectivity. But I'm using the bone-stock, out-of-the-box commands that came with my Nagios (2.0.3 installed on CentOS 6 from EPEL), and all check_disk stanzas for all hosts, working and not, use an identical command: check_nrpe_disk!check_disk!20%!10%!/
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: DISK CRITICAL - 20% is not accessible

Post by ssax »

The problem I'm seeing is that it's looking for disk c on a Linux system, please validate your configs and find out which service is passing the c (likely a Windows service check).
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: DISK CRITICAL - 20% is not accessible

Post by ssax »

check_nrpe_disk!check_disk!20%!10%!/

I bet the difference is in the nrpe.cfg or common.cfg file with the check_disk definition on that host (most likely order of ARGS).

Check to make sure the command is defined the same on a working host and a non-working host in those files.
jnojr
Posts: 13
Joined: Wed Apr 27, 2016 3:15 pm

Re: DISK CRITICAL - 20% is not accessible

Post by jnojr »

ssax wrote:check_nrpe_disk!check_disk!20%!10%!/

I bet the difference is in the nrpe.cfg or common.cfg file with the check_disk definition on that host (most likely order of ARGS).

Check to make sure the command is defined the same on a working host and a non-working host in those files.
I'll be damned. The nrpe.cfg is different. I change a couple of entries with a sed script, but nothing that would account for this. Oh well, I'll just add another line to hard-set the check_disk command line...

Thanks!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: DISK CRITICAL - 20% is not accessible

Post by ssax »

No problem, glad you got that sorted! Are we okay to lock this up and mark it as resolved?
jnojr
Posts: 13
Joined: Wed Apr 27, 2016 3:15 pm

Re: DISK CRITICAL - 20% is not accessible

Post by jnojr »

ssax wrote:No problem, glad you got that sorted! Are we okay to lock this up and mark it as resolved?
Absolutely :)
Locked