Page 1 of 1

Nagios or Script Glitche

Posted: Thu Nov 07, 2013 1:16 pm
by cesar.garza
Hey guys
I need your help to figure it out the problem coming from where (Nagios or Script).
Problem: not getting status information on the nagios UI. you can see in the screenshot that Unknown/CRITICAL is coming with ""service check time out"" info. However when i ran the script in my linux box and got the (HTTP 500 Internal Server Error) message. that was supposed to come there.

Scenario : I have a script that trigger a endpoint and grab the HTTP status code. Script is working fine and give the HTTP status code. But nagios is TAKING only OK message & status code and print in the nagios UI but not other messages like critical/warning/unknown and status code print in the nagios UI.

I have attached a script, if anyone wanna have a look.

Thanks

Re: Nagios or Script Glitche

Posted: Thu Nov 07, 2013 1:27 pm
by abrist
How long does the check take from the cli?

Re: Nagios or Script Glitche

Posted: Thu Nov 07, 2013 2:22 pm
by cesar.garza
abrist wrote:How long does the check take from the cli?
Thanks for your reply but somehow now i am getting the message in nagios UI.

Re: Nagios or Script Glitche

Posted: Thu Nov 07, 2013 2:41 pm
by abrist
? So is it working ok now? If not, run it from the cli and let us know how long it takes to finish execution.

Re: Nagios or Script Glitche

Posted: Fri Nov 08, 2013 3:50 pm
by cesar.garza
Yes, its working now. there was a minor problem in the script. i just moved the code and it worked.

Re: Nagios or Script Glitche

Posted: Fri Nov 08, 2013 4:14 pm
by slansing
Ah excellent!