Install Issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Install Issues

Post 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
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Install Issues

Post 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.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
sappjt
Posts: 59
Joined: Thu Nov 18, 2010 12:52 pm

Re: Install Issues

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Install Issues

Post 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.
sappjt
Posts: 59
Joined: Thu Nov 18, 2010 12:52 pm

Re: Install Issues

Post 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?
sappjt
Posts: 59
Joined: Thu Nov 18, 2010 12:52 pm

Re: Install Issues

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Install Issues

Post 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.
sappjt
Posts: 59
Joined: Thu Nov 18, 2010 12:52 pm

Re: Install Issues

Post 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.
sappjt
Posts: 59
Joined: Thu Nov 18, 2010 12:52 pm

Re: Install Issues

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Install Issues

Post 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.
Locked