You are on page 1of 1

Nagios XI Fixing Global Permissions

The Industry Standard in IT Infrastructure Monitoring


Purpose
This document describes how to fix Nagios XI permissions globally in an attempt to recover from debilitating permissions and
ownership issues with files.

Target Audience
This document is intended for use by Nagios XI Administrators who are looking for an in-place solution to fixing permissions issues
that crop up during installs of various components.

Download the Script


We have generated a script (starting at 2011R1.7, it should also work for earlier distributions) that is a simple shell script that will reset
your permissions to default settings on files below the following directories:
/usr/local/nagiosxi/
/usr/local/nagios/
Note however that it will NOT affect any files that are not in a standard Nagios XI install. For example, if you install a new component to
your Nagios XI instance, this script will not change its permissions because the component did not exist on our snapshot machine.
There are, however, directories where it will do a recursive change on the permissions and ownership for all files. These directories are:
/usr/local/nagios/share/perfdata
/var/lib/mrtg
These two directories get their permission and ownership settings changed recursively as they often contains much content that could
be impeded by improper permissions.
Moving on, download the script to your Nagios XI server:
wget http://assets.nagios.com/downloads/nagiosxi/scripts/NagiosXI-FixPerms.sh

Execute The Script


Once its done downloading you will need to execute the script:
chmod +x NagiosXI-FixPerms.sh
./NagiosXI-FixPerms.sh
The script will run and may show a few errors. This is normal, some files may not exist on your system

Wrapping Up
That pretty much does it for the script. Please note that this solution will change the permissions of your files and cannot be undone.

Nagios Enterprises, LLC


P.O. Box 8154
Saint Paul, MN 55108
USA

US: 1-888-NAGIOS-1
Int'l: +1 651-204-9102
Fax: +1 651-204-9103

Web: www.nagios.com
Email: sales@nagios.com

Page 1
Revision 1.0 September, 2011

You might also like