Skip to content

Instantly share code, notes, and snippets.

@jblaine
Created October 26, 2012 15:13
Show Gist options
  • Save jblaine/3959351 to your computer and use it in GitHub Desktop.
Save jblaine/3959351 to your computer and use it in GitHub Desktop.
WORKING INPUTS --------------------------------------------------------------------------
control:
site = ( rcf )
domain = ( our.org )
access = ( root )
inform = ( on )
actionsequence = (
processes
shellcommands
)
processes:
linux::
"aex-pluginmanager" matches=<2 define=sma_running elsedefine=sma_not_running
shellcommands:
sma_not_running.(redhat|centos)::
"/bin/echo 'SMA NOT RUNNING'"
END WORKING INPUTS ------------------------------------------------------------------------
OUTPUT FROM WORKING INPUTS ----------------------------------------------------------------
Defined Classes = ( 10_84_3 10_84_3_199 64_bit Day26 Friday GMT_Hr15 Hr11 Hr11_Q1 Min05_10
Min06 October Q1 Yr2012 any benchmark_rcf benchmark_rcf_our_org cfengine_2 cfengine_2_2
cfengine_2_2_10 compiled_on_linux_gnu fe80__250_56ff_fea0_3e2b ipv4_10 ipv4_10_84 ipv4_10_84_3
ipv4_10_84_3_199 linux linux_2_6_32_220_7_1_el6_x86_64 linux_x86_64
linux_x86_64_2_6_32_220_7_1_el6_x86_64
linux_x86_64_2_6_32_220_7_1_el6_x86_64__1_SMP_Fri_Feb_10_15_22_22_EST_2012 lsb_compliant
our_org net_iface_eth0 net_iface_lo org redhat redhat_s redhat_s_6 redhat_s_6_2
redhatenterpriseserver redhatenterpriseserver_6 redhatenterpriseserver_6_2
redhatenterpriseserver_santiago x86_64 )
Negated Classes = ( )
Installable classes = ( no_default_route sma_running sma_not_running )
...
*********************************************************************
Main Tree Sched: processes pass 1 @ Fri Oct 26 11:03:22 2012
*********************************************************************
cfengine:benchmark-rcf: Running process command /bin/ps auxw
Defining classes sma_not_running <----------- NOTE!!!!!
DoSignals(aex-pluginmanager)
*********************************************************************
Main Tree Sched: shellcommands pass 1 @ Fri Oct 26 11:03:22 2012
*********************************************************************
cfengine:benchmark-rcf:
Executing script /bin/echo 'SMA NOT RUNNING'...(timeout=0,uid=-1,gid=-1) <---- NOTE!!!
(Setting umask to 77)
cfengine:benchmark-rcf:/bin/echo 'SMA : SMA NOT RUNNING
cfengine:benchmark-rcf: Finished script /bin/echo 'SMA NOT RUNNING'
Performance(Exec(/bin/echo 'SMA NOT RUNNING')): time=0.0022 secs, av=0.0022 +/- 0.0047
---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++
Summary of objects involved
++++++++++++++++++++++++++++++++++++++++
global
main
END OUTPUT FROM WORKING INPUTS -------------------------------------------------------------
FAILING INPUTS -----------------------------------------------------------------------------
control:
site = ( rcf )
domain = ( our.org )
access = ( root ) # This will bunk if changed
inform = ( on )
actionsequence = (
processes
shellcommands
)
shellcommands:
sma_not_running.(redhat|centos)::
"/bin/echo 'SMA NOT RUNNING'"
processes:
linux::
"aex-pluginmanager" matches=<2 define=sma_running elsedefine=sma_not_running
END FAILING INPUTS -------------------------------------------------------------------------
OUTPUT FROM FAILING INPUTS -----------------------------------------------------------------
Defined Classes = ( 10_84_3 10_84_3_199 64_bit Day26 Friday GMT_Hr15 Hr11 Hr11_Q1 Min05_10
Min06 October Q1 Yr2012 any benchmark_rcf benchmark_rcf_our_org cfengine_2 cfengine_2_2
cfengine_2_2_10 compiled_on_linux_gnu fe80__250_56ff_fea0_3e2b ipv4_10 ipv4_10_84 ipv4_10_84_3
ipv4_10_84_3_199 linux linux_2_6_32_220_7_1_el6_x86_64 linux_x86_64
linux_x86_64_2_6_32_220_7_1_el6_x86_64
linux_x86_64_2_6_32_220_7_1_el6_x86_64__1_SMP_Fri_Feb_10_15_22_22_EST_2012 lsb_compliant
our_org net_iface_eth0 net_iface_lo org redhat redhat_s redhat_s_6 redhat_s_6_2
redhatenterpriseserver redhatenterpriseserver_6 redhatenterpriseserver_6_2
redhatenterpriseserver_santiago x86_64 )
Negated Classes = ( )
Installable classes = ( no_default_route sma_running sma_not_running )
...
*********************************************************************
Main Tree Sched: processes pass 1 @ Fri Oct 26 11:06:33 2012
*********************************************************************
cfengine:benchmark-rcf: Running process command /bin/ps auxw
Defining classes sma_not_running
DoSignals(aex-pluginmanager)
*********************************************************************
Main Tree Sched: shellcommands pass 1 @ Fri Oct 26 11:06:33 2012
*********************************************************************
NOTHING!
---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++
Summary of objects involved
++++++++++++++++++++++++++++++++++++++++
global
main
END OUTPUT FROM FAILING INPUTS -------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment