How to use the CheckDriveSize plugin in Nagios server

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
Nico31Nagios
Posts: 6
Joined: Thu Nov 24, 2016 10:02 am

How to use the CheckDriveSize plugin in Nagios server

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to use the CheckDriveSize plugin in Nagios server

Post 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
Former Nagios employee
https://www.mcapra.com/
Locked