# The CGIs will read the main and host config files for any other
# data they might need.
-main_config_file=//etc/icinga/icinga.cfg
+main_config_file=/etc/icinga/icinga.cfg
# ATTRIBUTE BASED AUTHORIZATION FILE
# This option will include a file defining authroization based on
# attributes.
-#authorization_config_file=//etc/icinga/cgiauth.cfg
+#authorization_config_file=/etc/icinga/cgiauth.cfg
# PHYSICAL HTML PATH
# value is used to locate the logo images needed by the statusmap
# and statuswrl CGIs.
-physical_html_path=/usr/share/icinga
+physical_html_path=/usr/share/icinga/htdocs
http_charset=utf-8
+# NAGIOS PROCESS CHECK COMMAND
+# This is the full path and filename of the program used to check
+# the status of the Nagios process. It is used only by the CGIs
+# and is completely optional. However, if you don't use it, you'll
+# see warning messages in the CGIs about the Nagios process
+# not running and you won't be able to execute any commands from
+# the web interface. The program should follow the same rules
+# as plugins; the return codes are the same as for the plugins,
+# it should have timeout protection, it should output something
+# to STDIO, etc.
+#
+# Note: The command line for the check_nagios plugin below may
+# have to be tweaked a bit, as different versions of the plugin
+# use different command line arguments/syntaxes.
+icinga_check_command=/usr/lib/nagios/plugins/check_nagios /var/lib/icinga/status.dat 5 '/usr/sbin/icinga'
# CONTEXT-SENSITIVE HELP
# This option determines whether or not a context-sensitive
# HIGHLIGHT TABLE ROWS
# This option allows you to define if table rows in status.cgi
# will be highlighted or not.
-# THIS IS EXPERIMENTAL. Will be reworked in version 1.6.
# Values: 0 = disables row highlighting
-# 1 = enables row hhighlighting
+# 1 = enables row highlighting
-highlight_table_rows=0
+highlight_table_rows=1
# This is the cgi log file for information about what users are doing.
# At the moment only submitted commands from cmd.cgi will be logged.
-cgi_log_file=/var/log/icinga/www/icinga-cgi.log
+cgi_log_file=/usr/share/icinga/htdocs/log/icinga-cgi.log
# CGI LOG ROTATION METHOD
# This is the directory where archived (rotated) cgi log files should be
# placed (assuming you've chosen to do log rotation).
-cgi_log_archive_path=/var/log/icinga/www
+cgi_log_archive_path=/usr/share/icinga/htdocs/log
# FORCE COMMENT
#authorized_contactgroup_for_configuration_information=
+# RAW COMMANDLINE CONFIGURATION INFORMATION ACCESS
+# This option is a comma-delimited list of all usernames that
+# can view a command in config command expander as icinga would
+# execute it. To resolve all MACROS it is necessary to allow
+# read access to the web server for resource.cfg .
+# CAUTION: $USERXX$ vars and custom vars can contain sensitive
+# data.
+# Alternatively you can specify contactgroups too.
+
+authorized_for_full_command_resolution=icingaadmin
+#authorized_contactgroup_for_full_command_resolution=
+
+
# SYSTEM/PROCESS COMMAND ACCESS
# This option is a comma-delimited list of all usernames that
# can issue shutdown and restart commands to Icinga via the
# REFRESH RATE
# This option allows you to specify the refresh rate in seconds
-# of various CGIs (status, statusmap, extinfo, and outages).
+# of various CGIs (extinfo, outages, status, statusmap and tac).
refresh_rate=90
+# REFRESH TYPE
+# This option determines what type of refresh should be used.
+# You can choose between http header and javascript. By
+# default javascript (1) is activated. If you have trouble
+# using javascript then try refresh via http header (0).
+
+refresh_type=1
+
# ESCAPE HTML TAGS
# This option determines whether HTML tags in host and service
+# DEFAULT EXPIRING ACKNOWLEDGEMENT DURATION
+# This option defines the default duration (in seconds) of a expiring
+# acknowledgement. Default is 86400 seconds (1 day).
+
+default_expiring_acknowledgement_duration=86400
+
+
+
# SHOW LONG PLUGIN OUTPUT IN STATUS OPTION
# This option allows you to specify the length of status information
# in output of status.cgi. If you set the value to 1 it shows the
+# DISPLAY STATUS TOTAL
+# This option allows you to specify if the
+# Host Status Totals and Service Status Totals
+# should be displayed.
+# Default value is 0.
+
+display_status_totals=0
+
+
+
# SHOW ONLY HARD STATES IN TAC OPTION
# This options allows you to specify if the tactical overview
# should only show hard states on hosts and services.
tac_show_only_hard_state=0
+
+# SHOW CHILD HOSTS IN EXTINFO OPTION
+# This Option allows you to specify if the extended host information
+# cgi will show child hosts for the selected host.
+# 0 = disabled
+# 1 = only show immediate child hosts
+# 2 = show immediate and all child hosts
+# NOTE: Option 2 could be a real performance killer in
+# large installations, so use with care.
+# By default disabled, as this could be a performance killer.
+
+extinfo_show_child_hosts=0
+
+
+
# SUPPRESS MAINTENANCE DOWNTIME
# This options suppresses the state coloring of hosts and services
# that are in a scheduled downtime. It sets their coloring to gray,
# of hosts and services should be shown in showlog.cgi
# Note: This Option only works if the option
# "log_initial_states" in icinga.cfg is set to 1.
-# By default it's enabled. Default is 1.
+# By default it's enabled. Default is 0.
-#showlog_initial_states=1
+#showlog_initial_states=0
# of hosts and services should be shown in showlog.cgi
# Note: This Option only works if the option
# "log_current_states" in icinga.cfg is set to 1.
-# By default it's enabled. Default is 1.
+# By default it's enabled. Default is 0.
+
+#showlog_current_states=0
+
+
+
+# DEFAULT NUM DISPLAYED LOG ENTRIES OPTION
+# This options specifies the number of log entries
+# displayed by default in showlog.cgi. To display
+# all log entries by default set this value to 0.
+# Default is 10000.
-#showlog_current_states=1
+#default_num_displayed_log_entries=10000
# directly) in order to prevent inconsistencies that can occur
# when the config files are modified after Icinga starts.
-object_cache_file=/var/lib/icinga/objects.cache
-
+#object_cache_file=/var/lib/icinga/objects.cache
+object_cache_file=/var/cache/icinga/objects.cache
# PRE-CACHED OBJECT FILE
# Read the documentation section on optimizing Icinga to find our more
# about how this feature works.
-precached_object_file=/var/lib/icinga/objects.precache
-
+#precached_object_file=/var/lib/icinga/objects.precache
+precached_object_file=/var/cache/icinga/objects.precache
# RESOURCE FILE
# This determines the effective user that Icinga should run as.
# You can either supply a username or a UID.
-icinga_user=icinga
+icinga_user=nagios
# This determines the effective group that Icinga should run as.
# You can either supply a group name or a GID.
-icinga_group=icinga
+icinga_group=nagios
# directory level instead of on the file, as the file is deleted every
# time its contents are processed.
-command_file=/var/spool/icinga/icinga.cmd
+#command_file=/var/spool/icinga/icinga.cmd
+command_file=/var/lib/icinga/rw/icinga.cmd
# is created, used, and deleted throughout the time that Icinga is
# running.
-temp_file=/var/lib/icinga/icinga.tmp
+#temp_file=/var/lib/icinga/icinga.tmp
+temp_file=/var/cache/icinga/icinga.tmp
# checks - see the option below for controlling whether or not
# passive checks are logged.
-log_external_commands=1
+#log_external_commands=1
# Note: Make sure that only one instance of Icinga has access
# to this directory!
-check_result_path=/var/lib/icinga/checkresults
+check_result_path=/var/lib/icinga/spool/checkresults
# This file is used only if the retain_state_information
# variable is set to 1.
-state_retention_file=/var/lib/icinga/retention.dat
+#state_retention_file=/var/lib/icinga/retention.dat
+state_retention_file=/var/cache/icinga/retention.dat
# embedded Perl interpreter) is located. If you didn't compile
# Icinga with embedded Perl support, this option has no effect.
-p1_file=//usr/share/icinga/p1.pl
-
+#p1_file=//usr/share/icinga/p1.pl
+p1_file=/usr/lib/icinga/p1.pl
# EMBEDDED PERL INTERPRETER OPTION
# using the $ADMINEMAIL$ and $ADMINPAGER$ macros in your notification
# commands.
-admin_email=icinga@localhost
-admin_pager=pageicinga@localhost
+admin_email=nagios@localhost
+admin_pager=pagenagios@localhost
# These options determine the user/group that the daemon should run as.
# You can specify a number (uid/gid) or a name for either option.
-ido2db_user=icinga
-ido2db_group=icinga
+ido2db_user=nagios
+ido2db_group=nagios
# This option is only valid if the socket type specified above
# is "unix".
-socket_name=/var/spool/icinga/ido2db.sock
+socket_name=/var/lib/icinga/ido.sock
# ocilib: oracle
-db_servertype=mysql
+db_servertype=
#
# Note: ocilib will ignore this, you have to modify your tnsnames.ora
-db_port=3306
+db_port=
# DATABASE SOCKET
# //DBSERVER/SID
# SID
-db_name=icinga
+db_name=
# The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on
# the database.
-db_user=icinga
-db_pass=icinga
+db_user=
+db_pass=
# Keep acknowledgements for 31 days
max_acknowledgements_age=44640
+# Keep notifications for 31 days
+max_notifications_age=44640
+
+# Keep contactnotifications for 31 days
+max_contactnotifications_age=44640
+
+# Keep contactnotificationmethods for 31 days
+max_contactnotificationmethods_age=44640
+
## CLEAN REALTIME TABLES AT CORE STARTUP
# If you don't want to clean all those tables, set this option to 0.
# 1 = More detailed
# 2 = Very detailed
-debug_verbosity=1
+debug_verbosity=2
# DEBUG FILE
# This option determines where the daemon should write debugging information.
-debug_file=/var/lib/icinga/ido2db.debug
+debug_file=/var/log/icinga/ido2db.debug
+# DEBUG READABLE TIMESTAMP
+# This option will allow you to set a readable timestamp instead of the
+# default unix timestamp.
+# Values: 0 = disabled, 1 = enabled
+
+debug_readable_timestamp=0
+
+
+
# OCI ERRORS TO SYSLOG
# ido2db registers an error handler in ocilib which spits all msg
# into debug and syslog by default. Setting this option to 0,
oci_errors_to_syslog=1
+
+
# ORACLE TRACE LEVEL
# This setting activates oracle session trace for each ido2db connection using trace event
# Level value must be one of the currently supported values (1,4,8,12) or 0 for off
oracle_trace_level=0
+
+
+# ENABLE SLA - EXPERIMENTAL!
+# This setting enables collection of SLA data in the slahistory table
+# Values: 0 = disabled, 1 = enabled
+#
+# WARNING: This setting is highly experimantal and may harm your
+# systems performance. Enable at your own risk, and if any problems
+# occur, remark that you are explicitely using it. You've been warned.
+
+enable_sla=0
# tcpsocket = TCP socket
# unixsocket = UNIX domain socket (default)
-output_type=file
+#output_type=file
#output_type=tcpsocket
-#output_type=unixsocket
+output_type=unixsocket
# of fully qualified domain name of the host that the module should
# connect to for sending output.
-output=/var/lib/icinga/ido.dat
+#output=/var/cache/icinga/ido.dat
#output=127.0.0.1
-#output=/var/spool/icinga/ido2db.sock
+output=/var/lib/icinga/ido.sock
#
#define IDOMOD_PROCESS_EVERYTHING 67108863
#
+# ATTENTION: if process data is not dumped via idomod, ido2db won't
+# clean tables and set objects inactive!!!
+#
# You may use the Online Calculator by Gerhard Lausser:
# http://labs.consol.de/nagios/ndo-data-processing-options/
# (please note that there is a checkbox for everything!)
# 1 = More detailed
# 2 = Very detailed
-debug_verbosity=1
+debug_verbosity=2
# DEBUG FILE
# This option determines where the daemon should write debugging information.
-debug_file=/var/lib/icinga/idomod.debug
+debug_file=/var/log/icinga/idomod.debug
# 'check_dhcp' command definition
define command{
command_name check_dhcp
- command_line $USER1$/check_dhcp $ARG1$
+ command_line $USER1$/check_dhcp -i eth2 -s $ARG1$
}
# HOST DEFINITIONS
###############################################################################
-define host{
- use eb-server ; Name of host template to use
- host_name lxhadeb01
- alias lxhadeb01
- address 192.168.100.11
-}
+#define host{
+# use eb-server ; Name of host template to use
+# host_name lxhadeb01
+# alias lxhadeb01
+# address 192.168.100.11
+#}
define host{
use eb-server ; Name of host template to use
use eb-server ; Name of host template to use
host_name lxhadeb06
alias lxhadeb06
- address 140.181.75.165
+ address 192.168.100.16
}
-#TODO: plug in second network connection for lxhadeb06 192.168.100.16
define host{
use eb-server ; Name of host template to use
define hostgroup{
hostgroup_name eb-servers
alias EB Servers
- members lxhadeb01,lxhadeb02,lxhadeb03,lxhadeb04,lxhadeb05,lxhadeb06,lxhadeb07
+ members lxhadeb02,lxhadeb03,lxhadeb04,lxhadeb05,lxhadeb06,lxhadeb07
}
# Eventbuilder servers in use for eventbuilding
define hostgroup{
hostgroup_name eb-servers-fulldisks
alias EB Servers with all harddisks
- members lxhadeb01,lxhadeb02,lxhadeb03,lxhadeb04
+ members lxhadeb02,lxhadeb03,lxhadeb04
}
notification_interval 30
notification_options c,r
check_command check_proc_status!50998!daq2ora!
- event_handler restart_process!hadaq!/home/hadaq/trbsoft/daq/oracle/daq2ora_client.pl!"-d -o"!
+ event_handler restart_process!hadaq!/home/hadaq/trbsoft/daq/oracle/daq2oraclientstart.sh!" "!
}
# runinfo2ora in one process:
# }
#check disk space
-define service{
- use remote-service
- host_name lxhadesdaq
- service_description /DATA
- is_volatile 0
- normal_check_interval 30
- retry_check_interval 1
- notification_interval 120
- check_command check_disk_by_ssh!hadaq!20%!10%!/data!
- }
+#define service{
+# use remote-service
+# host_name lxhadesdaq
+# service_description /DATA
+# is_volatile 0
+# normal_check_interval 30
+# retry_check_interval 1
+# notification_interval 120
+# check_command check_disk_by_ssh!hadaq!20%!10%!/data!
+# }
#check disk space
define service{
normal_check_interval 120
retry_check_interval 1
notification_interval 120
- check_command check_dhcp!lxhadesdaq!
+ check_command check_dhcp!192.168.100.50!
}
##################### end: LXHADESDAQ #########################
define service{
use remote-service
hostgroup_name eb-servers-active
- host_name lxhadeb01, lxhadeb06
+ host_name lxhadeb06
service_description adaptec
normal_check_interval 10
retry_check_interval 1
###############################################################################
# Config File for Monitoring etrax nodes
# This file was automatically generated from trb.db files by daq2icinga.pl
-# Creation time: 06.11.2013 at 13:47:08
+# Creation time: 18.02.2014 at 11:08:53
#
# HOST DEFINITIONS
###############################################################################
host_name hadesp31 ; assigned to pexor
alias hadesp31_pexor
}
-
-# HOST DEFINITION etraxp023
-define host{
- use etrax
- host_name etraxp023 ; assigned to scs
- alias etraxp023_scs
-}
define hostgroup{
hostgroup_name cts
alias etrax_cts
- members etraxp107,etraxp119,hadesp31,etraxp023
+ members etraxp107,etraxp119,hadesp31
}
###############################################################################
define hostgroup{
hostgroup_name hub
alias etrax_hub
- members etraxp096,etraxp097,etraxp098,etraxp099,etraxp100,etraxp101,etraxp102,etraxp103,etraxp104,etraxp121,etraxp023,etraxp107
+ members etraxp096,etraxp097,etraxp098,etraxp099,etraxp100,etraxp101,etraxp102,etraxp103,etraxp104,etraxp121,etraxp107
}
###############################################################################
-# #hadesdaq01
-# define host{
-# name hadesdaq01
-# use hades-host ; Name of host template to use
-# host_name hadesdaq01
-# alias hadesdaq01
-# address 140.181.70.76
-# register 1
-# }
+ #hadesdaq01
+ define host{
+ name hadesdaq01
+ use hades-host ; Name of host template to use
+ host_name hadesdaq01
+ alias hadesdaq01
+ address 140.181.70.76
+ register 1
+ }
#hadesdaq02
define host{
define hostgroup{
hostgroup_name hades-pcs
alias HADES PCs
- members hades30, hades31, hades33, hadesdaq02
+ members hades30, hades31, hades33, hadesdaq02, hadesdaq01
}
define hostgroup{