Page 1 of 1
Possible to monitor free diskspace with Gb value
Posted: Mon Jun 21, 2021 4:22 am
by hbronk
Hi there,
We are currently monitoring our systems with the NCPA monitoring plugin, works great, but ...
Disk space is measured in % now but some systems got large diskspace available so gives warnings already if there is plenty.
Can we set the treshold to a fixed value ?
warning < 20 GB if free space is less then 20GB
Critical <10GB
Any documentation of examples available ?
thanks
Re: Possible to monitor free diskspace with Gb value
Posted: Mon Jun 21, 2021 2:08 pm
by vtrac
Hi,
How are you doing?
I found the following KB, which has many examples of disk space checks:
https://support.nagios.com/kb/article.php?id=770
Here's one example, which I think is very close to what you are looking for:
Code: Select all
NCPA
NPCA includes a disk module. Using the Nagios Plugin Threshold standards, the thresholds are triggered if the free space is less than the supplied value.
Path: C:\ (Needs to be expressed as C:|)
Unit: GB
Warning: 10GB Free
Critical: 5GB Free
Command:
./check_ncpa.py -H 10.25.14.91 -t Str0ngT0k3n -M 'disk/logical/C:|/free' --warning 10: --critical 5: -u G
Output:
OK: Free was 50.04 GB | 'free'=50.04GB;10:;5:;
Best Regards,
Vinh
Re: Possible to monitor free diskspace with Gb value
Posted: Wed Jun 23, 2021 2:27 am
by hbronk
Hi,
thanks for the answer and changed it with the bulk modification tool.
Got us a bitof tiem to figure out how to change it.
So we have the right command for hecking a disk > selected the services (check disk c) for the NCPA collected services
put in the command 'disk/logical/C:|/free' --warning 10: --critical 5: -u G and then changed it.
Nice !
Re: Possible to monitor free diskspace with Gb value
Posted: Wed Jun 23, 2021 10:34 am
by vtrac
Great!! ....
May I lock this thread?
Regards,
Vinh