NagiosXI on AWS.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
derik.petty
Posts: 9
Joined: Thu Nov 06, 2014 1:38 pm

NagiosXI on AWS.

Post by derik.petty »

Is there an updated doc for deploying either a pre-built ami or something for nagiosxi in amazon aws. The last document I can find for it was dated from 2016 and the ami does not have nagios running in it after build.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI on AWS.

Post by benjaminsmith »

Hi Derik,

Are you following the document below? It was last updated in January of 2019 and should work. Let me know. Thanks.

How To Create A Nagios XI Instance In The Amazon EC2 Cloud
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
derik.petty
Posts: 9
Joined: Thu Nov 06, 2014 1:38 pm

Re: NagiosXI on AWS.

Post by derik.petty »

Yeah that was the one I was using. the AMI image ID goes back to the same one as the 2016 article. But after launch there not an install of nagios or nagiosxi to be found. There is also no repo files for nagios. But more importantly there is nothing listening on port 80 or 443 to do the setup like the document directs after launching on aws.

So, I am thinking maybe I followed the document wrong or something. When you put in the AMI image number it comes back with multiple entries. I chose the one for nagiosxi on centos 7. Maybe I needed to pick another one or something. Please advise.

Thanks.
derik.petty
Posts: 9
Joined: Thu Nov 06, 2014 1:38 pm

Re: NagiosXI on AWS.

Post by derik.petty »

here is the launcher information

Nagios XI on CentOS 7
ami-0aacb17f730077b8a
766915741798/Nagios XI on CentOS 7
766915741798
Public
available
November 18, 2019 at 5:27:01 PM UTC
Cent OS
ebs
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI on AWS.

Post by benjaminsmith »

Hi Derik,

Just to confirm, that instance status is running, it can take some time to be fully functional. Can you check the system log in the EC2 console for any messages and post them to the thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
derik.petty
Posts: 9
Joined: Thu Nov 06, 2014 1:38 pm

Re: NagiosXI on AWS.

Post by derik.petty »

So, here is the searching for and results of anything Nagios on the launched AMI. The server has been running now for over 5+ hours. So, don't think it is a still initializing thing. Also I have already updated the system and added to freeipa. So, the system is running. Btu there are no traces of Nagios to be found anywhere. Also nothing in the repo folder for nagios. I added epel myself.

[blah@nagios-0001 ~]$ ls /var/log/
anaconda boot.log chrony cron dmesg.old grubby_prune_debug lastlog messages qemu-ga samba spooler tallylog wtmp yum.log-20200429
audit btmp cloud-init.log dmesg grubby ipaclient-install.log maillog ntpstats rhsm secure sssd tuned yum.log

[blah@nagios-0001 ~]$ ls /usr/local/
bin etc games include lib lib64 libexec run.sh sbin share src

[blah@nagios-0001 ~]$ ls -R /usr |grep -i nagios
ls: cannot open directory /usr/libexec/initscripts/legacy-actions/auditd: Permission denied
ls: cannot open directory /usr/share/polkit-1/rules.d: Permission denied

[blah@nagios-0001 ~]$ sudo ls -R /usr |grep -i nagios
[sudo] password for blah:
[blah@nagios-0001 ~]$

[blah@nagios-0001 ~]$ ps -ef |grep -i nagios
root 865 1 0 17:20 ? 00:00:00 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient--ens3.lease -pf /var/run/dhclient-ens3.pid -H nagios-0001 ens3
blah+ 19443 19360 0 19:56 pts/1 00:00:00 grep --color=auto -i nagios

[blah@nagios-0001 ~]$ netstat -plnt
(No info could be read for "-p": geteuid()=469600005 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:25 :::* LISTEN -

[blah@nagios-0001 ~]$ ls /etc/yum.repos.d/
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo epel.repo
CentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo CentOS-x86_64-kernel.repo epel-testing.repo
derik.petty
Posts: 9
Joined: Thu Nov 06, 2014 1:38 pm

Re: NagiosXI on AWS.

Post by derik.petty »

Ok. maybe I found the problem. It looks like it tries to install after the system is running instead of being in the image. Let me try to get an outside dns server and proxy set up to see if that fixes the problem.

Apr 29 17:20:29 nagios-0001 rc.local: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: assets.nagios.com; Unknown error

So, it looks like it may be trying to reach out at boot up.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI on AWS.

Post by benjaminsmith »

Hi Derik,
Let me try to get an outside dns server and proxy set up to see if that fixes the problem.
Sounds good. Yeah, once the operating system comes up it will try to grab the latest version and install it.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
derik.petty
Posts: 9
Joined: Thu Nov 06, 2014 1:38 pm

Re: NagiosXI on AWS.

Post by derik.petty »

ok. So, I guess this is something that only happens during the first boot process. So, I have it configured for outside resolving dns servers and configured to use a proxy server out. During boot I do not see it reaching out to the internet or using the proxy at all. I have verified it can get to and resolve assets.nagios.com doing a curl. So, I guess at this point I will just have to install it myself. Is what it is. Thanks for the help.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI on AWS.

Post by benjaminsmith »

Hi Derik,

Thanks for the update. If you need help with the installation or have any questions, feel free to open a new post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked