From TonyM, 5 Years ago, written in Plain Text.
Embed
  1. template(name="noc360" type="list") {
  2.     property(name="msg")
  3.     constant(value="\\n")
  4. }
  5.  
  6. module(load="omprog")
  7.  
  8. if $fromhost-ip != '127.0.0.1' and ($msg startswith ' DHCPACK' or $msg startswith ' Reply')
  9. then action(type="omprog" binary="/opt/noc360-scripts/handle-dhcpack.py" template="noc360")
  10.