]> jspc29.x-matter.uni-frankfurt.de Git - hadesicinga.git/commitdiff
JAM: configuration after fixing netmask forwq
authormanaged by Chef via sys_accounts recipe <root@lxhadeb06.gsi.de>
Thu, 1 Mar 2018 11:41:29 +0000 (12:41 +0100)
committermanaged by Chef via sys_accounts recipe <root@lxhadeb06.gsi.de>
Thu, 1 Mar 2018 11:41:29 +0000 (12:41 +0100)
 epics checks to 111
also contains some previously changed hosts

icinga/icinga.cfg
icinga/objects/commands.cfg
icinga/objects/hosts_eb_servers.cfg
icinga/objects/hosts_hades.cfg

index b95ba02a4906af4f7bd894899c5cff2026f0f068..7ee75b5088ebb5279470b0025bfbd855998cf0fe 100644 (file)
@@ -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
index 1440d28b7295277f07ead0358928ac2098d6598f..72d9ae16a759ee65b0c4648bbe63f8a0f08f0f7a 100644 (file)
@@ -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$
 }
 
index 03e697991a182f301f219866fd052c05a8e96f87..b4c6d7f22ea117fb8718035d4f8695a13e881e63 100644 (file)
@@ -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{
index 1a3fedb48f17a4697cf5cbbaca684a432dcf036f..cf135ae9a39a7b9c1a57e6002268c0c5fdd36172 100644 (file)
@@ -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