Nagios or Script Glitche

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

Nagios or Script Glitche

Post 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
Attachments
Endpoint.sh
(1.51 KiB) Downloaded 303 times
2.jpg
1-1.jpg
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios or Script Glitche

Post by abrist »

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

Re: Nagios or Script Glitche

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios or Script Glitche

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

Re: Nagios or Script Glitche

Post by cesar.garza »

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

Post by slansing »

Ah excellent!
Locked