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.
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Mon Aug 08, 2016 2:11 am
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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
kwhogster
Posts: 644 Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:
Post
by kwhogster » Mon Aug 08, 2016 7:19 pm
Yeah Finally
It is now working great News
This can now be closed
Thanks everyone for all your help