Warning = Critical

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.
Locked
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Warning = Critical

Post 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
Attachments
5.jpg
check_activemq.txt
(3.97 KiB) Downloaded 285 times
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Warning = Critical

Post 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.
Former Nagios employee
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: Warning = Critical

Post by cesar.garza »

Thanks ..i fixed the error that you suggested.
Locked