# $SERVICEACKAUTHOR$
# $SERVICEACKCOMMENT$
-illegal_macro_output_chars=`~$&|'"<>
-
+#illegal_macro_output_chars=`~$&|'"<>
+#removed the " here to pass multiple args for restart handler JAM
+illegal_macro_output_chars=`~$&|'<>
# REGULAR EXPRESSION MATCHING
# restart any process by name if state is critical after 3 attempts
define command {
command_name restart_process
- command_line $USER1$/my_restart_handler.pl -r -m $ARG1$@$HOSTADDRESS$ -s $ARG2$ -a $ARG3$ -x $SERVICESTATE$ -y $SERVICESTATETYPE$ -z $SERVICEATTEMPT$
+ command_line $USER1$/my_restart_handler.pl -r -m $ARG1$@$HOSTADDRESS$ -s $ARG2$ -x $SERVICESTATE$ -y $SERVICESTATETYPE$ -z $SERVICEATTEMPT$ -a $ARG3$
}
# restart eventbuilder epics if state is critical after 3 attempts
define command {
command_name restart_eb_epics
- command_line $USER1$/my_restart_handler.pl -m hadaq@lxhadesdaq -s /home/hadaq/trbsoft/daq/evtbuild/start_eb_iocs.sh -a '> /dev/null 2>&1' -x $SERVICESTATE$ -y $SERVICESTATETYPE$ -z $SERVICEATTEMPT$
+ command_line $USER1$/my_restart_handler.pl -m hadaq@lxhadesdaq -s /home/hadaq/trbsoft/daq/evtbuild/start_eb_iocs.sh -x $SERVICESTATE$ -y $SERVICESTATETYPE$ -z $SERVICEATTEMPT$
}
# restart oracle export processes if state is critical after 3 attempts
define command {
command_name restart_run2oracle
- command_line $USER1$/my_restart_handler.pl -m hadaq@lxhadesdaq -s /home/hadaq/trbsoft/daq/oracle/runinfo2orastart_parallel.sh -a '> /dev/null 2>&1' -x $SERVICESTATE$ -y $SERVICESTATETYPE$ -z $SERVICEATTEMPT$
+ command_line $USER1$/my_restart_handler.pl -m hadaq@lxhadesdaq -s /home/hadaq/trbsoft/daq/oracle/runinfo2orastart_parallel.sh -x $SERVICESTATE$ -y $SERVICESTATETYPE$ -z $SERVICEATTEMPT$
}
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/daq2ora_client.pl!"-d -o"!
}
+# -d -o
# runinfo2ora in one process:
# define service{
notification_interval 30
notification_options c,u,r
check_command check_proc_by_ssh!hadaq!daq_disks!
- event_handler restart_process!hadaq!/home/hadaq/bin/daq_disks!'-a -s 10 > /dev/null 2>&1'!
+ event_handler restart_process!hadaq!/home/hadaq/bin/daq_disks!"-a -s 10"!
}
define service{
notification_interval 30
notification_options c,u,r
check_command check_proc_status!50501!cleanup!
- event_handler restart_process!hadaq!/home/hadaq/bin/cleanup.pl!'-d > /dev/null 2>&1'!
+ event_handler restart_process!hadaq!/home/hadaq/bin/cleanup.pl!" "!
}
define service{
name remote-service
use generic-service
- max_check_attempts 3
+ max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
notification_options c,u,r