Page 1 of 1

Newbie to Nagios XI having issues

Posted: Tue Jul 12, 2011 2:42 am
by gbolahan
Hi Guys,

I have been having issues with my Nagios XI installation, I had a disk space problem which is resolved now after provisioning more space on vmware server and also resizing on the centos. I have started the mysqld and postgresql services and and I am sure it running now, I also now have access to my web interface and tried applying configuration Nagios Core.

Find error below
----------------------------------------------------
Config File Permissions Check

* One or more config files have problems.

Config Scripts

The permissions on the Nagios XI configuration scripts appear to be okay.
Config Files

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:
o /usr/local/nagiosxi/scripts/reset_config_perms
-------------------------------------------------------------------------------------------------

I have run the command specified in the instruction above but errors still persists, can kindly suggest the next line of action.

Re: Newbie to Nagios XI having issues

Posted: Tue Jul 12, 2011 9:49 am
by lmiltchev
We just sent you an e-mail with instructions. Please, follow up with the e-mail.

Re: Newbie to Nagios XI having issues

Posted: Thu Aug 18, 2011 4:28 am
by lntinfo
sorry lmiltchev iam using your space, but same problem i am come across did same thing which you did. but still problem persist please let us know how you have solved this problem.

Re: Newbie to Nagios XI having issues

Posted: Thu Aug 18, 2011 10:13 am
by agriffin
Try running the following commands in a terminal as root:

Code: Select all

chmod 664 /usr/local/nagios/etc/*.cfg
chown apache:nagios /usr/local/nagios/etc/*.cfg

Re: Newbie to Nagios XI having issues

Posted: Fri Aug 19, 2011 1:26 am
by lntinfo
thnx a ton !!

Re: Newbie to Nagios XI having issues

Posted: Fri Aug 19, 2011 9:12 am
by nscott
That great!