Changeset 18632 for trunk/dports
- Timestamp:
- Jul 16, 2006, 11:56:07 PM (18 years ago)
- 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:35markd Exp $1 # $Id: Portfile,v 1.9 2006/07/16 23:56:07 markd Exp $ 2 2 PortSystem 1.0 3 3 … … 116 116 Read the README at ${prefix}/share/groundwork/monarch/ for full information. 117 117 118 1) Setup MySQL and prepare it for Monarch118 1) Setup MySQL and create the Monarch user 119 119 Configure MySQL (new MySQL installs) 120 120 sudo -u mysql ${prefix}/lib/mysql5/bin/mysql_install_db … … 129 129 Follow the instructions that were given after you executed 'mysql_install_db' above. 130 130 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 139 2) Create the Monarch MySQL database and initialize it using monarch_setup.pl. 140 Login to MySQL and the create Monarch database 132 141 mysql5 -u root -p (login with new root password when prompted) 133 142 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> exit138 143 139 144 Run monarch_setup.pl … … 144 149 What is the host name of your MySQL database server? - localhost 145 150 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> 146 152 What is the name of the database you will use for your Monarch installation? - monarch 147 153 Enter web server's user account - nagios … … 160 166 mysql> exit 161 167 162 163 2) Set your Apache user and group to the Nagios user 168 NOTE: 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 174 3) Set your Apache user and group to the Nagios user 164 175 sudo pico /etc/httpd/httpd.conf 165 176 … … 168 179 169 180 170 3) Create a ParserDetails.ini for module XML::SAX181 4) Create a ParserDetails.ini for module XML::SAX 171 182 Execute this command 172 183 perl -MXML::SAX -e \"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()\" 173 184 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 186 5) Goto http://localhost/cgi-bin/monarch.cgi 187 188 Login with the default user/pass \"super_user\" \"password\" 189 190 191 6) Configure Monarch with a web browser 180 192 181 193 Control -> Setup -> Nagios Version -> 2.x … … 190 202 191 203 192 6) Copy the optional monarch_ez.cgi interface to your cgi-bin/ directory204 7) Copy the optional monarch_ez.cgi interface to your cgi-bin/ directory 193 205 cd ${monarchdir} 194 206 sudo cp -p monarch_ez.cgi /Library/WebServer/CGI-Executables/ 195 207 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.198 208 \n" 199 209 }
Note: See TracChangeset
for help on using the changeset viewer.