Page 1 of 1

EC2 install of Nagios XI will not allow monitor anything

Posted: Tue Jan 31, 2012 9:55 am
by jellydog
Hi, I have installed NagiosXI in EC2 but whenever I try to monitor any server the configuration fails. I get the green light on "configuration submitted for processing...". Then I get a red light on "Waiting for configuration verification..." and an error of "An error occurred while attempting to apply your configuration to the monitoring engine. Contact your Nagios administrator if the problem persists." I am using the Monitoring Wizard, choosing Webserver, choose HTTP only and defaults everywhere else. I have looked at the Core Config Manager->Configuration Snapshots and all looks good there.

I followed instructions for EC2 setup from here: http://exchange.nagios.org/directory/Do ... ud/details -(BTW - It erroneously claims that the default security group include ports 22 and 80 but this was not true. I had to add these to the default security group before I was able to access my Nagios interface.)
I then thought I needed to get NRPE installed on my webserver that I want to monitor and followed instructions from here: http://www.unixmen.com/add-linux-host-to-nagios-server/ - I did not do the part where this document instructs me to install NRPE on the Nagios server since I presume that was already installed with the image I used to create the server (ami-4b8d5922 - which is the CentOS6.0_64-Nagios-XI-2011R1.9_rev_2 version).

Not sure what to do next. Thanks so much in advance for any pointers...

Re: EC2 install of Nagios XI will not allow monitor anything

Posted: Tue Jan 31, 2012 10:00 am
by scottwilkerson
Can you go to
Core Config Manager -> Tools -> Write Config Files

And walk through item from the top down and report any errors.

Re: EC2 install of Nagios XI will not allow monitor anything

Posted: Tue Jan 31, 2012 12:12 pm
by jellydog
Thanks,
I just executed the first three with no errors of any kind. I then executed the fourth item which was a Nagios restart. I then tried to apply the most basic monitoring configuration and still get the same result.

Configuration submitted for processing...
Waiting for configuration verification... (red exclamation point)
Configuration verification failed. (red exclamation point)

I looked at the Nagios QL Log and it shows all .cfg files successfully written - Warnings/Errors 0/0.

Thanks again for the assistance.

Re: EC2 install of Nagios XI will not allow monitor anything

Posted: Tue Jan 31, 2012 4:18 pm
by jellydog
I tried installing the 32bit ami-5b895d32... and have the exact same results.
I tried restarting mysql and postgres,
I don't think ports have anything to do with this issue but just for fun...
I tried opening all ports in the default security group,
I created a new security group with all ports open,
none of which changed the results.

Not sure if you can glean anything from this but my EC2 environment is:
root device - ebs
type - t1.micro
monitoring - basic
virtualization - paravirtual
zone - us-east-1c
elastic ip - 23.21.196.185


thanks again

Re: EC2 install of Nagios XI will not allow monitor anything

Posted: Tue Jan 31, 2012 5:44 pm
by jellydog
I also get an error if I try to set up a new contact. I define all of the required fields and save and then attempt to apply configuration changes...
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint. And clicking the "View a snapshot of this configuration error" takes me to the Monitoring Configuration Snapshots that all say "Config OK".

Re: EC2 install of Nagios XI will not allow monitor anything

Posted: Tue Jan 31, 2012 5:55 pm
by scottwilkerson
For whatever reason I had some file permission problems.

If you have an instance running and want to make the following changes it should work fine.

I'll get new AMI's up in the next day or 2 with these fixed

From the terminal

Code: Select all

cd /usr/local/nagiosxi/scripts
chown nagios.users nagiosql.*
chown nagios.nagios nagiosql_importall.php
Then the apply configuration should work.

Re: EC2 install of Nagios XI will not allow monitor anything

Posted: Tue Jan 31, 2012 9:26 pm
by jellydog
Thank you Scott. Everything is up and running now.

Re: EC2 install of Nagios XI will not allow monitor anything

Posted: Wed Feb 01, 2012 10:27 am
by scottwilkerson
Excellent. Also, as an FYI, a t1.micro instance may work for testing Nagios XI, however it really doesn't have appropriate memory or I/O to support a normal installation.