]> jspc29.x-matter.uni-frankfurt.de Git - hadesicinga.git/commitdiff
JAM: fixed icinga configuration not to filte out " from macros
authorhadaq <hadaq>
Wed, 15 Feb 2012 10:15:40 +0000 (10:15 +0000)
committerhadaq <hadaq>
Wed, 15 Feb 2012 10:15:40 +0000 (10:15 +0000)
this is required for restart handler argument passing

icinga/icinga.cfg
icinga/objects/commands.cfg
icinga/objects/hosts_eb_servers.cfg
icinga/objects/templates.cfg

index e4b7e271b40608884be4724740a9ea498ecb7f92..398dc8fd7116c253268fca2fff8d6c164b956abc 100644 (file)
@@ -1305,8 +1305,9 @@ illegal_object_name_chars=`~!$%^&*|'"<>?,()=
 #      $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
index aed4be6582d4e420a2f56691e844b1b8ac44ec19..d7f708d5c8834648a635f8749a2c715fc8021d26 100644 (file)
@@ -311,19 +311,19 @@ define command {
 # 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$    
 }
 
 
index fc410b78ca96a1118cfc154f6bcd3ab05203e6c4..76d680f8b8ed5c57e8e1be7fe8efdce87221b6f0 100644 (file)
@@ -120,8 +120,9 @@ 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"!
        }
+# -d -o
 
 # runinfo2ora in one process:
 # define service{
@@ -238,7 +239,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!'-a -s 10 > /dev/null 2>&1'!
+       event_handler                   restart_process!hadaq!/home/hadaq/bin/daq_disks!"-a -s 10"!
        }
 
 define service{
@@ -250,7 +251,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 > /dev/null 2>&1'!
+       event_handler                   restart_process!hadaq!/home/hadaq/bin/cleanup.pl!" "!
        }
 
 
index e4d0763645fd6042ebd88b9dc98ec5ead55c56bd..da97473e9e1937d3150f9d47ea494f2bb5092dc8 100644 (file)
@@ -197,7 +197,7 @@ define service{
 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