From: managed by Chef via sys_accounts recipe Date: Thu, 1 Mar 2018 11:41:29 +0000 (+0100) Subject: JAM: configuration after fixing netmask forwq X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=c10bfeea528b0fe5bd80b8f8b3a9fa5c30a7e099;p=hadesicinga.git JAM: configuration after fixing netmask forwq epics checks to 111 also contains some previously changed hosts --- diff --git a/icinga/icinga.cfg b/icinga/icinga.cfg index b95ba02..7ee75b5 100644 --- a/icinga/icinga.cfg +++ b/icinga/icinga.cfg @@ -37,6 +37,8 @@ cfg_file=//etc/icinga/objects/localhost.cfg cfg_file=//etc/icinga/objects/hosts_eb_servers.cfg +cfg_file=//etc/icinga/objects/hosts_dcs_servers.cfg + cfg_file=//etc/icinga/objects/hosts_etrax.cfg cfg_file=//etc/icinga/objects/hosts_power.cfg diff --git a/icinga/objects/commands.cfg b/icinga/objects/commands.cfg index 1440d28..72d9ae1 100644 --- a/icinga/objects/commands.cfg +++ b/icinga/objects/commands.cfg @@ -300,12 +300,19 @@ define command { command_line $USER1$/check_by_ssh -o ForwardX11=no -l $ARG1$ -H $HOSTADDRESS$ -C "sudo /usr/lib/nagios/plugins/adaptec-check" } +#check_by_ssh check_raid +define command { + command_name check_raid + command_line $USER1$/check_by_ssh -o ForwardX11=no -l $ARG1$ -H $HOSTADDRESS$ -C "sudo /usr/lib/nagios/plugins/check_raid" +} + + #check_by_ssh check EB iocs -# JAM note: need to specify ca access list as defined in ioc st.cmd to prevent caget error due to double network interface on EB servers +# JAM note: need to specify ca access list as defined in ioc st.cmd to prevent caget error due to double network interface on EB servers - 2018: changed netmask from 103 to 11 define command { command_name check_epics_pv - command_line $USER1$/check_by_ssh -o ForwardX11=no -t 20 -l $ARG1$ -H $HOSTADDRESS$ -C "/home/hadaq/nagios/plugins/my_epics.sh -pv $ARG2$ -H 192.168.103.255:$ARG4$" + command_line $USER1$/check_by_ssh -o ForwardX11=no -t 20 -l $ARG1$ -H $HOSTADDRESS$ -C "/home/hadaq/nagios/plugins/my_epics.sh -pv $ARG2$ -H 192.168.111.255:$ARG4$" } @@ -313,7 +320,7 @@ define command { define command { command_name check_epics_pv_local - command_line $USER1$/my_epics.sh -pv $ARG1$ -H "192.168.103.255 192.168.103.255:10012 192.168.103.255:10008 192.168.103.255:10003 192.168.103.255:10002 192.168.103.255:10001 192.168.103.255:10014 192.168.103.255:10007 192.168.103.255:10004 192.168.103.255:10010 192.168.103.255:10013 192.168.103.255:10015 192.168.103.255:10016 192.168.103.255:10009 192.168.103.255:10005 192.168.103.255:10011 192.168.103.255:10006" + command_line $USER1$/my_epics.sh -pv $ARG1$ -H "192.168.111.255 192.168.111.255:10012 192.168.111.255:10008 192.168.111.255:10003 192.168.111.255:10002 192.168.111.255:10001 192.168.111.255:10014 192.168.111.255:10007 192.168.111.255:10004 192.168.111.255:10010 192.168.111.255:10013 192.168.111.255:10015 192.168.111.255:10016 192.168.111.255:10009 192.168.111.255:10005 192.168.111.255:10011 192.168.111.255:10006" # -expval $ARG2$ } diff --git a/icinga/objects/hosts_eb_servers.cfg b/icinga/objects/hosts_eb_servers.cfg index 03e6979..b4c6d7f 100644 --- a/icinga/objects/hosts_eb_servers.cfg +++ b/icinga/objects/hosts_eb_servers.cfg @@ -264,7 +264,7 @@ define service{ define service{ use remote-service hostgroup_name eb-servers-active -# host_name lxhadeb06 + host_name lxhadeb06 service_description adaptec normal_check_interval 10 retry_check_interval 1 @@ -273,6 +273,19 @@ define service{ check_command check_adaptec!hadaq! } +define service{ + use remote-service + host_name lxhadeb07 + service_description raidcheck + normal_check_interval 10 + retry_check_interval 1 + notification_interval 30 + notification_options c,u,r + check_command check_raid!hadaq! + } + + + ####### here check iocs for eventbuilders: # there must be exactly 4 processes on any active EB server @@ -422,9 +435,9 @@ define service{ #--- HARD DISK TEST service group define servicegroup{ - servicegroup_name adaptecs + servicegroup_name raids alias Raid controllers - members *,adaptec; + members *,adaptec, *,raidcheck; } define servicegroup{ diff --git a/icinga/objects/hosts_hades.cfg b/icinga/objects/hosts_hades.cfg index 1a3fedb..cf135ae 100644 --- a/icinga/objects/hosts_hades.cfg +++ b/icinga/objects/hosts_hades.cfg @@ -84,8 +84,9 @@ define host{ use hades-host ; Name of host template to use host_name hades31 alias hades31 - address 140.181.66.25 - register 1 + #address 140.181.66.25 + address 192.168.100.91 + register 1 } #hades33