Changeset 18632 for trunk/dports


Ignore:
Timestamp:
Jul 16, 2006, 11:56:07 PM (18 years ago)
Author:
markd
Message:

Bug: NONE
Submitted by: markd@…
Reviewed by:
Approved by:
Obtained from:
ui_msg changes only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/monarch/Portfile

    r18627 r18632  
    1 # $Id: Portfile,v 1.8 2006/07/16 08:41:35 markd Exp $
     1# $Id: Portfile,v 1.9 2006/07/16 23:56:07 markd Exp $
    22PortSystem      1.0
    33
     
    116116Read the README at ${prefix}/share/groundwork/monarch/ for full information.
    117117
    118 1) Setup MySQL and prepare it for Monarch
     1181) Setup MySQL and create the Monarch user
    119119   Configure MySQL (new MySQL installs)
    120120        sudo -u mysql ${prefix}/lib/mysql5/bin/mysql_install_db
     
    129129        Follow the instructions that were given after you executed 'mysql_install_db' above.
    130130
    131    Create a Monarch MySQL database and user ...
     131   Create the Monarch MySQL user and password and set the account's permissions
     132        mysql5 -u root -p (login with new root password when prompted)
     133        mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on monarch.* to monarch@localhost;
     134        mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on monarch.* to monarch;
     135        mysql> SET PASSWORD FOR monarch@localhost = PASSWORD('my-password');
     136        mysql> exit
     137
     138
     1392) Create the Monarch MySQL database and initialize it using monarch_setup.pl.
     140   Login to MySQL and the create Monarch database
    132141        mysql5 -u root -p (login with new root password when prompted)
    133142        mysql> create database monarch;
    134 
    135         mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on monarch.* to monarch@localhost;
    136         mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on monarch.* to monarch;
    137         mysql> exit
    138143
    139144   Run monarch_setup.pl
     
    144149        What is the host name of your MySQL database server? - localhost
    145150        What is the name of the user that will have access to the database? - monarch
     151        What is the password for user monarch to access the database monarch - <my-password>
    146152        What is the name of the database you will use for your Monarch installation? - monarch
    147153        Enter web server's user account - nagios
     
    160166        mysql> exit
    161167
    162  
    163 2) Set your Apache user and group to the Nagios user
     168NOTE: If you wish to clear the monarch database to start over: a) log into MySQL as
     169      root; b) execute 'drop database monarch'; c) repeat Step 2.  There is no need
     170      to repeat step 1 because the Monarch user/pass and permissions are not deleted
     171      by dropping the database.
     172
     173
     1743) Set your Apache user and group to the Nagios user
    164175        sudo pico /etc/httpd/httpd.conf
    165176       
     
    168179
    169180
    170 3) Create a ParserDetails.ini for module XML::SAX
     1814) Create a ParserDetails.ini for module XML::SAX
    171182   Execute this command
    172183        perl -MXML::SAX -e \"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()\"
    173184
    174 4) Goto http://localhost/cgi-bin/monarch.cgi
    175 
    176         Login with user/pass \"super_user\" \"password\"
    177 
    178 
    179 5) Configure Monarch with a web browser
     185
     1865) Goto http://localhost/cgi-bin/monarch.cgi
     187
     188        Login with the default user/pass \"super_user\" \"password\"
     189
     190
     1916) Configure Monarch with a web browser
    180192
    181193Control -> Setup -> Nagios Version -> 2.x
     
    190202
    191203
    192 6) Copy the optional monarch_ez.cgi interface to your cgi-bin/ directory
     2047) Copy the optional monarch_ez.cgi interface to your cgi-bin/ directory
    193205        cd ${monarchdir}
    194206        sudo cp -p monarch_ez.cgi /Library/WebServer/CGI-Executables/
    195207        sudo cp -p monarch_scan.cgi /Library/WebServer/CGI-Executables/
    196 
    197    NOTE: The nmap discovery functions in the monarch_ez.cgi interface do not work yet in this version.
    198208\n"
    199209}
Note: See TracChangeset for help on using the changeset viewer.