From: root Date: Fri, 7 Mar 2014 16:52:26 +0000 (+0100) Subject: JAM: adjusted icinga configuration for server lxhadeb06 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=1a7365000f75347d3b0e2a41919aa65049cb82a1;p=hadesicinga.git JAM: adjusted icinga configuration for server lxhadeb06 --- diff --git a/icinga/cgi.cfg b/icinga/cgi.cfg index 651a1b1..a360ec9 100644 --- a/icinga/cgi.cfg +++ b/icinga/cgi.cfg @@ -10,14 +10,14 @@ # 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 @@ -25,7 +25,7 @@ main_config_file=//etc/icinga/icinga.cfg # 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 @@ -56,7 +56,22 @@ url_stylesheets_path=/icinga/stylesheets 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 @@ -71,11 +86,10 @@ show_context_help=0 # 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 @@ -103,7 +117,7 @@ use_logging=0 # 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 @@ -122,7 +136,7 @@ cgi_log_rotation_method=d # 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 @@ -219,6 +233,19 @@ authorized_for_configuration_information=icingaadmin #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 @@ -388,11 +415,19 @@ ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$ # 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 @@ -468,6 +503,14 @@ default_downtime_duration=7200 +# 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 @@ -478,6 +521,16 @@ status_show_long_plugin_output=0 +# 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. @@ -486,6 +539,21 @@ status_show_long_plugin_output=0 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, @@ -520,9 +588,9 @@ show_tac_header_pending=1 # 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 @@ -531,9 +599,19 @@ show_tac_header_pending=1 # 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 diff --git a/icinga/icinga.cfg b/icinga/icinga.cfg index 1d38264..b95ba02 100644 --- a/icinga/icinga.cfg +++ b/icinga/icinga.cfg @@ -76,8 +76,8 @@ cfg_dir=//etc/icinga/modules # 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 @@ -92,8 +92,8 @@ object_cache_file=/var/lib/icinga/objects.cache # 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 @@ -134,7 +134,7 @@ status_update_interval=10 # 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 @@ -142,7 +142,7 @@ icinga_user=icinga # 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 @@ -184,7 +184,8 @@ command_check_interval=-1 # 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 @@ -215,7 +216,8 @@ lock_file=/var/run/icinga/icinga.pid # 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 @@ -381,7 +383,7 @@ log_current_states=1 # checks - see the option below for controlling whether or not # passive checks are logged. -log_external_commands=1 +#log_external_commands=1 @@ -544,7 +546,7 @@ max_check_result_reaper_time=30 # 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 @@ -724,7 +726,8 @@ retain_state_information=1 # 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 @@ -1250,8 +1253,8 @@ use_timezone=Europe/Berlin # 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 @@ -1349,8 +1352,8 @@ use_true_regexp_matching=0 # 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 diff --git a/icinga/ido2db.cfg b/icinga/ido2db.cfg index 98ec12b..df55c19 100644 --- a/icinga/ido2db.cfg +++ b/icinga/ido2db.cfg @@ -16,8 +16,8 @@ lock_file=/var/run/icinga/ido2db.pid # 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 @@ -39,7 +39,7 @@ socket_type=unix # 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 @@ -85,7 +85,7 @@ use_ssl=0 # ocilib: oracle -db_servertype=mysql +db_servertype= @@ -106,7 +106,7 @@ db_host=localhost # # Note: ocilib will ignore this, you have to modify your tnsnames.ora -db_port=3306 +db_port= # DATABASE SOCKET @@ -129,7 +129,7 @@ db_port=3306 # //DBSERVER/SID # SID -db_name=icinga +db_name= @@ -150,8 +150,8 @@ db_prefix=icinga_ # The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on # the database. -db_user=icinga -db_pass=icinga +db_user= +db_pass= @@ -194,6 +194,15 @@ max_logentries_age=44640 # 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. @@ -256,14 +265,14 @@ debug_level=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 @@ -279,6 +288,15 @@ max_debug_file_size=100000000 +# 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, @@ -287,6 +305,8 @@ max_debug_file_size=100000000 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 @@ -300,3 +320,14 @@ oci_errors_to_syslog=1 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 diff --git a/icinga/idomod.cfg b/icinga/idomod.cfg index db53633..b00e040 100644 --- a/icinga/idomod.cfg +++ b/icinga/idomod.cfg @@ -19,9 +19,9 @@ instance_name=default # tcpsocket = TCP socket # unixsocket = UNIX domain socket (default) -output_type=file +#output_type=file #output_type=tcpsocket -#output_type=unixsocket +output_type=unixsocket @@ -33,9 +33,9 @@ output_type=file # 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 @@ -175,6 +175,9 @@ reconnect_warning_interval=15 # #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!) @@ -229,14 +232,14 @@ debug_level=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/idomod.debug +debug_file=/var/log/icinga/idomod.debug diff --git a/icinga/objects/commands.cfg b/icinga/objects/commands.cfg index 8c89195..7c43544 100644 --- a/icinga/objects/commands.cfg +++ b/icinga/objects/commands.cfg @@ -156,7 +156,7 @@ define command{ # '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$ } diff --git a/icinga/objects/hosts_eb_servers.cfg b/icinga/objects/hosts_eb_servers.cfg index 788b446..a5e0170 100644 --- a/icinga/objects/hosts_eb_servers.cfg +++ b/icinga/objects/hosts_eb_servers.cfg @@ -4,12 +4,12 @@ # 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 @@ -43,9 +43,8 @@ define host{ 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 @@ -72,7 +71,7 @@ define host{ 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 @@ -86,7 +85,7 @@ define hostgroup{ define hostgroup{ hostgroup_name eb-servers-fulldisks alias EB Servers with all harddisks - members lxhadeb01,lxhadeb02,lxhadeb03,lxhadeb04 + members lxhadeb02,lxhadeb03,lxhadeb04 } @@ -127,7 +126,7 @@ define service{ 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: @@ -171,16 +170,16 @@ define service{ # } #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{ @@ -212,7 +211,7 @@ 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 ######################### @@ -265,7 +264,7 @@ define service{ 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 diff --git a/icinga/objects/hosts_etrax.cfg b/icinga/objects/hosts_etrax.cfg index ec8fdc7..4fae8be 100644 --- a/icinga/objects/hosts_etrax.cfg +++ b/icinga/objects/hosts_etrax.cfg @@ -1,7 +1,7 @@ ############################################################################### # 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 ############################################################################### @@ -30,17 +30,10 @@ define host{ 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 } ############################################################################### @@ -416,7 +409,7 @@ define host{ 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 } ############################################################################### diff --git a/icinga/objects/hosts_hades.cfg b/icinga/objects/hosts_hades.cfg index f9437d5..8a74e3e 100644 --- a/icinga/objects/hosts_hades.cfg +++ b/icinga/objects/hosts_hades.cfg @@ -17,15 +17,15 @@ -# #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{ @@ -181,7 +181,7 @@ define host{ define hostgroup{ hostgroup_name hades-pcs alias HADES PCs - members hades30, hades31, hades33, hadesdaq02 + members hades30, hades31, hades33, hadesdaq02, hadesdaq01 } define hostgroup{