Page 1 of 1
Local host error
Posted: Tue Dec 26, 2017 7:08 pm
by CSykes1
Have the following local host error. I tried editing the service to the ip of the server with no change. Please advise.
Re: Local host error
Posted: Wed Dec 27, 2017 10:47 am
by kyang
Is this a brand new XI install? What OS and version?
Are you using SSL?
Which IP did you change it to? The Nagios XI IP? Or is it still using localhost now?
Can you run this command and show us the output?
Code: Select all
/usr/local/nagios/libexec/check_http -H localhost -v
How does the command look like now in the
Core Config Manager? For this host?
Please let us know! Thanks!
Re: Local host error
Posted: Wed Dec 27, 2017 3:04 pm
by CSykes1
No this is been up and running for 2+ years.
No SSL
I changed it to the ip of the server.
out put from command
HTTP OK: HTTP/1.1 200 OK - 3193 bytes in 0.060 second response time |time=0.060273s;;;0.000000 size=3193B;;;0
In core see atttachment
Re: Local host error
Posted: Wed Dec 27, 2017 3:43 pm
by kyang
Do you have a virtual host set up?
Try changing the command for that HTTP service to use this one --> check_xi_service_http
It's basically the same thing, except instead of using -I it uses -H for the hostname.
Apply config, force an immediate check on that localhost HTTP and let us know if that worked.
Re: Local host error
Posted: Wed Dec 27, 2017 4:25 pm
by CSykes1
See attachments.
Re: Local host error
Posted: Wed Dec 27, 2017 4:27 pm
by kyang
Sorry, could you remove the 2.
Then try again. Thanks.
Re: Local host error
Posted: Thu Dec 28, 2017 12:56 pm
by CSykes1
That fixed it thanks.
Re: Local host error
Posted: Thu Dec 28, 2017 1:04 pm
by kyang
Glad that worked out for you!
I'll be closing this thread!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!