Skip to content

Instantly share code, notes, and snippets.

@cronnelly
Forked from nstielau/client.sh
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save cronnelly/fc89f0964dbf903c3c21 to your computer and use it in GitHub Desktop.

Select an option

Save cronnelly/fc89f0964dbf903c3c21 to your computer and use it in GitHub Desktop.

Revisions

  1. cronnelly revised this gist Aug 15, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion client.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    #!/bin/bash

    echo '{
    "handlers": ["debug"],
    "name": "push_woot_test",
    "output": "woot!",
    "status": 0
    }' | nc -w1 127.0.0.1 3030
    }' > /dev/udp/127.0.0.1/3030
  2. @nstielau nstielau revised this gist Oct 13, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions client.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    echo '{
    "handlers": ["debug"],
    "name": "push_test",
    "name": "push_woot_test",
    "output": "woot!",
    "status": 0,
    "status": 0
    }' | nc -w1 127.0.0.1 3030
  3. @nstielau nstielau created this gist Sep 27, 2012.
    6 changes: 6 additions & 0 deletions client.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    echo '{
    "handlers": ["debug"],
    "name": "push_test",
    "output": "woot!",
    "status": 0,
    }' | nc -w1 127.0.0.1 3030
    1 change: 1 addition & 0 deletions server.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    tail -f /var/log/sensu/*.log | grep woot