]> jspc29.x-matter.uni-frankfurt.de Git - hadesicinga.git/commitdiff
JAM: struggling with restart handler, still testing
authorhadaq <hadaq>
Tue, 14 Feb 2012 15:35:32 +0000 (15:35 +0000)
committerhadaq <hadaq>
Tue, 14 Feb 2012 15:35:32 +0000 (15:35 +0000)
icinga/objects/commands.cfg
icinga/objects/hosts_eb_servers.cfg

index 0f8e9a2dbaa4ee0e5b93979361c829b87036ec89..aed4be6582d4e420a2f56691e844b1b8ac44ec19 100644 (file)
@@ -317,13 +317,13 @@ define command {
 # 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_gbe.pl -a "-i start -n 1-16" -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 -a '> /dev/null 2>&1' -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 "" -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 -a '> /dev/null 2>&1' -x $SERVICESTATE$ -y $SERVICESTATETYPE$ -z $SERVICEATTEMPT$    
 }
 
 
index 5862f9bccfbc3b011013420455b7c324cf103e5c..fc410b78ca96a1118cfc154f6bcd3ab05203e6c4 100644 (file)
@@ -120,7 +120,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/daq2ora_client.pl!'-d -o'!
        }
 
 # runinfo2ora in one process:
@@ -238,7 +238,7 @@ 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!"-s 10"!
+       event_handler                   restart_process!hadaq!/home/hadaq/bin/daq_disks!'-a -s 10 > /dev/null 2>&1'!
        }
 
 define service{
@@ -250,7 +250,7 @@ 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"!
+       event_handler                   restart_process!hadaq!/home/hadaq/bin/cleanup.pl!'-d > /dev/null 2>&1'!
        }
 
 
@@ -277,10 +277,10 @@ define service{
        retry_check_interval            1
        notification_interval           30
        notification_options            c,w,r
-       check_command                   check_multi_proc_by_ssh!hadaq!SCREEN!4!CRITICAL!
-       event_handler                   restart_eb_epics
+       check_command                   check_multi_proc_by_ssh!hadaq!SCREEN!4!CRITICAL!       
        }
-
+# disabled eventhandler until it is really working JAM
+#event_handler                   restart_eb_epics
 
 
 ## direct check of running iocs with fine granularity: