Page 4 of 5

Re: Install Issues

Posted: Tue Dec 21, 2010 12:31 pm
by mguthrie
First thing after a fresh installation would be to go to the Admin->Reset Security Credentials page to update your permissions for both the Core Config Manager and the subsystem components.

Try running either a monitoring wizard or doing an "Apply Configuration" in the Core Config Manager once you get logged in. I'm wondering if not all of the config files got imported properly upon install.

The script to fix permissions in all config files is:
/usr/local/nagiosxi/scripts/reset_config_perms

Re: Install Issues

Posted: Tue Dec 21, 2010 1:09 pm
by tonyyarusso
1) There is no such directory as /usr/local/nagios/etc/objects by default - what did you do to create that?
2) It should be the same as your nagiosadmin user account, but if not you can use "Reset Security Credentials" to change it.

Re: Install Issues

Posted: Tue Dec 21, 2010 5:41 pm
by sappjt
Thanks for the help. Everything seems to be working correctly this far. Just a few minor details left. This is what I get when I apply configuration

Code: Select all

 The following configuration files have incorrect permissions:

/usr/local/nagios/etc/commands.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/contactgroups.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/contacts.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/contacttemplates.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hostdependencies.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hostescalations.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hostextinfo.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hostgroups.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hosttemplates.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/servicedependencies.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/serviceescalations.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/serviceextinfo.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/servicegroups.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/servicetemplates.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/timeperiods.cfg (OWNER=root, GROUP=root, PERMS=u---------)
Each of these config files needs to be writable by the apache and nagios users. To fix this problem, follow these steps:

Login to your Nagios XI server via SSH as the root user
Execute the following commands:
/usr/local/nagiosxi/scripts/reset_config_perms

None of the files are in that location. They are in on directory lower in an Object directory that was created by default from installing the nagios core, because I sure didn't put them there. Should I copy those out on directory?

Re: Install Issues

Posted: Wed Dec 22, 2010 11:15 am
by mguthrie
If the files aren't currently there, then there was still a part of the E-nagiosql script that didn't run correctly. Try running it once more and looking for any error output from that script. NagiosQL (aka the Core Config Manager) will manage your configuration files, it's generally not a good idea to move files around manually.

Re: Install Issues

Posted: Wed Dec 22, 2010 2:16 pm
by sappjt
I tried to rerun the E-nagiosql script and now it failed on all of them. Probably because I reset security credentials. Again, would it be a problem if I copied the files from the objects directory to the directory that nagiosxi thinks they are in and then import the configurations from the web page?

Re: Install Issues

Posted: Thu Dec 23, 2010 4:05 pm
by sappjt
I imported some of the config files and it seems that things are okay, but if I create a new user and check the notifications, it still doesn't create the user as a person who can recieve notifications.

Re: Install Issues

Posted: Mon Dec 27, 2010 4:36 pm
by mguthrie
Nagios XI users are different from contacts. To have a user ALSO be a contact, you can select the checkbox for "Create as a monitoring contact" on the Admin->Manage Users->Modify page. (This is assuming the DB backend is all working correctly). You can also create contacts in the Core Config Manager.

Re: Install Issues

Posted: Thu Dec 30, 2010 11:39 pm
by sappjt
I have checked the box create as a monitoring contact and that doesn't make the user a monitoring contact. I have also modified the config files and imported them and that didn't work.

Re: Install Issues

Posted: Wed Jan 05, 2011 12:48 pm
by sappjt
This was from the nagios core config manager. I tried to restart nagios and this is the error I got.


Restart failed - Nagios command file not found or no execute permissions

How would I fix this.

Re: Install Issues

Posted: Wed Jan 05, 2011 1:35 pm
by mguthrie
If you're running the latest version of XI (1.3g), you can go to the Admin->Check File Permissions page to see if you have permissions issues anywhere. It should tell you where the permissions issues are and how to fix them.