Warning = Critical
-
cesar.garza
- Posts: 80
- Joined: Mon Aug 19, 2013 3:14 pm
Warning = Critical
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
- Attachments
-
check_activemq.txt- (3.97 KiB) Downloaded 284 times
Re: Warning = Critical
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.
Former Nagios employee
-
cesar.garza
- Posts: 80
- Joined: Mon Aug 19, 2013 3:14 pm
Re: Warning = Critical
Thanks ..i fixed the error that you suggested.