Nagios or Script Glitche
Posted: Thu Nov 07, 2013 1:16 pm
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
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