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
Nagios or Script Glitche
-
cesar.garza
- Posts: 80
- Joined: Mon Aug 19, 2013 3:14 pm
Nagios or Script Glitche
- Attachments
-
Endpoint.sh- (1.51 KiB) Downloaded 303 times
Re: Nagios or Script Glitche
How long does the check take from the cli?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
cesar.garza
- Posts: 80
- Joined: Mon Aug 19, 2013 3:14 pm
Re: Nagios or Script Glitche
Thanks for your reply but somehow now i am getting the message in nagios UI.abrist wrote:How long does the check take from the cli?
Re: Nagios or Script Glitche
? So is it working ok now? If not, run it from the cli and let us know how long it takes to finish execution.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
cesar.garza
- Posts: 80
- Joined: Mon Aug 19, 2013 3:14 pm
Re: Nagios or Script Glitche
Yes, its working now. there was a minor problem in the script. i just moved the code and it worked.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios or Script Glitche
Ah excellent!