check_disk is not monitoring all the partition

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.
Locked
deepak727
Posts: 1
Joined: Sun Aug 21, 2016 10:00 am

check_disk is not monitoring all the partition

Post by deepak727 »

Dear All,

I have seen this topic in the forum but the solution offered is not working for me, so I am posting it as a new topic,.

I am using nagios check_disk plugin to monitor all the linux partition which are mounted and visible using df -h command but it seems it is not working that way.

Please see the below df -h output

Code: Select all

Filesystem                       Size  Used Avail Use% Mounted on
devtmpfs                          18G     0   18G   0% /dev
tmpfs                             18G  110M   18G   1% /dev/shm
tmpfs                             18G  714M   17G   4% /run
tmpfs                             18G     0   18G   0% /sys/fs/cgroup
/dev/mapper/rootvg-LV01          9.8G  764M  8.5G   9% /
/dev/mapper/rootvg-LV04          9.8G  3.5G  5.8G  38% /usr
/dev/sda1                        976M  138M  772M  16% /boot
/dev/mapper/rootvg-LV09           20G  3.5G   16G  19% /u01/app/ora11g
/dev/mapper/rootvg-LV08           48G   15G   31G  33% /backup
/dev/mapper/rootvg-LV07           48G   16G   30G  35% /logs
/dev/mapper/rootvg-LV05          4.8G  265M  4.3G   6% /tmp
/dev/mapper/rootvg-LV06          9.8G  2.3G  7.0G  25% /code
/dev/mapper/rootvg-LV02          6.8G  700M  5.8G  11% /home
/dev/mapper/rootvg-LV03          4.8G  2.5G  2.1G  54% /var
As we can see the /var partition is using 54%.

Now I am using below command on this server itself.

Code: Select all

 /usr/local/nagios/libexec/check_disk -w 50% -c 30% /
DISK OK - free space: / 8659 MiB (91.89% inode=98%);| /=763MiB;4975;6965;0;9951

[test@meserver ~]$ /usr/local/nagios/libexec/check_disk -w 50% -c 30% /*
DISK OK - free space: /backup 30978 MiB (67.67% inode=100%);| /backup=14800MiB;24126;33776;0;48252
As you can see the fires command only show the output for / partition and when I add * , it only shows the backup partition.

Can anyone help here where I can monitor all the partition using check_disk command.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: check_disk is not monitoring all the partition

Post by mcapra »

I don't think there's any positional arguments accepted by the check_disk plugin.

You might try supplying the -A argument instead. From the help info:
http://nagios-plugins.org/doc/man/check_disk.html

Code: Select all

     -A, --all
        Explicitly select all paths. This is equivalent to -R '.*'
Former Nagios employee
https://www.mcapra.com/
nadeem.shaikh
Posts: 2
Joined: Mon Feb 05, 2018 6:47 am
Location: India

Re: check_disk is not monitoring all the partition

Post by nadeem.shaikh »

Hi deepak727,

Try using below command and check whether it is working for you.

~]$ /usr/local/nagios/libexec/check_disk -w 50% -c 30%


You are using "/" with command that is why you are not getting output of all partition.

Regards,
Nadeem S.
WilliamPsymn
Posts: 1
Joined: Sun Jan 09, 2022 6:52 pm
Location: Hungary
Contact:

Предварительно многими парами встает вопрос выбора отверстие

Post by WilliamPsymn »

Предварительно многими парами встает дилемма выбора поры возраст для празднования свадьбы. Ради большинства, сей круг очевиден и они останавливаются для теплом времени года. Некоторым, наизворот, по душе зимняя свадьба. Коль вы хотите устроить себе зимнюю сказку, только однако кроме сомневаетесь, то попробуем развеять эти сомнения и встречать безвыездно преимущества зимней свадьбы.
Несомненное преимущество зимней свадьбы – это лишение проблем с выбором даты торжества, так как в это сезон года количество желающих пожениться меньше. По этой же причине, значительно проще выбрать ресторан и встречать свободных подрядчиков. Данное важность сможет сэкономить массу ваших нервов и драгоценного времени. В итоге, шансы исполнять незабываемое праздник возрастают.
В подспорье вам доказательство наших партнеров:
http://prazdniki-podolsk.ru/
Locked