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.
Siddharth Hegde
Posts: 70 Joined: Mon Aug 07, 2017 4:19 am
Post
by Siddharth Hegde » Mon Oct 01, 2018 2:39 am
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:
Post
by scottwilkerson » Mon Oct 01, 2018 2:15 pm
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/'
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed Oct 03, 2018 9:44 am
Siddharth Hegde wrote: Thank You
Did this solve the issue? May we close the thread?