Page 6 of 6

Re: Plugins Helps

Posted: Mon Aug 08, 2016 2:11 am
by Box293
kwhogster wrote:same error

root@tgcs017:/usr/lib/nagios/plugins# ./check_nrpe -H 10.2.8.75 -t 30 -c CheckDriveSize -a ShowAll=long MinWarn =20% MinCrit=10% Drive=C: perf-unit=G
CHECK_NRPE: Invalid packet type received from server.
You've got two issues:

A space where it should not be:
MinWarn =20%

It should be:
MinWarn=20%

You need to enclose your warn and crit arguments in single quotes:

Code: Select all

./check_nrpe -H 10.2.8.75 -t 30 -c CheckDriveSize -a ShowAll=long 'MinWarn=20%' 'MinCrit=10%' Drive=C: perf-unit=G
You should get a response like:

Code: Select all

OK C:: Total: 59.9GB - Used: 20.374GB (35%) - Free: 39.526GB (65%)|'C: free'=39.52622G;11.98007;5.99003;0;59.90038 'C: free %'=65%;19;9;0;100

Re: Plugins Helps

Posted: Mon Aug 08, 2016 7:19 pm
by kwhogster
Yeah Finally

It is now working great News

This can now be closed


Thanks everyone for all your help