Hi all,
I install nagios and is happy except for the check_disk on /
I test on the serveur with / and with /dev/sda7 which is the partition with the following command the same for /var/log and /dev/shm which are OK :
[root@kstoocky01 etc]# /usr/local/nagios/libexec/check_disk -u GB -w 60% -c 80% -p /dev/sda7
DISK CRITICAL - free space: / 0 GB (38% inode=77%);| /=0GB;0;0;0;0
but if I do df -h / I get :
[root@kstoocky01 etc]# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 969M 569M 350M 62% /
I work with a centos 6.6 and the last release of nagios and nrpe. I try some other parameters of check_disk but with no other result.
Is there something to do on the server or using another plugins ?
Many thank's in advance.
check_disk can't give true data on /
-
- Posts: 6
- Joined: Tue Aug 18, 2015 4:46 am
check_disk can't give true data on /
La vie est belle Pierre Léonard
Re: check_disk can't give true data on /
Change "-p /dev/sda7" to "-p /" and see if that works.
Also, this is a Nagios Core or Nagios XI issue, not a Nagios Incident Manager issue, so you put this in the wrong topic. I am sure one of the moderators will be happy to move it though.
Also, this is a Nagios Core or Nagios XI issue, not a Nagios Incident Manager issue, so you put this in the wrong topic. I am sure one of the moderators will be happy to move it though.
-
- Posts: 6
- Joined: Tue Aug 18, 2015 4:46 am
Re: check_disk can't give true data on /
Hi Eliod,
Unfortunately, the answer is the same.
I had just deployed nrpe on my different clusters and serveurs and the result is the same.
[root@xstoocky02 ~]# /usr/local/nagios/libexec/check_disk -u GB -w 60% -c 80% -p /
DISK CRITICAL - free space: / 0 GB (4% inode=72%);| /=0GB;0;0;0;0
unlucky.
Is it a bug in the last release ?
nrpe-2.15.tgz
or a cenros configuration which is the same on all or serveurs ?
I have no idea.
Many thank's
Unfortunately, the answer is the same.
I had just deployed nrpe on my different clusters and serveurs and the result is the same.
[root@xstoocky02 ~]# /usr/local/nagios/libexec/check_disk -u GB -w 60% -c 80% -p /
DISK CRITICAL - free space: / 0 GB (4% inode=72%);| /=0GB;0;0;0;0
unlucky.
Is it a bug in the last release ?
nrpe-2.15.tgz
or a cenros configuration which is the same on all or serveurs ?
I have no idea.
Many thank's
La vie est belle Pierre Léonard
Re: check_disk can't give true data on /
pierreleonard78 wrote:Hi Eliod,
Unfortunately, the answer is the same.
I had just deployed nrpe on my different clusters and serveurs and the result is the same.
[root@xstoocky02 ~]# /usr/local/nagios/libexec/check_disk -u GB -w 60% -c 80% -p /
DISK CRITICAL - free space: / 0 GB (4% inode=72%);| /=0GB;0;0;0;0
unlucky.
Is it a bug in the last release ?
nrpe-2.15.tgz
or a cenros configuration which is the same on all or serveurs ?
I have no idea.
Many thank's
You may want to run a
Code: Select all
/usr/local/nagios/libexec/check_disk -h
and look at the output of that command.
You're triggering a warning right now because there's less than 60/80% free. I'm guessing you want this to be opposite? Warning when 60/80 is used up?
Please let me know if I am understanding this wrong.
Former Nagios Employee.
me.
me.
Re: check_disk can't give true data on /
I think, look closer. df is showing MB usage, chekc_disk is showing 0GB used.
Last edited by eloyd on Tue Aug 18, 2015 11:33 am, edited 1 time in total.
-
- Posts: 6
- Joined: Tue Aug 18, 2015 4:46 am
Re: check_disk can't give true data on /
Hi eliod,
df -h give :
[root@xstoocky02 ~]# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sdm8 673M 609M 30M 96% /
Ok I have found the disk usage is critical and i see 0 because I aks in GB when I ask in MB I get :
[root@xstoocky02 ~]# /usr/local/nagios/libexec/check_disk -u MB -w 20% -c 30% -p /
DISK CRITICAL - free space: / 29 MB (4% inode=72%);| /=608MB;537;470;0;672
Whixh is better
Sorry for that parameter error.
I thank you very much all of you four your help
df -h give :
[root@xstoocky02 ~]# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sdm8 673M 609M 30M 96% /
Ok I have found the disk usage is critical and i see 0 because I aks in GB when I ask in MB I get :
[root@xstoocky02 ~]# /usr/local/nagios/libexec/check_disk -u MB -w 20% -c 30% -p /
DISK CRITICAL - free space: / 29 MB (4% inode=72%);| /=608MB;537;470;0;672
Whixh is better
Sorry for that parameter error.
I thank you very much all of you four your help
La vie est belle Pierre Léonard
Re: check_disk can't give true data on /
This is working for you, then?pierreleonard78 wrote:Hi eliod,
df -h give :
[root@xstoocky02 ~]# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sdm8 673M 609M 30M 96% /
Ok I have found the disk usage is critical and i see 0 because I aks in GB when I ask in MB I get :
[root@xstoocky02 ~]# /usr/local/nagios/libexec/check_disk -u MB -w 20% -c 30% -p /
DISK CRITICAL - free space: / 29 MB (4% inode=72%);| /=608MB;537;470;0;672
Whixh is better
Sorry for that parameter error.
I thank you very much all of you four your help
Am I all right to close this thread?
Former Nagios Employee.
me.
me.
-
- Posts: 6
- Joined: Tue Aug 18, 2015 4:46 am
Re: check_disk can't give true data on /
Sorry,
Yes of course.
Pierre
Yes of course.
Pierre
La vie est belle Pierre Léonard