cuongk6t's Blog

How they do that – step by step

Nagios – Addon: OpCfg www.opmon.org

leave a comment »


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

Features:

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

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.

Written by cuongk6t

06/06/2011 at 10:08 am

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: