zabbix 2.4 чистый debian 8.1

root@zabbix2:~/zabbix-2.4.6# apt-get install libsnmp-dev libgsnmp-dev snmptrapd 


checking pkg-config is at least version 0.9.0... yes
checking for net-snmp-config... no
configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
root@zabbix2:~/zabbix-2.4.6# apt-get install net-snmp-devel

 apt-get install libsnmp-dev



checking for SSH2 support... no
configure: error: SSH2 library not found


root@zabbix2:~/zabbix-2.4.6# apt-get install libssh-dev libssh2-1-dev



checking for OPENIPMI support... no
configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h

root@zabbix2:~/zabbix-2.4.6# apt-get install openipmi
root@zabbix2:~/zabbix-2.4.6# apt-get install libopenipmi-dev


checking for curl-config... no
configure: error: Curl library not found

root@zabbix2:~/zabbix-2.4.6# apt-get install curl
root@zabbix2:~/zabbix-2.4.6# apt-get install libcurl4-openssl-dev


Читать дальше →

zabbix2 apache2

добавим шаблон apache2 zabbix_agentd.conf
UserParameter=apache.proc,ps ax | grep httpd | wc -l


открываем веб-морду заббикса
создаем item Template App Apache, где ключ будет apache.proc

будет выглядеть вот так.
zabbix2 apache2 setup

теперь у нас появились данные апача и заббикса и видно так
zabbix2 apache view

а теперь добавим триггеров на свой вкус.
мне таких хватает за глаза. по аналогии можно и другие процессы мониторить.

Чрезвычайная	Critical time Apache than 5 minutes on {HOSTNAME}	{Template App Apache:apache.proc.min(300)}>200	Активировано	 
Предупреждение	Too many Apache on {HOSTNAME}	{Template App Apache:apache.proc.last(0)}>100	Активировано	 
Высокая	Warning Apache on {HOSTNAME}	{Template App Apache:apache.proc.last(0)}>200	Активировано


ну вот и все.

ipmi + zabbix2

в логах забыли и это явно видим
84769:20121003:224912.723 SNMP monitoring:           YES
 84769:20121003:224912.723 IPMI monitoring:            NO
 84769:20121003:224912.723 WEB monitoring:            YES
.................................
 84794:20121003:224912.855 server #25 started [ipmi poller #1]
.................................
 84794:20121003:224945.195 enabling IPMI checks on host [ipmi.***.ru]: host became available
 84789:20121003:224948.227 item [ipmi.****.ru:baseboard_temp] became not supported: Support for IPMI checks was not compiled in


ставим

cd /usr/ports/sysutils/ipmitool
make install clean


./configure --enable-server ....... \
.................. \
--with-openipmi


сругалось…

checking for OPENIPMI support... no
configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h


идем в
cd /usr/ports/sysutils/openipmi
make install clean
rehash


повторяем сборку заббикса

Enable server:         yes
  Server details:
    With database:         MySQL
    WEB Monitoring via:    cURL
    Native Jabber:         no
    SNMP:                  net-snmp
    IPMI:                  openipmi
    SSH:                   no


zabbix_server.conf
StartIPMIPollers=1


в итоге в логах
45126:20121003:233144.802 Starting Zabbix Server. Zabbix 2.0.0 (revision 27675).
 45126:20121003:233144.802 ****** Enabled features ******
 45126:20121003:233144.802 SNMP monitoring:           YES
 45126:20121003:233144.802 IPMI monitoring:           YES
 45126:20121003:233144.802 WEB monitoring:            YES
 45126:20121003:233144.802 Jabber notifications:       NO
 45126:20121003:233144.802 Ez Texting notifications:  YES
 45126:20121003:233144.802 ODBC:                       NO
 45126:20121003:233144.802 SSH2 support:               NO
 45126:20121003:233144.802 IPv6 support:              YES
 45126:20121003:233144.802 ******************************
.............................
 45151:20121003:233144.984 server #25 started [ipmi poller #1]


ставим новый билд zabbix на ubuntu

checking for net-snmp-config... /usr/bin/net-snmp-config
checking for main in -lnetsnmp... yes
checking for localname in struct snmp_session... yes
checking for SSH2 support... no
configure: error: SSH2 library not found


ставим для убунту
apt-get install libssh2-1-dev libssh2-php

21404:20130320:093530.685 Starting Zabbix Server. Zabbix 2.0.5 (revision 33558).
 21404:20130320:093530.685 ****** Enabled features ******
 21404:20130320:093530.685 SNMP monitoring:           YES
 21404:20130320:093530.685 IPMI monitoring:            NO
 21404:20130320:093530.685 WEB monitoring:            YES
 21404:20130320:093530.685 Jabber notifications:       NO
 21404:20130320:093530.685 Ez Texting notifications:  YES
 21404:20130320:093530.685 ODBC:                       NO
 21404:20130320:093530.685 SSH2 support:              YES
 21404:20130320:093530.685 IPv6 support:              YES
 21404:20130320:093530.685 ******************************


ставим с IPMI monitoring
сругалось
checking for SSH2 support... yes
checking for OPENIPMI support... no
configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h


ставим
apt-get install openipmi libopenipmi-dev


собираем, видим.
Configuration:

  Detected OS:           linux-gnu
  Install path:          /usr/local
  Compilation arch:      linux

  Compiler:              gcc
  Compiler flags:        -g -O2  -I/usr/include/mysql -DBIG_JOINS=1  -fno-strict-aliasing  -g       -I/usr/local/include -I/usr/lib/perl/5.14/CORE -I. -I/usr/include  -I/usr/include -I/usr/include

  Enable server:         yes
  Server details:
    With database:         MySQL
    WEB Monitoring via:    cURL
    Native Jabber:         no
    SNMP:                  net-snmp
    IPMI:                  openipmi
    SSH:                   yes
    ODBC:                  no
    Linker flags:          -rdynamic      -L/usr/lib/x86_64-linux-gnu      -L/usr/lib/x86_64-linux-gnu  -L/usr/lib  -L/usr/lib -L/usr/lib -L/usr/lib
    Libraries:             -lm -lrt  -lresolv    -lmysqlclient       -lcurl  -lnetsnmp -lcrypto  -lnetsnmp -lcrypto -lssh2 -lOpenIPMI -lOpenIPMIposix

  Enable proxy:          no

  Enable agent:          yes
  Agent details:
    Linker flags:          -rdynamic     -L/usr/lib/x86_64-linux-gnu
    Libraries:             -lm -lrt  -lresolv    -lcurl

  Enable Java gateway:   no

  LDAP support:          no
  IPv6 support:          yes

***********************************************************
*            Now run 'make install'                       *
*                                                         *
*            Thank you for using Zabbix!                  *
*              <http://www.zabbix.com>                    *
***********************************************************


все. собираем и радуемся жизни.
в консоли
service zabbix-server restart
zabbix-server stop/waiting
zabbix-server start/running, process 8201

и смотрим лог

cat ./zabbix_server.log
8201:20130320:095130.101 Zabbix Server stopped. Zabbix 2.0.5 (revision 33558).
 16429:20130320:095417.461 Starting Zabbix Server. Zabbix 2.0.5 (revision 33558).
 16429:20130320:095417.461 ****** Enabled features ******
 16429:20130320:095417.461 SNMP monitoring:           YES
 16429:20130320:095417.461 IPMI monitoring:           YES
 16429:20130320:095417.461 WEB monitoring:            YES
 16429:20130320:095417.461 Jabber notifications:       NO
 16429:20130320:095417.461 Ez Texting notifications:  YES
 16429:20130320:095417.461 ODBC:                       NO
 16429:20130320:095417.461 SSH2 support:              YES
 16429:20130320:095417.461 IPv6 support:              YES
 16429:20130320:095417.461 ******************************
 16431:20130320:095417.566 server #1 started [configuration syncer #1]