Problem Monitoring Filesystems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rewilliams_spro
Posts: 4
Joined: Tue Dec 15, 2015 10:13 am

Problem Monitoring Filesystems

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Problem Monitoring Filesystems

Post by Box293 »

How are you monitoring them?
What plugin is being used?
What method is used to execute the plugin?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Problem Monitoring Filesystems

Post 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?
Former Nagios Employee
rewilliams_spro
Posts: 4
Joined: Tue Dec 15, 2015 10:13 am

Re: Problem Monitoring Filesystems

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Problem Monitoring Filesystems

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked