Plugins Helps

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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Plugins Helps

Post 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
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:

Re: Plugins Helps

Post by kwhogster »

Yeah Finally

It is now working great News

This can now be closed


Thanks everyone for all your help
Locked