OpCfg is a PHP-based HTTP configuration front-end to Nagios 3.x. OpCfg is a fork from Fruity.


    * Nagios Templates with Enhanced Features
    * Custom inheritance between Hosts/Services and Templates
    * Clone Services between Hosts
    * Clone Services from Host Templates to Hosts ( without inherit )
    * Duplicate a Host to create a new one with the same configuration
    * Support for creating a Host Template based on a existent Host
    * Support for import/export monitoring template packages. ( Hot!!!! )
    * Easy to visualize relationships between network objects.
    * Powerfull search engine that allow to find the pertinent configurations for specific devices.


    * 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.