Nagios xi Setup? Am I missing something?

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.
lucas.shearer
Posts: 17
Joined: Fri Nov 19, 2021 12:00 pm

Nagios xi Setup? Am I missing something?

Post by lucas.shearer »

I am simply trying to setup nagios xi to monitor the server its installed on, and then be able to call the API's from outside the network on a linux VM.

I've full installed Nagios xi and can make the API calls within the Machine or the network but they dont work outside the network.

Am I missing something else to install on the Nagios xi machine? A part of Nagios or not? Or some nagios xi setttings I am missing?

Any help would be greatly appreciated... Have a fresh install on a ubuntu VM that Im working with and cant get access to the API's for it outside the machine itself.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Nagios xi Setup? Am I missing something?

Post by gormank »

Are the ports open from the external host?
xternalhost% nmap -p80,443 nagioshost
Are you trying to get HTTP or HTTPS?
What do you see when you curl (or whatever)?
That's about all that comes to mind...
lucas.shearer
Posts: 17
Joined: Fri Nov 19, 2021 12:00 pm

Re: Nagios xi Setup? Am I missing something?

Post by lucas.shearer »

gormank wrote:Are the ports open from the external host?
xternalhost% nmap -p80,443 nagioshost
Are you trying to get HTTP or HTTPS?
What do you see when you curl (or whatever)?
That's about all that comes to mind...
Newbie here.
My external machine I'm trying to call the API from is a windows machine, so not sure if that why when I try "xternalhost% nmap -p80,443 nagioshost" it isnt recognized. Is there a cmd call like this for windows?

HTTP I believe since the API given to me in the help api docs within Nagios game me:
http://<My_Nagios_IP>/nagiosxi/api/v1/objects/rrdexport?apikey=<My_APIKey>&pretty=1&host_name=localhost&service_description=Current+Load

and from my external host Im using postman to try to make the call, and I just get "Could not get response" / "Error:Socket hang up". (Using the same postman call inside the Nagios machine or network though succeeds with the data json response.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Nagios xi Setup? Am I missing something?

Post by gormank »

Can you ping the Nagios host from the Windows host?
What happens when you put the Nxi URL in a web browser? http://<My_Nagios_IP>/nagiosxi