Page 1 of 1
Warning = Critical
Posted: Tue Jan 07, 2014 2:51 pm
by cesar.garza
Hey guys ...I have downloaded a Activemq script from the internet and customized it according to me. After that when i tested it, it suppose to show CRITICAL on the nagios UI, where it is showing me WARNING. I have uploaded the script and picture. Thanks for you generous help
Re: Warning = Critical
Posted: Tue Jan 07, 2014 2:57 pm
by tmcdonald
What you print and what you exit with are two different things. Nagios determines state by the exit code, so even if you printed "ALL GOOD HERE" with an exit code of 1, it would still be a WARNING state. You need to make sure your $retval and $state are cooperating.
Re: Warning = Critical
Posted: Fri Jan 10, 2014 10:25 am
by cesar.garza
Thanks ..i fixed the error that you suggested.