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...
EC2 install of Nagios XI will not allow monitor anything
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: EC2 install of Nagios XI will not allow monitor anything
Can you go to
Core Config Manager -> Tools -> Write Config Files
And walk through item from the top down and report any errors.
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
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.
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
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
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
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".
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".
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: EC2 install of Nagios XI will not allow monitor anything
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
Then the apply configuration should work.
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
Re: EC2 install of Nagios XI will not allow monitor anything
Thank you Scott. Everything is up and running now.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: EC2 install of Nagios XI will not allow monitor anything
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.