Installation
- Extract this codebase in your nagios web directory's document root ( in this example is /usr/local/nagios/share ). This will extract the files in a opcfg subdirectory.
[root@localhost]# tar -xvzf opcfg-{VERSION}.tar.gz -C /usr/local/nagios/share
- Create a symlink or copy of your nagios's icon logo's directory to the opcfg's base directory with the name of logos.
[root@localhost ]# cd /usr/local/nagios/share/opcfg
[root@localhost opcfg]# ln -sf /usr/local/nagios/share/images/logos .
- Create a database for opcfg in MySQL with select,insert,drop,empty privileges. Import the SQL data contained in sqldata/fruity-mysql.sql
[root@localhost opcfg]# cd sqldata
[root@localhost sqldata]# mysql -f -u {user} -p < opcfg.sql
Enter password: {password}
- Configure the config.inc file in opcfg's includes directory. Notes on what each parameter is specified in the file.
- Adjust nagios and opcfg's permission to allow web server group ( in this example is apache ) to write there.
[root@localhost]# chow -R apache.apache /usr/local/nagios/share/opcfg
[root@localhost]# chown -R .apache /usr/local/nagios/etc
[root@localhost]# chown -R .apache /usr/local/nagios/libexec
[root@localhost]# chmod -R g+w /usr/local/nagios/etc
[root@localhost]# chmod -R g+w /usr/local/nagios/libexec
- Point your web browser to /nagios/opcfg/ on your webserver to start OpCfg.