Marcin Rydel wrote:
Hello everyone !

At first, I would like to sorry about my weak english.

I have problem with install icinga 1.4 on FreeBSD 8.2. I am doing everything like in documentation and it is not working :/ .

My system:
icinga# uname -a
FreeBSD 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011  i386

My ports collection (installed):

icinga# pkg_info
aide-0.13.1_3       A replacement and extension for Tripwire
apr-ipv6-devrandom-gdbm-db42- Apache Portability Library
autoconf-2.68       Automatically configure source code on many Un*x platforms
autoconf-wrapper-20101119 Wrapper script for GNU autoconf
automake-1.11.1     GNU Standards-compliant Makefile generator (1.11)
automake-wrapper-20101119 Wrapper script for GNU automake
bacula-client-5.0.3 The network backup solution (client)
bison-2.4.3,1       A parser generator from FSF, (mostly) compatible with Yacc
ca_root_nss-3.12.9  The root certificate bundle from the Mozilla Project
cmake-2.8.4_1       A cross-platform Makefile generator
curl-7.21.3_2       Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
cvsps-2.1           Create patchset information from CVS
db42-4.2.52_5       The Berkeley DB package, revision 4.2
eventlog-0.2.12     Replacement of the simple syslog() API providing structure
expat-2.0.1_1       XML 1.0 parser written in C
fontconfig-2.8.0,1  An XML-based font configuration API for X Windows
freetype2-2.4.4     A free and portable TrueType font rendering engine
gamin-0.1.10_4      A file and directory monitoring system
gd-2.0.35_7,1       A graphics library for fast creation of images
gdbm-1.8.3_3        The GNU database manager
gettext-    GNU gettext package
gio-fam-backend-2.26.1 FAM backend for GLib's GIO library
git-1.7.6           Distributed source code management tool
glib-2.26.1_1       Some useful routines of C programming (current stable versi
gmake-3.82          GNU version of 'make' utility
help2man-1.40.4     Automatically generating simple manual pages from program o
jpeg-8_3            IJG's jpeg compression utilities
libdbi-0.8.4        Database Independent Abstraction Layer for C
libdbi-drivers- Drivers for libdbi
libiconv-1.13.1_1   A character set conversion library
libidn-1.22         Internationalized Domain Names command line tool
libltdl-2.4         System independent dlopen wrapper
libtool-2.4         Generic shared library support script
libxml2-2.7.8_1     XML parser library for GNOME
lsof-4.85C_1,5      Lists information about open files (similar to fstat(1))
m4-1.4.16,1         GNU m4
mhash-     An easy-to-use library for strong hashes such as MD5 and SH
mysql-client-5.5.14 Multithreaded SQL database (client)
mysql-server-5.5.14 Multithreaded SQL database (server)
neon29-0.29.6_2     An HTTP and WebDAV client library for Unix systems
net-snmp-5.5_4      An extendable SNMP implementation
p5-Error-0.17016    Perl module to provide Error/exception support for perl: Er
p5-IO-Socket-SSL-1.44 Perl5 interface to SSL sockets
p5-Locale-gettext-1.05_3 Message handling functions
p5-Net-SMTP-SSL-1.01_1 An SMTP client supporting SSL
p5-Net-SSLeay-1.36  Perl5 interface to SSL
pcre-8.12           Perl Compatible Regular Expressions library
perl-5.12.4         Practical Extraction and Report Language
pkg-config-0.25_1   A utility to retrieve information about installed libraries
png-1.4.5_1         Library for manipulating PNG images
portaudit-0.5.17    Checks installed ports against a list of security vulnerabi
portupgrade-2.4.8_1,2 FreeBSD ports/packages administration and management tool s
postfix-2.8.3,1     A secure alternative to widely-used Sendmail
postgresql-client-8.4.8 PostgreSQL database (client)
pwgen-2.06          A small, powerful, GPL'ed password generator
python27-2.7.2_1    An interpreted object-oriented programming language
ruby-,1    An object-oriented interpreted scripting language
ruby18-bdb-0.6.6    Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
screen-4.0.3_12     A multi-screen window manager
smartmontools-5.41_2 S.M.A.R.T. disk monitoring tools
sqlite3-     An SQL database engine in a C library
subversion-1.6.17   Version control system
sudo-1.8.1_5        Allow others to run commands as root
syslog-ng3-3.2.4    A powerful syslogd replacement
tcl-8.5.10          Tool Command Language
tcl-modules-8.5.10  Tcl common modules
unzip-6.0_1         List, test and extract compressed files in a ZIP archive
wget-1.12_4         Retrieve files from the Net via HTTP(S) and FTP

Location of icinga folder:

icinga# pwd
icinga# ls -al
total 6
drwxr-xr-x   3 root  wheel   512 Jul 26 10:21 .
drwxr-xr-x  17 root  wheel   512 Jul 25 14:43 ..
drwxrwxr-x  18 root  wheel  1024 Jul 27 07:16 icinga-1.4.2

icinga user is created:

icinga# id icinga
uid=1002(icinga) gid=1002(icinga) groups=1002(icinga),1003(icinga-cmd)

 icinga configure:  

           icinga# ./configure --with-httpd-conf=/usr/local/etc/apache22/Includes/ \

 --with-gd-lib=/usr/local/lib/ --with-gd-inc=/usr/local/include/ \
 --with-command-group=icinga-cmd --enable-idoutils \
 --with-dbi-inc=/usr/local/include --with-dbu-lib=/usr/local/lib \
  CPPFLAGS=-I/usr/local/include CFLAGS=-fPIC

           final of the configuration:

            *** Configuration summary for icinga-core 1.4.2 06-29-2011 ***:

 General Options:
        Icinga executable:  icinga
        Icinga user/group:  icinga,icinga
       Command user/group:  icinga,icinga-cmd
            Embedded Perl:  no
             Event Broker:  yes
           Build IDOUtils:  yes, instance_name=default
        Install ${prefix}:  /usr/local/icinga
                Lock file:  ${prefix}/var/icinga.lock
   Check result directory:  ${prefix}/var/spool/checkresults
   Ext Cmd file directory:  ${prefix}/var/rw
           Init directory:  /usr/local/etc/rc.d
  Apache conf.d directory:  /usr/local/etc/apache22/Includes/
             Mail program:  /usr/bin/mail
                  Host OS:  freebsd8.2

 Web Interface Options:
                 HTML URL:  http://localhost/icinga/
                  CGI URL:  http://localhost/icinga/cgi-bin/
 Traceroute (used by WAP):  /usr/sbin/traceroute

Review the options above for accuracy.  If they look okay,
type 'make all' to compile the main program and CGIs.

!!! Please take care about the upgrade documentation !!!

Here begins a problem, if I would like to gmake all:  
icinga# gmake all
cd ./base && gmake
gmake[1]: Entering directory `/usr/sources/icinga-1.4.2/base'
gcc ?-Wall -fPIC -I/usr/local/include/ -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE   -c -o broker.o broker.c
gcc: ?-Wall: No such file or directory
gmake[1]: *** [broker.o] Error 1
gmake[1]: Leaving directory `/usr/sources/icinga-1.4.2/base'
gmake: *** [all] Error 2

, or try to do it step by step:

icinga# gmake install
cd ./base && gmake install
gmake[1]: Entering directory `/usr/sources/icinga-1.4.2/base'
gmake install-basic
gmake[2]: Entering directory `/usr/sources/icinga-1.4.2/base'
/usr/bin/install -c -m 775 -o icinga -g icinga -d /usr/local/icinga/bin
/usr/bin/install -c -m 774 -o icinga -g icinga icinga /usr/local/icinga/bin
install: icinga: No such file or directory
gmake[2]: *** [install-basic] Error 71
gmake[2]: Leaving directory `/usr/sources/icinga-1.4.2/base'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `/usr/sources/icinga-1.4.2/base'
gmake: *** [install] Error 2

I don't know where is a problem, please help.

there was a typo in the which has been reported lately. (ad don't ask me how this came into - my git blame tells me sth but must be a typo)

short version

$ vim
$ remove the '?'
$ autoconf

$ make distclean
$ sh configure ...

i was thinking of 1.4.3 but just for a typo a new release? hmmm. the release branch for 1.5.0 contains a fixed configure, but yet a lot of other changes making it incompatible to 1.4.x - see Changelog:CHANGES section in git.

kind regards,

best regards,

Marcin Rydel

Junior Administrator
Network Operations Center
Blue Media S.A.

Niniejsza wiadomość została przekazana w imieniu Blue Media S.A.
z siedzibą w Sopocie, ul. Haffnera 6, 81-717 Sopot, zarejestrowana
w Sądzie Rejonowym Gdańsk-Północ VIII Wydział Gospodarczy KRS pod
nr 0000320590, NIP 585-13-51-185, REGON 191781561. Kapitał zakładowy 500
000 PLN (wpłacony w całości).

Jeżeli nie jest Pan/Pani zamierzonym i wskazanym adresatem niniejszej
wiadomości, nie może Pan/Pani jej ujawniać,  kopiować, dystrybuować ani
też w żaden inny sposób udostępniać lub wykorzystywać.
Jeżeli otrzymał/a Pan/Pani tę wiadomość przez pomyłkę prosimy o
niezwłoczne poinformowanie nas o tym i o usunięcie wiadomości. 
------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek.
_______________________________________________ icinga-users mailing list

DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

phone: 	+43 1 4277 14359 
mobile: +43 664 60277 14359 
fax: 	+43 1 4277 14338

Icinga Core & IDOUtils Developer