Hobbit Server Configuration (Network Monitoring)
Hobbit service
Activation Process for Agent Hobbit (hobbit Linux server)
Distribution : Kubuntu 9.04
Software : hobbit (hobbit-4.2.0) , apache2 (apache2.2.9)
Servidor : Netadmin (IP-Addr:192.168.1.5)
Add hobbit user
linux:~ # groupadd hobbit
linux:~ # useradd –d /usr/local/hobbit –g hobbit hobbit
linux:~ # mkdir /usr/local/hobbit/
linux:~ # chown hobbit.hobbit /usr/local/hobbit
Hobbit installation program
hobbit@linux:~ > apt-get update
hobbit@linux:~ > apt-get install apache2
hobbit@linux:~ > apt-get install hobbit
During this process, all units installed Hobbit needs. (Only in Debian-based operating systems)
Hobbit Service Configuration
You need to setup the hobbit master file (in this file are input devices that will monitor Hobbit) (command vi /etc/hobbit/bb-hosts)
page Servers(internal) Servers(Private) group-compress Servers(Private) # ----------- Servers Main Building ------------- 192.168.0.2 Web # NET:intern http://192.168.0.2/ 192.168.0.3 DNS # 192.168.0.4 Moodle # NET:intern http://192.168.0.4/ 192.168.0.5 Plone # 127.0.0.1 Local-Device # bbd http://Netadmin-desktop/ page Switches(internal) Switches(Netadmin) group-compress Switches(Netadmin) # ------------------------------------------------------ # -----------Switches Main Building --------------- # 192.168.50.10 Sw1.Main # 192.168.50.11 Sw2.Main # 192.168.50.12 Sw3.Main # ## -----------Switches Central Building ---------------- # 192.168.50.20 Sw1.Central # 192.168.50.21 Sw2.Central # ## -----------Switches South Building---------------- # 192.168.50.30 Sw1.South # 192.168.50.31 Sw2.South # # ------------------------------------------------------
Changing Apache2
Modify the /etc/apache2/hobbit/httpd.conf (Archive with web access policies)
Alias /hobbit/ "/usr/local/hobbit/server/www/" Options Indexes FollowSymLinks Includes MultiViews Order allow,deny Allow from all ScriptAlias /hobbit-cgi/ "/usr/local/hobbit/cgi-bin/" AllowOverride None Options ExecCGI Includes Order allow,deny Allow from all ScriptAlias /hobbit-seccgi/ "/usr/local/hobbit/cgi-secure/" AllowOverride None Options ExecCGI Includes Order allow,deny Allow from all AuthUserFile /usr/local/hobbit/server/etc/hobbitpasswd AuthGroupFile /usr/local/hobbit/server/etc/hobbitgroups AuthType Basic AuthName "Hobbit Administration" Require valid-user
Automatic start of Hobit
linux:~ # cp /usr/local/hobbit/server/hobbit.sh /etc/init.d/hobbit linux:~ # chkconfig hobbit on
Setting admin password
Linux:~# /usr/sbin/htpasswd –c /usr/local/hobbit/server/etc/hobbitpasswd admin New password: Re-type new password: Adding password for user admin linux:~ #
Restart Apache2 service
linux:~ # /etc/init.d/apache2 restart Syntax OK Shutting down httpd2 (waiting for all children to terminate) done Starting httpd2 (prefork) done
Restart Hobbit service
linux:~ # /etc/init.d/hobbit start Starting hobbit: Hobbit started hobbit. linux:~ #
Check the operation
To verify the service via a web browser.
- http://192.168.1.5/hobbit/
0 Comments:
Post a Comment