Configuration script for Xymon

This script asks a few questions and builds a Makefile to compile Xymon

Checking your make-utility
Checking pre-requisites for building Xymon

Checking for fping ...
Found fping in /usr/bin/fping
Checking to see if '/usr/bin/fping 127.0.0.1' works ...
127.0.0.1 is alive
OK, will use '/usr/bin/fping' for ping tests
NOTE: If you are using an suid-root wrapper, make sure the 'xymon'
      user is also allowed to run fping without having to enter passwords.
      For 'sudo', add something like this to your 'sudoers' file:
      xymon: ALL=(ALL) NOPASSWD: /usr/local/sbin/fping



Checking for RRDtool ...
Found RRDtool include files in /usr/include
Found RRDtool libraries in /usr/lib
Linking RRD with PNG library: -L/usr/lib -lpng


Checking for PCRE ...
Found PCRE include files in /usr/include
Found PCRE libraries in /usr/lib


Checking for OpenSSL ...
Found OpenSSL include files in /usr/include
Found OpenSSL libraries in /usr/lib

Xymon can use the OpenSSL library to test SSL-enabled services
like POP3S, IMAPS, NNTPS and TELNETS. If you have the OpenSSL
library installed, I recommend that you enable this.

Do you want to be able to test SSL-enabled services (y) ?
y



Checking for LDAP ...
Found LDAP include files in /usr/include
Found LDAP libraries in /usr/lib

Xymon can use your OpenLDAP LDAP client library to test LDAP servers.

Do you want to be able to test LDAP servers (y) ?
y
Enable experimental support for LDAP/SSL (OpenLDAP 2.x only) (y) ?
y



Setting up for a Xymon server


What userid will be running Xymon [xymon] ?

Found passwd entry for user xymon:x:1000:100:Xymon user:/usr/lib/xymon:


Where do you want the Xymon installation [/usr/lib/xymon] ?

OK, will configure to use /usr/lib/xymon as the Xymon toplevel directory


What URL will you use for the Xymon webpages [/xymon] ? 



Where to put the Xymon CGI scripts [/usr/lib/xymon/cgi-bin] ? 



What is the URL for the Xymon CGI directory [/xymon-cgi] ? 



********************** SECURITY NOTICE ****************************
If your Xymon server is accessible by outsiders, then you should
restrict access to the CGI scripts that handle enable/disable of
hosts, and acknowledging of alerts. The easiest way to do this is
to put these in a separate CGI directory and require a password to
access them.
If your Xymon server is on a secure network (Intranet) and you trust
your users, then you can keep all the CGI scripts in one directory.

Where to put the Xymon Administration CGI scripts [/usr/lib/xymon/cgi-secure] ? 



What is the URL for the Xymon Administration CGI directory [/xymon-seccgi] ? 



** Note that you may need to modify your webserver configuration.
** After installing, see /usr/lib/xymon/server/etc/xymon-apache.conf for an example configuration.


To generate Xymon availability reports, your webserver
must have write-access to a directory below the Xymon
top-level directory. I can set this up if you tell me
what group-ID your webserver runs with. This is typically
'nobody' or 'apache' or 'www-data'
If you don't know, just hit ENTER and we will handle it later.

What group-ID does your webserver use ?
www-data


Where to put the Xymon logfiles [/var/log/xymon] ? 



What is the name of this host [osiris] ? 
osiris.hswn.dk


What is the IP-address of this host [127.0.0.1] ? 
172.16.10.100


Where should I install the Xymon man-pages (/usr/local/man) ?



The Xymon history webpage by default displays a 1-day
graph of the history. It can also show a 1-week, 4-weeks and
1-year graphs, or any combination of these.

Which graphs to show by default (1d/1w/4w/1y/all) [all]



The Xymon history webpage can use a new method to
create the summary graphs on the history page. This method
gives a more accurate view (more detailed), but uses a fixed-width
graph instead of the standard Big Brother graph that automatically
resizes to fit your browser window.

Use the new detailed Xymon history graph (y/n) [y] ? 

   Tell me the display width (in pixels) to use for
   the history graph. This could be anything, but to
   eliminate as many rounding errors as possible, it
   is best to use a multiple of 24.
   The default value (960) is good on 1024x768 displays

   What width should I use for the graph [960] ? 




Using Linux Makefile settings



Created Makefile with the necessary information to build Xymon
Some defaults are used, so do look at the Makefile before continuing.

Configuration complete - now run make (GNU make) to build the tools
