Skip to content
Permalink
Browse files

Bug: NONE

Submitted by: markd@opendarwin.org
Reviewed by:
Approved by:
Obtained from:
ui_msg changes only.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@18632 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Mark Duling
Mark Duling committed Jul 16, 2006
1 parent 662bb7a commit ad238b88e5dceb554eda41342d6c98e647a54b94
Showing with 24 additions and 14 deletions.
  1. +24 −14 net/monarch/Portfile
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.8 2006/07/16 08:41:35 markd Exp $
# $Id: Portfile,v 1.9 2006/07/16 23:56:07 markd Exp $
PortSystem 1.0

name monarch
@@ -115,7 +115,7 @@ ui_msg "\n **** To complete the Monarch installation ****

Read the README at ${prefix}/share/groundwork/monarch/ for full information.

1) Setup MySQL and prepare it for Monarch
1) Setup MySQL and create the Monarch user
Configure MySQL (new MySQL installs)
sudo -u mysql ${prefix}/lib/mysql5/bin/mysql_install_db

@@ -128,21 +128,27 @@ Read the README at ${prefix}/share/groundwork/monarch/ for full information.
Set a root MySQL password.
Follow the instructions that were given after you executed 'mysql_install_db' above.

Create a Monarch MySQL database and user ...
Create the Monarch MySQL user and password and set the account's permissions
mysql5 -u root -p (login with new root password when prompted)
mysql> create database monarch;

mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on monarch.* to monarch@localhost;
mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on monarch.* to monarch;
mysql> SET PASSWORD FOR monarch@localhost = PASSWORD('my-password');
mysql> exit


2) Create the Monarch MySQL database and initialize it using monarch_setup.pl.
Login to MySQL and the create Monarch database
mysql5 -u root -p (login with new root password when prompted)
mysql> create database monarch;

Run monarch_setup.pl
cd ${monarchdir}
sudo ./monarch_setup.pl

Responses for the monarch_setup.pl program
What is the host name of your MySQL database server? - localhost
What is the name of the user that will have access to the database? - monarch
What is the password for user monarch to access the database monarch - <my-password>
What is the name of the database you will use for your Monarch installation? - monarch
Enter web server's user account - nagios
Enter web server's user group - nagios
@@ -159,24 +165,30 @@ Read the README at ${prefix}/share/groundwork/monarch/ for full information.
mysql> show tables;
mysql> exit


2) Set your Apache user and group to the Nagios user
NOTE: If you wish to clear the monarch database to start over: a) log into MySQL as
root; b) execute 'drop database monarch'; c) repeat Step 2. There is no need
to repeat step 1 because the Monarch user/pass and permissions are not deleted
by dropping the database.


3) Set your Apache user and group to the Nagios user
sudo pico /etc/httpd/httpd.conf

user nagios
group nagios


3) Create a ParserDetails.ini for module XML::SAX
4) Create a ParserDetails.ini for module XML::SAX
Execute this command
perl -MXML::SAX -e \"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()\"

4) Goto http://localhost/cgi-bin/monarch.cgi

Login with user/pass \"super_user\" \"password\"
5) Goto http://localhost/cgi-bin/monarch.cgi

Login with the default user/pass \"super_user\" \"password\"

5) Configure Monarch with a web browser

6) Configure Monarch with a web browser

Control -> Setup -> Nagios Version -> 2.x

@@ -189,11 +201,9 @@ Control -> Nagios Cgi Configuration -> Load from cgi.cfg (to load an existing Na
Control -> Load (to populate the database with an existing configuration)


6) Copy the optional monarch_ez.cgi interface to your cgi-bin/ directory
7) Copy the optional monarch_ez.cgi interface to your cgi-bin/ directory
cd ${monarchdir}
sudo cp -p monarch_ez.cgi /Library/WebServer/CGI-Executables/
sudo cp -p monarch_scan.cgi /Library/WebServer/CGI-Executables/

NOTE: The nmap discovery functions in the monarch_ez.cgi interface do not work yet in this version.
\n"
}

0 comments on commit ad238b8

Please sign in to comment.
You can’t perform that action at this time.