Disk Space Plugin did not detect full disk

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
Siddharth Hegde
Posts: 70
Joined: Mon Aug 07, 2017 4:19 am

Disk Space Plugin did not detect full disk

Post by Siddharth Hegde »

Hi,

In client nrpe.cfg

Code: Select all

command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[check_mnt]=/usr/local/nagios/libexec/check_disk -w 5% -c 3% -p /mnt
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 5% -c 3% -A -I '/extdrive/*'
In nagios client.cfg

Code: Select all

define service{
        use                             generic-service
        host_name                      client
        service_description             Disk Spaces
        check_command                   check_nrpe!check_disk
        contact_groups                 nagios-monitoring
        }
In the above, extdrive was full for more than a day but me or the team didn't get the notification.

Please let me know how to resolve this issue

Regards,
Siddarth Hegde
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disk Space Plugin did not detect full disk

Post by scottwilkerson »

I believe you have an extra * at the end of the command, it should map to just the mount exactly /extdrive/, if not it will default to the base path of /
Use

Code: Select all

command[check_disk]=/usr/local/nagios/libexec/check_disk -w 5% -c 3% -A -I '/extdrive/'
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Siddharth Hegde
Posts: 70
Joined: Mon Aug 07, 2017 4:19 am

Re: Disk Space Plugin did not detect full disk

Post by Siddharth Hegde »

Thank You
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disk Space Plugin did not detect full disk

Post by scottwilkerson »

Siddharth Hegde wrote:Thank You
Did this solve the issue? May we close the thread?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Siddharth Hegde
Posts: 70
Joined: Mon Aug 07, 2017 4:19 am

Re: Disk Space Plugin did not detect full disk

Post by Siddharth Hegde »

Yes Please
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disk Space Plugin did not detect full disk

Post by scottwilkerson »

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked