Monday, May 20th 2013, 10:20am UTC+2
You are not logged in.
Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in
English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.
Birthday: Nov 15th 1986 (26)
Gender: male
Location: Stuttgart
Occupation: Fachinformatiker für Systemintegration
Nagios Version: keine
Icinga Version: 1.7.2
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 246
Number of services: 1746
OS: Debian 6.0.6
Plugin Version: 1.4.15
Other Addons: OMD
Birthday: May 30th 1983 (29)
Gender: male
Location: Nürnberg
Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways
Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev
Nagios Version: s/nagios/icinga/
Icinga Version: 1.9.0 / GIT
Distributed monitoring: Ja
Redundant monitoring: Ja
Number of hosts: 1000+
Number of services: 15000+
OS: RHEL, Debian, SUSE
Plugin Version: 1.4.16
IDO-Version: 1.9.0 / GIT MySQL/Postgresql/Oracle
Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf
Birthday: Nov 15th 1986 (26)
Gender: male
Location: Stuttgart
Occupation: Fachinformatiker für Systemintegration
Nagios Version: keine
Icinga Version: 1.7.2
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 246
Number of services: 1746
OS: Debian 6.0.6
Plugin Version: 1.4.15
Other Addons: OMD
This post has been edited 1 times, last edit by "figo" (Jul 26th 2012, 2:10pm)
Birthday: May 30th 1983 (29)
Gender: male
Location: Nürnberg
Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways
Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev
Nagios Version: s/nagios/icinga/
Icinga Version: 1.9.0 / GIT
Distributed monitoring: Ja
Redundant monitoring: Ja
Number of hosts: 1000+
Number of services: 15000+
OS: RHEL, Debian, SUSE
Plugin Version: 1.4.16
IDO-Version: 1.9.0 / GIT MySQL/Postgresql/Oracle
Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf
Birthday: Nov 15th 1986 (26)
Gender: male
Location: Stuttgart
Occupation: Fachinformatiker für Systemintegration
Nagios Version: keine
Icinga Version: 1.7.2
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 246
Number of services: 1746
OS: Debian 6.0.6
Plugin Version: 1.4.15
Other Addons: OMD
|
|
Source code |
1 2 |
# Definitions for broker modules like idoutils.cfg cfg_dir=/usr/local/icinga/etc/modules |
|
|
Source code |
1 2 3 4 5 6 |
define module{
module_name idomod
module_type neb
path /usr/local/icinga/lib64/idomod.so
args config_file=/usr/local/icinga/etc/idomod.cfg
}
|
|
|
Source code |
1 2 3 |
ll /usr/local/icinga/lib64/ insgesamt 168 -rwxrwxr-- 1 icinga icinga 169831 26. Jul 10:39 idomod.so |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
instance_name=default output_type=unixsocket output=/usr/local/icinga/var/ido.sock tcp_port=5668 use_ssl=0 output_buffer_items=5000 buffer_file=/usr/local/icinga/var/idomod.tmp file_rotation_interval=14400 file_rotation_timeout=60 reconnect_interval=15 reconnect_warning_interval=15 data_processing_options=67108669 config_output_options=2 debug_level=0 debug_verbosity=2 debug_file=/usr/local/icinga/var/idomod.debug max_debug_file_size=100000000 |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
lock_file=/usr/local/icinga/var/ido2db.lock ido2db_user=icinga ido2db_group=icinga socket_type=unix socket_name=/usr/local/icinga/var/ido.sock tcp_port=5668 use_ssl=0 db_servertype=mysql db_host=localhost db_port=3306 db_name=icinga db_prefix=icinga_ db_user=icinga db_pass=icinga max_timedevents_age=60 max_systemcommands_age=1440 max_servicechecks_age=1440 max_hostchecks_age=1440 max_eventhandlers_age=10080 max_externalcommands_age=10080 max_logentries_age=44640 max_acknowledgements_age=44640 max_notifications_age=44640 max_contactnotifications_age=44640 max_contactnotificationmethods_age=44640 clean_realtime_tables_on_core_startup=1 clean_config_tables_on_core_startup=1 trim_db_interval=3600 housekeeping_thread_startup_delay=300 debug_level=0 debug_verbosity=2 debug_file=/usr/local/icinga/var/ido2db.debug max_debug_file_size=100000000 debug_readable_timestamp=0 oci_errors_to_syslog=1 oracle_trace_level=0 enable_sla=0 |
Gender: male
Number of monitoring servers: x
Nagios Version: keine
Icinga Version: 1.8.3
Distributed monitoring: Ja
Redundant monitoring: Nein
Number of hosts: 600
Number of services: 6500
OS: SuSE SLES Linux
Plugin Version: 1.4.x
NagVis Version: 1.6.x
IDO-Version: 1.8.3
Other Addons: SNMPTT, PNP 0.6.x, Nagvis, Business Process AddOn, EventDB, mod_gearman
|
|
Source code |
1 |
mv /usr/local/icinga/etc/modules/idoutils.cfg-sample /usr/local/icinga/etc/modules/idoutils.cfg |
Birthday: Nov 15th 1986 (26)
Gender: male
Location: Stuttgart
Occupation: Fachinformatiker für Systemintegration
Nagios Version: keine
Icinga Version: 1.7.2
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 246
Number of services: 1746
OS: Debian 6.0.6
Plugin Version: 1.4.15
Other Addons: OMD
Location: Kassel
Occupation: Sysadmin SAP / Linux / AIX
Number of monitoring servers: 2
Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)
Nagios Version: 3.2.3 ( OMD )
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 360
Number of services: 6700
OS: Debian 6.0
Plugin Version: 1.4.x
Other Addons: SNMPTT, NagTrap, check_mk, PNP-0.6.x. Thruk
jetzt tut es super danke!
Birthday: Nov 15th 1986 (26)
Gender: male
Location: Stuttgart
Occupation: Fachinformatiker für Systemintegration
Nagios Version: keine
Icinga Version: 1.7.2
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 246
Number of services: 1746
OS: Debian 6.0.6
Plugin Version: 1.4.15
Other Addons: OMD
Ich hoffe das passt nun so!Und im Gegenzug formatierst du deinen Post #3 noch mal richtig.
Danke
Beginner
Gender: male
Location: Köln
Number of monitoring servers: 1
Nagios Version: 3
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 10
Number of services: 150
OS: ESXi, XP, 2003 & 2008
Plugin Version: mal schauen
NDO Version: 1
|
|
Source code |
1 |
cp /usr/share/doc/icinga-idoutils/examples/idoutils.cfg-sample /etc/icinga/modules/idoutils.cfg |
|
|
Source code |
1 2 3 4 5 6 |
define module{
module_name idomod
module_type neb
path /usr/lib/icinga/idomod.so
args config_file=/etc/icinga/idomod.cfg
}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
socket_type=unix #socket_type=tcp socket_name=/var/lib/icinga/ido.sock tcp_port=5668 db_servertype=mysql db_host=sqlserver.domain.de db_port=3306 #db_socket=/var/lib/mysql/mysql.sock db_name=icinga db_prefix=icinga_ db_user=icinga-idoutils db_pass=password |
|
|
Source code |
1 2 3 4 5 |
instance_name=default output_type=unixsocket output=/var/lib/icinga/ido.sock tcp_port=5668 buffer_file=/var/lib/icinga/idomod.tmp |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
Jul 29 00:46:49 Mon1 ido2db: Error: database connection failed, forced client disconnect... Jul 29 00:46:49 Mon1 ido2db: Successfully shutdown... (PID=6676) Jul 29 00:46:49 Mon1 icinga: idomod: Error writing to data sink! Some output may get lost... Jul 29 00:46:49 Mon1 icinga: idomod: Please check remote ido2db log, database connection or SSL Parameters Jul 29 00:47:07 Mon1 icinga: idomod: Successfully reconnected to data sink! 0 items lost, 12 queued items to flush. Jul 29 00:47:07 Mon1 icinga: idomod: Successfully flushed 12 queued items to data sink. Jul 29 00:47:07 Mon1 ido2db: Client connected, data available. Jul 29 00:47:07 Mon1 ido2db: Handling client connection... Jul 29 00:47:07 Mon1 ido2db: Error: Could not connect to mysql database: 1045: Access denied for user 'icinga-idoutils'@'192.168.81.19' (using password: YES) Jul 29 00:47:07 Mon1 ido2db: Error: database connection failed, forced client disconnect... Jul 29 00:47:07 Mon1 ido2db: Successfully shutdown... (PID=6692) Jul 29 00:47:09 Mon1 icinga: idomod: Error writing to data sink! Some output may get lost... |
|
|
Source code |
1 2 3 4 5 6 7 8 |
[1343516509.170440] [001.2] [pid=8038] [tid=140104672151296] ido2db_db_connect() start [1343516509.179544] [001.2] [pid=8038] [tid=140104672151296] ido2db_db_connect(-1) end [1343516509.179575] [001.2] [pid=8038] [tid=140104672151296] ido2db_handle_client_connection() idi.dbinfo.connected is '0' [1343516509.179586] [001.2] [pid=8038] [tid=140104672151296] ido2db_db_disconnect() start [1343516509.179608] [001.2] [pid=8038] [tid=140104672151296] ido2db_db_disconnect() already disconnected [1343516509.179618] [001.2] [pid=8038] [tid=140104672151296] ido2db_db_deinit() start [1343516509.180848] [001.2] [pid=5833] [tid=140104672151296] processing signal '17' [1343516509.180859] [001.2] [pid=5833] [tid=140104672151296] cleanup children that exit, so we don't have zombies |
|
|
Source code |
1 2 |
[1343516625.063735] [001.2] [pid=5878] idomod_broker_data() start [1343516625.318230] [001.2] [pid=5878] idomod_broker_data() start |
|
|
Source code |
1 |
ps aux | grep ido2db | grep -v grep | wc -l |
Gender: male
Number of monitoring servers: 2
Nagios Version: 3.2.1
Icinga Version: Icinga 1.7.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: >70
Number of services: >200
OS: SLES11
Plugin Version: 1.4.15
Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18
Birthday: May 30th 1983 (29)
Gender: male
Location: Nürnberg
Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways
Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev
Nagios Version: s/nagios/icinga/
Icinga Version: 1.9.0 / GIT
Distributed monitoring: Ja
Redundant monitoring: Ja
Number of hosts: 1000+
Number of services: 15000+
OS: RHEL, Debian, SUSE
Plugin Version: 1.4.16
IDO-Version: 1.9.0 / GIT MySQL/Postgresql/Oracle
Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf
Der Zugriff durch ido2db.cfg soll auf einen externen MySQL-Server erfolgen.
...
![]()
Source code
1 2 3 4 5 6 7 db_servertype=mysql db_host=sqlserver.domain.de db_port=3306 db_name=icinga db_prefix=icinga_ db_user=icinga-idoutils db_pass=password
...
![]()
Source code
1 2 Jul 29 00:47:07 Mon1 ido2db: Error: Could not connect to mysql database: 1045: Access denied for user 'icinga-idoutils'@'192.168.81.19' (using password: YES) Jul 29 00:47:07 Mon1 ido2db: Error: database connection failed, forced client disconnect...
Was mir auffällt, ist die Tatsache, dass versucht wird eine Verbindung mit dem lokalen Host herzustellen. Die IP-Adresse 192.168.81.19 ist die des Monitoring Servers und nicht die korrekte des MySQL Server, dieser hat die 192.168.81.81.
Beginner
Gender: male
Location: Köln
Number of monitoring servers: 1
Nagios Version: 3
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 10
Number of services: 150
OS: ESXi, XP, 2003 & 2008
Plugin Version: mal schauen
NDO Version: 1
Quoted
als db_host definierst du etwas gaenzlich anderes?
Birthday: May 30th 1983 (29)
Gender: male
Location: Nürnberg
Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways
Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev
Nagios Version: s/nagios/icinga/
Icinga Version: 1.9.0 / GIT
Distributed monitoring: Ja
Redundant monitoring: Ja
Number of hosts: 1000+
Number of services: 15000+
OS: RHEL, Debian, SUSE
Plugin Version: 1.4.16
IDO-Version: 1.9.0 / GIT MySQL/Postgresql/Oracle
Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf
Hatte es nur aus der Fehlerwarte betrachtet, da sich die Fehlermeldungen bei uns gleichen.
Als db_host definiere ich den Namen des Datenbankservers (alias), der vom Monitoring-Server korrekt in die entsprechende IP-Adresse 192.168.81.81 aufgelöst wird.
Beginner
Gender: male
Location: Köln
Number of monitoring servers: 1
Nagios Version: 3
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 10
Number of services: 150
OS: ESXi, XP, 2003 & 2008
Plugin Version: mal schauen
NDO Version: 1
Quoted
ich bin trotzdem kein fan davon, wenn man threads "hijacked" um ein unterschiedliches problem zu diskutieren, auch wenn die fehlermeldung aehnlich ist.
Quoted
was passiert wenn du die ipadresse direkt eintraegst?
Gender: male
Number of monitoring servers: 2
Nagios Version: 3.2.1
Icinga Version: Icinga 1.7.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: >70
Number of services: >200
OS: SLES11
Plugin Version: 1.4.15
Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18
Quoted from "RogerG81"
Da ich einen externen MySQL Server nutze, muss ich evtl. den output_type auf tcpsocket setzen?
Quoted
Beginner
Gender: male
Location: Köln
Number of monitoring servers: 1
Nagios Version: 3
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 10
Number of services: 150
OS: ESXi, XP, 2003 & 2008
Plugin Version: mal schauen
NDO Version: 1
Quoted
siehe Dokumentation
Beginner
Number of monitoring servers: Nein
Nagios Version: 3.4.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 62
Number of services: 863
OS: Deb 6
Plugin Version: 1.6.1
|
|
Source code |
1 |
ido2db Process PROCS WARNING: 1 process with command name 'ido2db' |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
log_file=/var/log/icinga/icinga.log # Commands definitions cfg_file=/etc/icinga/commands.cfg # Debian also defaults to using the check commands defined by the debian # nagios-plugins package cfg_dir=/etc/nagios-plugins/config/ # Debian uses by default a configuration directory where icinga-common, # other packages and the local admin can dump or link configuration # files into. cfg_dir=/etc/icinga/objects/ # Definitions for broker modules like idoutils.cfg cfg_dir=/etc/icinga/modules |
|
|
Source code |
1 2 3 4 5 6 |
define module{
module_name idomod
module_type neb
path /usr/sbin/idomod.o
args config_file=/etc/icinga/idomod.cfg
}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
instance_name=default output_type=unixsocket output=/var/lib/icinga/ido.sock tcp_port=5668 use_ssl=0 output_buffer_items=5000 buffer_file=/var/lib/icinga/idomod.tmp file_rotation_interval=14400 file_rotation_timeout=60 reconnect_interval=15 reconnect_warning_interval=15 data_processing_options=67108669 config_output_options=2 debug_level=0 debug_verbosity=2 debug_file=/var/log/icinga/idomod.debug max_debug_file_size=100000000 |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
lock_file=/var/run/icinga/ido2db.pid ido2db_user=nagios ido2db_group=nagios socket_type=unix socket_name=/var/lib/icinga/ido.sock tcp_port=5668 use_ssl=0 db_servertype=mysql db_host=localhost db_port= db_name=icinga db_prefix=icinga_ db_user=icinga-idoutils db_pass=Hal0dr1 max_timedevents_age=60 max_systemcommands_age=1440 max_servicechecks_age=1440 max_hostchecks_age=1440 max_eventhandlers_age=10080 max_externalcommands_age=10080 max_logentries_age=44640 max_acknowledgements_age=44640 max_notifications_age=44640 max_contactnotifications_age=44640 max_contactnotificationmethods_age=44640 clean_realtime_tables_on_core_startup=1 clean_config_tables_on_core_startup=1 trim_db_interval=3600 housekeeping_thread_startup_delay=300 debug_level=0 debug_verbosity=2 debug_file=/var/log/icinga/ido2db.debug max_debug_file_size=100000000 debug_readable_timestamp=0 oci_errors_to_syslog=1 oracle_trace_level=0 enable_sla=0 |
Birthday: May 30th 1983 (29)
Gender: male
Location: Nürnberg
Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways
Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev
Nagios Version: s/nagios/icinga/
Icinga Version: 1.9.0 / GIT
Distributed monitoring: Ja
Redundant monitoring: Ja
Number of hosts: 1000+
Number of services: 15000+
OS: RHEL, Debian, SUSE
Plugin Version: 1.4.16
IDO-Version: 1.9.0 / GIT MySQL/Postgresql/Oracle
Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf
Beginner
Number of monitoring servers: Nein
Nagios Version: 3.4.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 62
Number of services: 863
OS: Deb 6
Plugin Version: 1.6.1
|
|
Source code |
1 2 3 4 |
cat /var/log/icinga/icinga.log | grep idomod.o [1348814191] Error: Could not load module '/usr/sbin/idomod.o' -> /usr/sbin/idomod.o: cannot open shared object file: No such file or directory [1348814191] Error: Could not load module '/usr/lib/icinga/idomod.o' -> /usr/lib/icinga/idomod.o: cannot open shared object file: No such file or directory |
|
|
Source code |
1 2 3 4 |
cat /var/log/syslog | grep idomod Sep 28 08:36:31 monitor icinga: Error: Could not load module '/usr/sbin/idomod.o' -> /usr/sbin/idomod.o: cannot open shared object file: No such file or directory Sep 28 08:36:31 monitor icinga: Error: Could not load module '/usr/lib/icinga/idomod.o' -> /usr/lib/icinga/idomod.o: cannot open shared object file: No such file or directory |
|
|
Source code |
1 2 3 4 5 |
idomod.o was renamed to idomod.so, module extension is now .so idomod.so will now be installed to /usr/local/icinga/lib Check your config within wether icinga.cfg:broker_module OR module definition in modules/ and update to the new path!!! |
|
|
Source code |
1 |
#broker_module=/usr/local/icinga/lib/idomod.so config_file=/usr/local/icinga/etc/idomod.cfg |
|
|
Source code |
1 |
cfg_dir=/usr/local/icinga/etc/modules |
This post has been edited 3 times, last edit by "speedtree" (Sep 28th 2012, 12:31pm)