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
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$"
}
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$
}
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
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
#--- HARD DISK TEST service group
define servicegroup{
- servicegroup_name adaptecs
+ servicegroup_name raids
alias Raid controllers
- members *,adaptec;
+ members *,adaptec, *,raidcheck;
}
define servicegroup{
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