How to Arg values. And i want to set 75% of 10GB space.

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
chokkam
Posts: 8
Joined: Sun Sep 19, 2021 10:09 pm

How to Arg values. And i want to set 75% of 10GB space.

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: How to Arg values. And i want to set 75% of 10GB space.

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

Be sure to check out our Knowledgebase for helpful articles and solutions!
chokkam
Posts: 8
Joined: Sun Sep 19, 2021 10:09 pm

Re: How to Arg values. And i want to set 75% of 10GB space.

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: How to Arg values. And i want to set 75% of 10GB space.

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

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked