Page 1 of 1

Disk Space Plugin did not detect full disk

Posted: Mon Oct 01, 2018 2:39 am
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

Re: Disk Space Plugin did not detect full disk

Posted: Mon Oct 01, 2018 2:15 pm
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/'

Re: Disk Space Plugin did not detect full disk

Posted: Wed Oct 03, 2018 12:27 am
by Siddharth Hegde
Thank You

Re: Disk Space Plugin did not detect full disk

Posted: Wed Oct 03, 2018 9:44 am
by scottwilkerson
Siddharth Hegde wrote:Thank You
Did this solve the issue? May we close the thread?

Re: Disk Space Plugin did not detect full disk

Posted: Wed Oct 03, 2018 9:56 am
by Siddharth Hegde
Yes Please

Re: Disk Space Plugin did not detect full disk

Posted: Wed Oct 03, 2018 10:07 am
by scottwilkerson
Locking