SourceForge.net Logo

NagEdit and NagView

Welcome,
We have not yet had the time to build a proper welcome page. This will come, but should not encourage you to use our software. You can download the installer or just run the installer form here.

Introduction

This software contains two main PHP files:

  • nagedit.php alias index.php, contains a editor for changing the Nagios configuration
  • nagview.php, can be used to display Nagios results and configuration.
  • Installation of the software should be easy through the usage of the installer. Still you have to do some things yourself.
  • The nagios etc directory must be writeable by the webserver group.
  • The webserver user must be able to run nagios. Required for pre-flight checks.
  • The webserver must be able to write in directroy where NagEdit is installed. Should not be a problem because it is also required by the installer
  • NagEdit

    Before you can start editing the Nagios configuration you need to setup the tool. After you did this add you host and services. If you did not check the option to activate changes, don't for get to activate them when you are finished. With the use of the importer you can import existing Nagios Configurations.
    NagEdit also supports configurations for NagiosGrapher which is a good tool is you want nice graphs.

    NagEdit can be easly added to Nagios and by adding the following code to the side.html in the webroot of nagios. We asume you have compiled Nagios yourself, so vi /usr/local/nagios/share/side.html should open a editor. Goto the bottom of the file and add the following code just before the table closing.

    <tr> <td width=13><img src=\"images/greendot.gif\" width=\"13\" height=\"14\" name=\"configedit-dot\"></td> <td nowrap width=134><a href=\"/nagios/nagedit/index.php\" target=\"main\" onMouseOver=\"switchdot('configedit-dot',1)\" onMouseOut=\"switchdot('configedit-dot',0)\" class=\"NavBarItem\">Edit Config</a></td> </tr>

    We assume that nagios is available through http://localhost/nagios and nagedit is installed in the nagios web directroy.

    NagView

    NagView is build using the tinybutstrong template engine. We added a database driver and eval function. The database driver enables you to retrieve results form the NagEdit configuration files and Nagios status file. Examples can be found in the template directory. Just a quick note: Configuration tables end on 'Source' and status tables on 'Result' (ex. ServiceResult and ServiceSource)

    Release Notes

    8-mrt-2006 (1.0-rc1) The fist release of the software to the Nagios community, it is based on a discontinued Nagat. This version of the software is limited to work on Nagios 2.0, because this is our test platform. When development is finished we make the configuration reductions needed for Nagios 1.3