Hello Markus,
thanks a lot. This was exactly the reason. Now I have exactly 2 ido2db
processes running and Icinga is satisfied! ;-)
What I did:
There are exactly two locations in /etc/icinga/icinga.cfg where the
modules are loaded:
# Definitions for broker modules like idoutils.cfg
cfg_dir=/etc/icinga/modules
This definition of cfg_dir includes a file at
/etc/icinga/modules/idoutils.cfg which contains a module definition:
define module{
module_name idomod
module_type neb
path /usr/lib/icinga/idomod.so
args config_file=/etc/icinga/idomod.cfg
}
This one is loaded first.
Then, a second definiton was uncommented, which I commented out again:
(being a bit amused about the very good documentation I found there)
# Enabling idoutils in icinga.cfg is not recommended. If you want to
# enable idoutils in Debian install icinga-idoutils and copy
# /usr/share/doc/icinga-idoutils/examples/idoutils.cfg-sample to
# /etc/icinga/modules/idoutils.cfg.
# Don't forget to also enable the daemon in /etc/default/icinga
#broker_module=/usr/lib/icinga/idomod.so config_file=/etc/icinga/idomod.cfg
After restarting ido2utils and icinga daemons everything looks fine now.
Best regards
Stefan
Am 14.11.2012 20:58, schrieb Markus Frosch:
Hello Stefan,
looks like you've loaded the IDOmod twice.
Please make sure to only load it once, either by "broker_module" or
"define module".
Best Regards
Markus
2012/11/14 Stefan Pommerening <p...@dmsp.de <mailto:p...@dmsp.de>>
Hello,
I have installed Icinga 1.8.1 including icinga-idoutils on current
Debian 6.0.6.
ii icinga 1.8.1-1~debmon60+2 host and
network monitoring system - metapackage
ii icinga-cgi 1.8.1-1~debmon60+2 host and
network monitoring system - CGI scripts
ii icinga-common 1.8.1-1~debmon60+2 host and
network monitoring system - support files
ii icinga-core 1.8.1-1~debmon60+2 host and
network monitoring system - core files
ii icinga-doc 1.8.1-1~debmon60+2 host and
network monitoring system - documentation
ii icinga-idoutils 1.8.1-1~debmon60+2 host and
network monitoring system - icinga-dataobjects support
Unfortunately after the installation I have 3 instead of only 2 ido2db
processes running:
nagios 16513 0.0 0.0 34192 692 ? Ss 16:33 0:00
/usr/sbin/ido2db -c /etc/icinga/ido2db.cfg
nagios 16580 0.0 0.1 42916 1952 ? Sl 16:33 0:00
/usr/sbin/ido2db -c /etc/icinga/ido2db.cfg
nagios 16581 1.2 0.2 42916 2160 ? Sl 16:33 0:00
/usr/sbin/ido2db -c /etc/icinga/ido2db.cfg
Nevertheless there seems to be no error - I have pnp4nagios installed
and it draws graphs flawlessly.
Also there is no visible error or warning in /var/log/icinga.log:
[1352910808] Icinga 1.8.1 starting... (PID=16579)
[1352910808] Local time is Wed Nov 14 16:33:28 UTC 2012
[1352910808] LOG VERSION: 2.0
[1352910808] idomod: IDOMOD 1.8.1 (10-25-2012) Copyright(c) 2005-2008
Ethan Galstad, Copyright(c) 2009-2012 Icinga Development Team
(https://www.icinga.org)
[1352910808] idomod: Successfully connected to data sink. 0 queued
items to flush.
[1352910808] Event broker module 'IDOMOD' version '1.8.1' from
'/usr/lib/icinga/idomod.so' initialized successfully.
[1352910808] idomod: IDOMOD 1.8.1 (10-25-2012) Copyright(c) 2005-2008
Ethan Galstad, Copyright(c) 2009-2012 Icinga Development Team
(https://www.icinga.org)
[1352910808] idomod: Successfully connected to data sink. 0 queued
items to flush.
[1352910808] Event broker module '/usr/lib/icinga/idomod.so'
initialized
successfully.
[1352910808] Finished daemonizing... (New PID=16584)
[1352910810] Event loop started...
My /etc/icinga/ido2db.cfg file (comments and empty lines stripped)
looks
like:
lock_file=/var/run/icinga/ido2db.pid
ido2db_user=nagios
ido2db_group=nagios
socket_type=unix
socket_name=/var/lib/icinga/ido.sock
socket_perm=0755
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=XXXXXXXXX
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=-1
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
Nevertheless I find it somehow annoying to have a Warning in Icinga
itself regarding the number of ido2db processes for localhost.
Any idea what I could have missed? Currently I have no clue where to
look at...
Kind regards,
Stefan Pommerening
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases,
vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
<mailto:icinga-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/icinga-users
--
Markus Frosch
mar...@lazyfrosch.de <mailto:mar...@lazyfrosch.de>
http://www.lazyfrosch.de
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users