Skip to content

Instantly share code, notes, and snippets.

@dexterous
Created March 3, 2011 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dexterous/852377 to your computer and use it in GitHub Desktop.
Save dexterous/852377 to your computer and use it in GitHub Desktop.
That is one long-ass nagios plugin!
#!/bin/bash
/export/groups/nagios/libexec/check_http -f follow -H $1 -u /trainline -a tlsvn:\!4321abcd -r `/usr/bin/curl -u tlsvn:\!4321abcd -L http://bngsvn01.thoughtworks.co/trainline 2> /dev/null | /bin/sed -ne "/title.*Revision/ { s/.*trainline -Revision \([0-9]\+\):.*/\1/ ; p}"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment