Re: Plugins Helps
Posted: Mon Aug 08, 2016 2:11 am
You've got two issues: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.
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=GCode: 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