Page 1 of 1
Problem Monitoring Filesystems
Posted: Tue Dec 22, 2015 5:00 pm
by rewilliams_spro
Hello all, I am trying to monitor the following file systems but am getting the below errors?
/ Disk Usage Critical 3h 33m 8s 5/5 2015-12-22 15:55:11 DISK CRITICAL - 20% is not accessible: No such file or directory
/u01 Disk Usage Critical 3h 30m 22s 5/5 2015-12-22 15:55:28 DISK CRITICAL - 20% is not accessible: No such file or directory
/var Disk Usage Critical 3h 30m 22s 5/5 2015-12-22 15:55:28 DISK CRITICAL - 20% is not accessible: No such file or directory
Any help is appreciated.
Thanks
Re: Problem Monitoring Filesystems
Posted: Tue Dec 22, 2015 5:01 pm
by Box293
How are you monitoring them?
What plugin is being used?
What method is used to execute the plugin?
Re: Problem Monitoring Filesystems
Posted: Tue Dec 22, 2015 5:03 pm
by rkennedy
Can you provide a bit more information about these checks -
- How are these service checks running?
- Are they on the local Nagios server, or a remote host?
- What script are you using to check the filesystem?
- Can you post a screenshot of the service definition page for one of these checks?
Re: Problem Monitoring Filesystems
Posted: Tue Dec 29, 2015 1:43 pm
by rewilliams_spro
Sorry for the late response. I am very new to nagios so be gentle lol.
1. During the initial setup of a client , you are able to specify the file systems. I specified /var, /d01 and /u01. Can you monitor logical volumes? Does it need to be device. I have tried both of these.
OLD check_nrpe!check_disk!-a '-w 20% -c 10% -p /var'
CHANGED TO check_nrpe!check_disk!-a '-w 20% -c 10% -p /dev/mapper/vg_server-lv_var'
Just noticed that in the nrpe.cfg file the following is hard coded. Do i need to change this to /dev/mapper/vg_server-lv_var?
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
2. I am using the NRPE plugin to monitor the file systems. Should i be using something else?
3. I am not sure what the service definition page is. The only thing that is not working is file system monitoring.
Please ask for other information if needed.
Re: Problem Monitoring Filesystems
Posted: Tue Dec 29, 2015 1:50 pm
by Box293
rewilliams_spro wrote:Just noticed that in the nrpe.cfg file the following is hard coded. Do i need to change this to /dev/mapper/vg_server-lv_var?
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
You can create a custom command like:
Code: Select all
command[check_disk_custom]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p $ARG1$
And then you would change your service to:
Code: Select all
check_nrpe!check_disk_custom!-a '/dev/mapper/vg_server-lv_var'
rewilliams_spro wrote:2. I am using the NRPE plugin to monitor the file systems. Should i be using something else?
This is fine. The NRPE client is actually using the plugin /usr/local/nagios/libexec/check_disk
rewilliams_spro wrote:3. I am not sure what the service definition page is. The only thing that is not working is file system monitoring.
Core Configuration Manager > Monitoring > Services
Click the service in question