Page 1 of 1

How to use the CheckDriveSize plugin in Nagios server

Posted: Thu Nov 24, 2016 10:28 am
by Nico31Nagios
Hello,

I should have some help about the using of this plugin.

I try to test this commande for interrogate my client windows server and I have this result:

./check_nrpe -H IP_CLEINTE -t 30 -c alias_disk -a ShowAll MinWarnFree=10% MinCritFree=5G Drive=C:
Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option).


In the file nsclient.ini of my windows server there is:

alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll

I would like to check only the drive C: with the generic alias_disk plugin define in the client windows.
Is it possible ?

Could you help me about that ?

Thanks a lot.

Re: How to use the CheckDriveSize plugin in Nagios server

Posted: Mon Nov 28, 2016 2:26 pm
by mcapra
You will need to change your NSClient++ configuration to allow arguments for scripts. Please refer to these documents depending on your NSClient++ version:

0.4.x:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

0.3.x:
https://assets.nagios.com/downloads/nag ... -0.3.x.pdf

This KB article also contains some of the same steps mentioned in those documents:
https://support.nagios.com/kb/article.php?id=528