Page 1 of 1
How to Arg values. And i want to set 75% of 10GB space.
Posted: Mon Nov 08, 2021 10:11 am
by chokkam
Hi Team,
How to Pass arg values and i want to set 75% of 10GB space.
example : -n -a '85 90
please help on this query
Re: How to Arg values. And i want to set 75% of 10GB space.
Posted: Mon Nov 08, 2021 4:44 pm
by benjaminsmith
Hi,
For best results, please post the full check command in code wraps to the thread. Every plugin is a little different.
Thanks,
Benjamin
Re: How to Arg values. And i want to set 75% of 10GB space.
Posted: Mon Nov 08, 2021 11:50 pm
by chokkam
Hi Benzaman ,
Thanks for reply. pls see the below image for arg values passing.
check command : check_nrpe
command view : $USER1$/check_nrpe -u -2 -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
$ arg1 $ : check_disk
$arg2$ : -n -a '75 95 /soxdata'
i want to pass 75% of 10.0GB and 90% of 10 GB. how to pass the values
Re: How to Arg values. And i want to set 75% of 10GB space.
Posted: Fri Nov 12, 2021 11:40 am
by benjaminsmith
Hi
Great, thanks for posting that command. So if you are using the Nagios check_disk plugin, it will check the amount of free space remaining (not the amount used), so for example:
Code: Select all
./check_disk -w 25% -c 10% -p /
DISK OK - free space: / 3438 MiB (29.94% inode=75%);| /=8044MiB;9023;10827;0;12031
Here are a few helpful references:
https://support.nagios.com/kb/article/d ... percentage
https://www.monitoring-plugins.org/doc/ ... _disk.html
--Benjamin