Zabbix Monitoring Suite auf Debian Lenny

Um auch Ubuntu Hosts überwachen zu können, ist es notwendig, einen möglichst aktuellen Zabbix Server zu verwenden. Daher wählen wir aus testing die Pakete. Unsere vorige Etch Installation aktualisieren wir wie folgt.

Von Etch nach Testing

  • sources.list anpassen und apt-get update

/etc/apt/sources.list

deb http://ftp.debian.org/debian testing main
deb-src  http://ftp.debian.org/debian testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main
#deb ftp://ftp.de.debian.org/backports.org etch-backports main contrib non-free

Installation

  • aptitude -t testing install zabbix-agent zabbix-server-mysql zabbix-frontend-php

installationslog

The following packages are BROKEN:
  libc6 locales php5-gd php5-mysql 
The following NEW packages will be automatically installed:
  ca-certificates libcurl3-gnutls libidn11 libkeyutils1 liblzo2-2 libopencdk10 libsnmp10 openssl php5 
The following packages have been kept back:
  adduser apache2 apache2-mpm-prefork apache2-utils apache2.2-common apt apt-utils aptitude base-files base-passwd 
  bsdmainutils bsdutils cpio dbconfig-common debconf debconf-i18n debconf-utils debian-archive-keyring debianutils 
  dhcp3-client dhcp3-common diff dmidecode dpkg dselect e2fslibs e2fsprogs ed exim4 exim4-base exim4-config 
  exim4-daemon-light file findutils gcc-4.1-base grep groff-base gzip info initscripts iptables iputils-ping klogd 
  laptop-detect libacl1 libapr1 libaprutil1 libattr1 libblkid1 libbz2-1.0 libcomerr2 libdb4.2 libdb4.3 libdb4.4 
  libdbd-mysql-perl libdbi-perl libedit2 libexpat1 libfreetype6 libgcc1 libgcrypt11 libgd2-xpm libgpg-error0 
  libjpeg62 libldap2 liblockfile1 libmagic1 libmysqlclient15off libncurses5 libncursesw5 libnewt0.52 libopencdk8 
  libpam-modules libpam-runtime libpam0g libpcre3 libpng12-0 libpq4 libreadline5 libsasl2-2 libselinux1 libsepol1 
  libslang2 libsqlite3-0 libss2 libstdc++6 libsysfs2 libt1-5 libtasn1-3 libttf2 libusb-0.1-4 libuuid1 libvolume-id0 
  libwrap0 libxau6 libxdmcp6 libxpm4 login lsb-base lynx mailx makedev man-db manpages mktemp module-init-tools 
  mount mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 nano ncurses-base ncurses-bin net-tools netbase 
  netcat ntp openssh-client openssh-server passwd perl perl-base perl-doc perl-modules procps psmisc 
  readline-common sed snmpd ssh sysklogd sysv-rc sysvinit sysvinit-utils tar tasksel tasksel-data tcpd traceroute 
  ttf-dejavu tzdata ucf udev update-inetd util-linux vim-common vim-tiny wget whiptail x11-common xml-core 
The following NEW packages will be installed:
  ca-certificates libcurl3-gnutls libidn11 libkeyutils1 liblzo2-2 libopencdk10 libsnmp10 openssl php5 
The following packages will be upgraded:
  libapache2-mod-php5 libgnutls13 libkrb53 libsensors3 libsnmp-base libssl0.9.8 libxml2 php5-common zabbix-agent 
  zabbix-frontend-php zabbix-server-mysql zlib1g 
13 packages upgraded, 9 newly installed, 0 to remove and 155 not upgraded.
Need to get 18.0MB of archives. After unpacking 11.1MB will be used.
The following packages have unmet dependencies:
  php5-gd: Depends: php5-common (= 5.2.0-8+etch7) but 5.2.3-1+lenny1 is to be installed.
  locales: Depends: glibc-2.3.6.ds1-1 which is a virtual package.
  php5-mysql: Depends: php5-common (= 5.2.0-8+etch7) but 5.2.3-1+lenny1 is to be installed.
  libc6: Conflicts: tzdata (< 2007e-2) but 2007b-1 is installed and it is kept back.
Resolving dependencies...
The following actions will resolve these dependencies:

Install the following packages:
libzzip-0-12 [0.12.83-8lenny1 (testing)]
php4 [6:4.4.4-9+lenny1 (testing)]
php4-cgi [6:4.4.4-9+lenny1 (testing)]
php4-common [6:4.4.4-9+lenny1 (testing)]

Keep the following packages at their current version:
libapache2-mod-php5 [5.2.0-8+etch7 (now)]
php5 [Not Installed]
php5-common [5.2.0-8+etch7 (now)]

Upgrade the following packages:
locales [2.3.6.ds1-13etch2 (now) -> 2.6.1-1 (testing)]
tzdata [2007b-1 (now) -> 2007h-2 (testing)]

Score is -297

Uns bleibt keine Wahl, also Accept this solution? [Y/n/q/?] y.

install log

The following NEW packages will be automatically installed:
  ca-certificates libcurl3-gnutls libidn11 libkeyutils1 liblzo2-2 libopencdk10 libsnmp10 libzzip-0-12 openssl php4 
  php4-cgi php4-common 
The following packages have been kept back:
  adduser apache2 apache2-mpm-prefork apache2-utils apache2.2-common apt apt-utils aptitude base-files base-passwd 
  bsdmainutils bsdutils cpio dbconfig-common debconf debconf-i18n debconf-utils debian-archive-keyring debianutils 
  dhcp3-client dhcp3-common diff dmidecode dpkg dselect e2fslibs e2fsprogs ed exim4 exim4-base exim4-config 
  exim4-daemon-light file findutils gcc-4.1-base grep groff-base gzip info initscripts iptables iputils-ping klogd 
  laptop-detect libacl1 libapache2-mod-php5 libapr1 libaprutil1 libattr1 libblkid1 libbz2-1.0 libcomerr2 libdb4.2 
  libdb4.3 libdb4.4 libdbd-mysql-perl libdbi-perl libedit2 libexpat1 libfreetype6 libgcc1 libgcrypt11 libgd2-xpm 
  libgpg-error0 libjpeg62 libldap2 liblockfile1 libmagic1 libmysqlclient15off libncurses5 libncursesw5 libnewt0.52 
  libopencdk8 libpam-modules libpam-runtime libpam0g libpcre3 libpng12-0 libpq4 libreadline5 libsasl2-2 libselinux1 
  libsepol1 libslang2 libsqlite3-0 libss2 libstdc++6 libsysfs2 libt1-5 libtasn1-3 libttf2 libusb-0.1-4 libuuid1 
  libvolume-id0 libwrap0 libxau6 libxdmcp6 libxpm4 login lsb-base lynx mailx makedev man-db manpages mktemp 
  module-init-tools mount mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 nano ncurses-base ncurses-bin 
  net-tools netbase netcat ntp openssh-client openssh-server passwd perl perl-base perl-doc perl-modules 
  php5-common php5-gd php5-mysql procps psmisc readline-common sed snmpd ssh sysklogd sysv-rc sysvinit 
  sysvinit-utils tar tasksel tasksel-data tcpd traceroute ttf-dejavu ucf udev update-inetd util-linux vim-common 
  vim-tiny wget whiptail x11-common xml-core 
The following NEW packages will be installed:
  ca-certificates libcurl3-gnutls libidn11 libkeyutils1 liblzo2-2 libopencdk10 libsnmp10 libzzip-0-12 openssl php4 
  php4-cgi php4-common 
The following packages will be upgraded:
  libc6 libgnutls13 libkrb53 libsensors3 libsnmp-base libssl0.9.8 libxml2 locales tzdata zabbix-agent 
  zabbix-frontend-php zabbix-server-mysql zlib1g 
13 packages upgraded, 12 newly installed, 0 to remove and 155 not upgraded.
Need to get 23.8MB of archives. After unpacking 19.9MB will be used.
...
Preparing to replace zabbix-agent 1:1.1.4-10 (using .../zabbix-agent_1%3a1.4.1-4_i386.deb) ...
Stopping Zabbix agent: zabbix_agentd
Unpacking replacement zabbix-agent ...
Preparing to replace zabbix-frontend-php 1:1.1.4-10 (using .../zabbix-frontend-php_1%3a1.4.1-4_all.deb) ...
Unpacking replacement zabbix-frontend-php ...
Preparing to replace zabbix-server-mysql 1:1.1.4-10 (using .../zabbix-server-mysql_1%3a1.4.1-4_i386.deb) ...
Stopping Zabbix server: zabbix_server
Unpacking replacement zabbix-server-mysql ...
Setting up locales (2.6.1-1) ...
Generating locales (this might take a while)...
  de_DE.ISO-8859-1... done
  de_DE.UTF-8... done
  de_DE.ISO-8859-15@euro... done
  en_US.ISO-8859-1... done
Generation complete.

Setting up liblzo2-2 (2.02-3) ...

Setting up libopencdk10 (0.6.5-1) ...

Setting up libgnutls13 (2.0.1-1) ...

Setting up libssl0.9.8 (0.9.8g-1) ...
Checking for services that may need to be restarted...done.
Checking init scripts...
Package configuration                                                                                                   
 x Services to restart to make them use the new libraries:                                                           x  
 x                                                                                                                   x  
 x ntp exim4 ssh____________________________________________________________________________________________________ x  

                                                                                                                        Restarting services possibly affected by the upgrade:
  ntp: stopping...starting...done.
  exim4: stopping...starting...done.
  ssh: stopping...starting...done.

Services restarted successfully.

...
Setting up zabbix-agent (1.4.1-4) ...
Installing new version of config file /etc/init.d/zabbix-agent ...

    lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring zabbix-agent tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk    
    x A new version of configuration file /etc/zabbix/zabbix_agentd.conf is available, but your version has been   x    
    x locally modified.                                                                                            x    
    x                                                                                                              x    
    x What would you like to do about zabbix_agentd.conf?                                                          x    
    x                                                                                                              x    
    x                             install the package maintainer's version                                         x    
    x                         [X] keep your currently-installed version                                            x    
    x                             show the differences between the versions                                        x    
    x                             show a side-by-side difference between the versions                              x    
    x                             start a new shell to examine the situation                                       x    
    x                                                                                                              x    
    x                                                                                                              x    
    x                                                    <Ok>                                                      x    
    x                                                                                                              x    
    mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj    
                                                                                                                        
    lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring zabbix-agent tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk    
    x A new version of configuration file /etc/zabbix/zabbix_agentd.conf is available, but your version has been   x    
    x locally modified.                                                                                            x    
    x                                                                                                              x    
    x What would you like to do about zabbix_agentd.conf?                                                          x    
    x                                                                                                              x    
    x                             install the package maintainer's version                                         x    
    x                         [X] keep your currently-installed version                                            x    
    x                             show the differences between the versions                                        x    
    x                             show a side-by-side difference between the versions                              x    
    x                             start a new shell to examine the situation                                       x    
    x                                                                                                              x    
    x                                                                                                              x    
    x                                                    <Ok>                                                      x    
    x                                                                                                              x    
    mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj    

Starting Zabbix agent: zabbix_agentd                                                                                   

Setting up zabbix-frontend-php (1.4.1-4) ...

Setting up zabbix-server-mysql (1.4.1-4) ...
Installing new version of config file /etc/init.d/zabbix-server ...
dbconfig-common: writing config to /etc/dbconfig-common/zabbix-server-mysql.conf
Replacing config file /etc/zabbix/zabbix_server.conf with new version
Package configuration                                                                                                   
                                                                                                                                                                                                                                              
  lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Configuring zabbix-server-mysql tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk  
  x                                                                                                                  x  
  x According to the maintainer for this package, database upgrade operations need to be formed on                   x  
  x zabbix-server-mysql.  Typically this is due to changes in how a new upstream version of the package needs to     x  
  x store its data.                                                                                                  x  
  x                                                                                                                  x  
  x If you want to handle this process manually, you should refuse this option.  Otherwise, you should choose this   x  
  x option. During the upgrade a backup of your database will be made in /var/cache/dbconfig-common/backups, from    x  
  x which which the database can be restored in the case of problems.                                                x  
  x                                                                                                                  x  
  x Perform upgrade on database for zabbix-server-mysql with dbconfig-common?                                        x  
  x                                                                                                                  x  
  x                                 <**Yes**>                                <No>                                    x  
  x                                                                                                                  x  
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj  
                                                                                                                       
creating database backup in /var/cache/dbconfig-common/backups/zabbix-server-mysql_1:1.1.4-10.mysql.                   
applying upgrade sql for 1:1.1.4-10 -> 1:1.4.1.
dbconfig-common: flushing administrative password
Starting Zabbix server: zabbix_server

zabbix:~# /etc/init.d/zabbix-agent restart 
Stopping Zabbix agent: zabbix_agentd
Starting Zabbix agent: zabbix_agentd

Eine Kleinigkeit noch: PHP will den lokalen Zeiteinstellungen keinen Glauben schenken, daher noch folgendes in der php.ini ändern/einfügen und ein /etc/init.d/apache2 force-reload durchführen.

/etc/php5/apache2/php.ini

[Date]
; Defines the default timezone used by the date functions
date.timezone = Europe/Berlin

Ebenso muss der Wert für die PHP max execution time auf 600 gesetzt sein.

Hat es geklappt ?

  • tail -f /var/log/zabbix-*/*

logdateien

==> /var/log/zabbix-agent/zabbix_agentd.log <==
  5417:20071117:210608 zabbix_agentd active check started [localhost:10051]
  5417:20071117:210608 Getting list of active checks failed. Will retry after 60 seconds
  5412:20071117:210633 One child process died. Exiting ...
  5412:20071117:210635 ZABBIX Agent stopped
  5721:20071117:210635 zabbix_agentd started. ZABBIX 1.4.1.
  5722:20071117:210635 zabbix_agentd collector started
  5723:20071117:210635 zabbix_agentd listener started
  5724:20071117:210635 zabbix_agentd listener started
  5725:20071117:210635 zabbix_agentd listener started
  5726:20071117:210635 zabbix_agentd active check started [localhost:10051]

==> /var/log/zabbix-server/zabbix_server.log <==
  5757:20071117:210641 server #16 started [Node watcher. Node ID:0]
  5753:20071117:210641 Deleted 0 records from history and trends
  5756:20071117:210641 server #15 started [Poller for unreachable hosts. SNMP:ON]
  5758:20071117:210641 server #17 started [HTTP Poller]
  5761:20071117:210641 server #18 started [HTTP Poller]
  5763:20071117:210641 server #19 started [HTTP Poller]
  5765:20071117:210641 server #20 started [HTTP Poller]
  5767:20071117:210641 server #21 started [HTTP Poller]
  5735:20071117:210641 server #0 started [Watchdog]
  5769:20071117:210641 server #22 started [Discoverer. SNMP:ON]
  5736:20071117:210828 Parameter [net.tcp.service[imap]] became supported by agent on host [xen-dom0]
  5736:20071117:210828 Parameter [vfs.fs.size[/usr,used]] became supported by agent on host [xen-dom0]
  5736:20071117:210828 Parameter [vfs.fs.inode[/opt,free]] became supported by agent on host [xen-dom0]
  5736:20071117:210828 Parameter [proc.num[httpd]] became supported by agent on host [xen-dom0]
  5736:20071117:210828 Parameter [vm.memory.size[free]] became supported by agent on host [xen-dom0]
  5736:20071117:210828 Parameter [vfs.fs.inode[/usr,total]] became supported by agent on host [xen-dom0]
  5736:20071117:210828 Parameter [proc.num[zabbix_agentd]] became supported by agent on host [xen-dom0]
  5736:20071117:210828 Parameter [net.if.in[eth0]] became supported by agent on host [xen-dom0]
  5736:20071117:210828 Parameter [vfs.fs.size[/home,total]] became supported by agent on host [xen-dom0]
  5736:20071117:210828 Parameter [vfs.file.cksum[/etc/passwd]] became supported by agent on host [xen-dom0]
...

Ja, es hat geklappt, der Ubuntu Host ist jetzt auch drin!

Testing nach Etch (stable)

Jetzt ändern wir die sources.list, so dass wir wieder gegen das Stable Relase gehen.

/etc/apt/sources.list

deb http://ftp.debian.org/debian etch main
deb-src  http://ftp.debian.org/debian etch main contrib non-free
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main
deb ftp://ftp.de.debian.org/backports.org etch-backports main contrib non-free

Nicht vergessen, sofern nicht schon geschehen: Keys aktualisieren.

debian backports key einspielen

wget -O - http://backports.org/debian/archive.key | apt-key add -
 
wissen/monitoring/zabbix-open-source-monitoring-tool-upgrade-auf-lenny-und-version-1.4.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de