Re: Вышел Zabbix 1.8.
Добавлено: 2009-12-14 13:19:42
парни, как сконфигурировать тригер, чтобы например заб слал почту если серия из 5 пингов не проходит(все пинги в дауне)?
Если с нами Бог, то кто же против нас?
https://forum.lissyara.su/
жесть!helloworld писал(а):Лично мне не понравилось что БД растет слишком быстро. При опросе около 15-20 серверов, база была около 4 гб и это только после недели использования. Увы отказались.Raven2000 писал(а):А если конструктивнее почему именно плохо относитесь? (Если отбросить навеянное слухами и использовать личные опыт)
Мониторить 400 хостов нужно с умом, тогда не будет проблем с любой системой мониторингаvintovkin писал(а):жесть!
а если 400 хостов?
cisco -> simplepingangelas_ писал(а):Мониторить 400 хостов нужно с умом, тогда не будет проблем с любой системой мониторингаvintovkin писал(а):жесть!
а если 400 хостов?
Да да, пингом мониторить сколько на дисках места осталось свободного, какая загрузка проца и т.д.vintovkin писал(а):cisco -> simpleping
Код: Выделить всё
zabbix# sh /usr/local/share/zabbix/server/upgrades/dbpatches/1.8/mysql/upgrade
[[: not found
No mysql binary in path.
zabbix# /usr/local/share/zabbix/server/upgrades/dbpatches/1.8/mysql/upgrade
/usr/local/share/zabbix/server/upgrades/dbpatches/1.8/mysql/upgrade: Недостаточно привилегий.
zabbix#
та не то слово!lissyara писал(а):звезда ф шоке!
Код: Выделить всё
Port: zabbix-agent-1.8,2
Path: /usr/ports/net-mgmt/zabbix-agent
Info: Enterprise-class open source distributed monitoring (agent)
Maint: ports@christianserving.org
B-deps: ca_root_nss-3.12.4 curl-7.19.7 libiconv-1.13.1 net-snmp-5.4.2.1_6 perl-5.8.9_3
R-deps: ca_root_nss-3.12.4 curl-7.19.7 libiconv-1.13.1 net-snmp-5.4.2.1_6 perl-5.8.9_3
WWW: http://www.zabbix.com/
Port: zabbix-frontend-1.8,2
Path: /usr/ports/net-mgmt/zabbix-frontend
Info: Enterprise-class open source distributed monitoring (frontend)
Maint: ports@christianserving.org
B-deps:
R-deps: freetype2-2.3.11 jpeg-7 kbproto-1.0.3 libICE-1.0.4_1,1 libSM-1.1.0_1,1 libX11-1.2.1_1,1 libXau-1.0.4 libXaw-1.0.5_1,1 libXdmcp-1.0.2_1 libXext-1.0.5,1 libXmu-1.0.4,1 libXp-1.0.0,1 libXpm-3.5.7 libXt-1.0.5_1 libiconv-1.13.1 libpthread-stubs-0.3_3 libxcb-1.5 libxml2-2.7.6_1 mysql-client-5.0.88 net-snmp-5.4.2.1_6 pcre-8.00 perl-5.8.9_3 php5-5.2.11_1 php5-bcmath-5.2.11_1 php5-gd-5.2.11_2 php5-mysql-5.2.11_1 php5-pcre-5.2.11_1 php5-snmp-5.2.11_1 php5-sockets-5.2.11_1 pkg-config-0.23_1 png-1.2.40 printproto-1.0.4 t1lib-5.1.2_1,1 xextproto-7.0.5 xproto-7.0.15
WWW: http://www.zabbix.com/
Port: zabbix-proxy-1.8,2
Path: /usr/ports/net-mgmt/zabbix-proxy
Info: Enterprise-class open source distributed monitoring (proxy)
Maint: ports@christianserving.org
B-deps: ca_root_nss-3.12.4 curl-7.19.7 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.4 libgpg-error-1.7 libiconv-1.13.1 mysql-client-5.0.88 net-snmp-5.4.2.1_6 openldap-client-2.4.20 perl-5.8.9_3 pkg-config-0.23_1
R-deps: ca_root_nss-3.12.4 curl-7.19.7 fping-2.4b2_1 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.4 libgpg-error-1.7 libiconv-1.13.1 mysql-client-5.0.88 net-snmp-5.4.2.1_6 openldap-client-2.4.20 perl-5.8.9_3 pkg-config-0.23_1
WWW: http://www.zabbix.com/
Port: zabbix-server-1.8,2
Path: /usr/ports/net-mgmt/zabbix-server
Info: Enterprise-class open source distributed monitoring (server)
Maint: ports@christianserving.org
B-deps: ca_root_nss-3.12.4 curl-7.19.7 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.4 libgpg-error-1.7 libiconv-1.13.1 mysql-client-5.0.88 net-snmp-5.4.2.1_6 openldap-client-2.4.20 perl-5.8.9_3 pkg-config-0.23_1
R-deps: ca_root_nss-3.12.4 curl-7.19.7 fping-2.4b2_1 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.4 libgpg-error-1.7 libiconv-1.13.1 mysql-client-5.0.88 net-snmp-5.4.2.1_6 openldap-client-2.4.20 perl-5.8.9_3 pkg-config-0.23_1
WWW: http://www.zabbix.com/
Код: Выделить всё
bsd# cd /usr/ports/net-mgmt/zabbix-server
bsd# make config
---------------------------------------------------------------------¬
¦ Options for zabbix-server 1.8,2 ¦
¦ -----------------------------------------------------------------¬ ¦
¦ ¦ [X] MYSQL Use MySQL backend ¦ ¦
¦ ¦ [ ] PGSQL Use PostgreSQL backend ¦ ¦
¦ ¦ [X] SQLITE Use SQLite backend ¦ ¦
¦ ¦ [ ] IPV6 Support for IPv6 ¦ ¦
¦ ¦ [X] LDAP Support for checking LDAP servers ¦ ¦
¦ ¦ [X] JABBER Use jabber media type ¦ ¦
¦ ¦ [X] FPING Use fping for pinging hosts ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
+-L------------------------------------------------------------------+
¦ [ OK ] Cancel ¦
L---------------------------------------------------------------------
bsd# make install clean
======================================================================
Zabbix requires a database. If you are using SQLite, one will be
created automatically. Otherwise you can install one as follows (<db>
is your database engine and <db_client> is its client program):
% cd /usr/local/share/zabbix/server/create
% cat schema/<db>.sql data/data.sql data/images_<db>.sql | <db_client>
To upgrade an existing database, see the scripts in
/usr/local/share/zabbix/server/upgrades.
======================================================================
===> Installing rc.d startup script(s)
===> Compressing manual pages for zabbix-server-1.8,2
===> Registering installation for zabbix-server-1.8,2
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/sbin/zabbix_server
This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/zabbix_server
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://www.zabbix.com/
===> Cleaning for zabbix-server-1.8,2
Код: Выделить всё
bsd# portupgrade -rf zabbix-agent-1.6.6,2
[ ] IPV6 Support for IPv6
===> Installing rc.d startup script(s)
===> Compressing manual pages for zabbix-agent-1.8,2
===> Registering installation for zabbix-agent-1.8,2
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/sbin/zabbix_agent
/usr/local/bin/zabbix_sender
/usr/local/sbin/zabbix_agentd
/usr/local/bin/zabbix_get
This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/zabbix_agentd
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://www.zabbix.com/
Код: Выделить всё
bsd# cd /usr/ports/net-mgmt/zabbix-frontend
---------------------------------------------------------------------¬
¦ Options for zabbix-frontend 1.8,2 ¦
¦ -----------------------------------------------------------------¬ ¦
¦ ¦ [X] MYSQL Use MySQL backend ¦ ¦
¦ ¦ [ ] PGSQL Use PostgreSQL backend ¦ ¦
¦ ¦ [X] SQLITE Use SQLite backend ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
+-L------------------------------------------------------------------+
¦ [ OK ] Cancel ¦
L---------------------------------------------------------------------
===> zabbix-frontend-1.8,2 depends on file: /usr/local/include/php/main/php.h - found
===> zabbix-frontend-1.8,2 depends on file: /usr/local/lib/php/20060613/bcmath.so - found
===> zabbix-frontend-1.8,2 depends on file: /usr/local/lib/php/20060613/gd.so - found
===> zabbix-frontend-1.8,2 depends on file: /usr/local/lib/php/20060613/pcre.so - found
===> zabbix-frontend-1.8,2 depends on file: /usr/local/lib/php/20060613/snmp.so - found
===> zabbix-frontend-1.8,2 depends on file: /usr/local/lib/php/20060613/sockets.so - found
===> zabbix-frontend-1.8,2 depends on file: /usr/local/lib/php/20060613/mysql.so - found
===> zabbix-frontend-1.8,2 depends on file: /usr/local/lib/php/20060613/sqlite.so - found
===> Generating temporary packing list
===> Registering installation for zabbix-frontend-1.8,2
===> Cleaning for zabbix-frontend-1.8,2
Код: Выделить всё
bsd# cd /usr/local/share/zabbix/server/upgrades/dbpatches/1.8/mysql/
alter table dhosts drop index dhosts_1;
alter table dservices drop index dservices_1;
alter table httptest drop index httptest_2;
alter table httptest drop index httptest_3;
alter table history_log drop index history_log_2;
alter table history_text drop index history_text_2;
alter table actions drop index actions_1;
alter table escalations drop index escalations_2;
alter table graphs_items drop index graphs_items_1;
alter table graphs_items drop index graphs_items_2;
alter table services drop index services_1;
Код: Выделить всё
bsd# cat patch.sql | mysql -uusername_zabbix -ppassword_username_zabbix db_zabbix
Код: Выделить всё
# cat /etc/sysctl.conf
kern.ipc.shmall=8388608
Код: Выделить всё
vi /usr/local/etc/rc.d/zabbix_server
# REQUIRE: DAEMON mysql
vi /usr/local/etc/rc.d/zabbix_agentd
# REQUIRE: DAEMON mysql
# reboot
Русс http://www.zabbix.com/documentation/ru/ ... /upgradingnotarius писал(а):уже написали ... но не помешает
http://www.zabbix.com/documentation/1.8 ... nd_upgrade
Код: Выделить всё
zabbix# pkg_info | grep zab
zabbix-agent-1.8,2 Enterprise-class open source distributed monitoring (agent)
zabbix-server-1.8,2 Enterprise-class open source distributed monitoring (server
zabbix#
Вебморда наверное..vintovkin писал(а):...для чего фронтенд надо? просветите плз ламера)) ?
ошибки идут, как их победить? я ничего не могу понять((Raven2000 писал(а):веб морда теперь она ставится отдельно
Код: Выделить всё
zabbix# cat patch.sql | mysql -ued -ped zab
ERROR 1061 (42000) at line 1: Duplicate key name 'actions_1'
zabbix# alter table actions drop index actions_1;
alter: Команда не найдена.
zabbix#
zabbix#
zabbix#
zabbix# mys
mysql mysql_upgrade mysqlcheck mysqltest_embedded
mysql_client_test_embedded mysql_upgrade_shell mysqld_safe mysqltestmanager-pwgen
mysql_config mysql_waitpid mysqldump mysqltestmanagerc
mysql_fix_privilege_tables mysqladmin mysqlimport
mysql_install_db mysqlbinlog mysqlshow
mysql_tzinfo_to_sql mysqlbug mysqltest
zabbix# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5317
Server version: 5.0.88-log FreeBSD port: mysql-server-5.0.88
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> alter table actions drop index actions_1;
ERROR 1046 (3D000): No database selected
mysql> use zab
Database changed
mysql> alter table actions drop index actions_1;
Query OK, 5 rows affected (0.01 sec)
Records: 5 Duplicates: 0 Warnings: 0
mysql> Bye
zabbix# cat patch.sql | mysql -ued -ped zab
ERROR 1050 (42S01) at line 2: Table 'auditlog_details' already exists
zabbix#
что я не так делаю ?Raven2000 писал(а):не можешь консольно работай через пхпмуадмин
Код: Выделить всё
zabbix# cat patch.sql | mysql -uroot -proot zab
ERROR 1061 (42000) at line 1: Duplicate key name 'actions_1'
zabbix#
Raven2000 писал(а):ошибок не видел
Код: Выделить всё
zabbix# cat patch.sql | mysql -uroot -proot zab
ERROR 1061 (42000) at line 1: Duplicate key name 'actions_1'
zabbix#
В БД MySQL
Перед запуском скриптов обновления удалите существующие индексы:
да читал, я делал это:Raven2000 писал(а):ты мой пост читал? ...В БД MySQL
Перед запуском скриптов обновления удалите существующие индексы: