Home Directory Plugins Others check_git_branch_checkout.pl (Advanced Nagios Plugins Collection)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_git_branch_checkout.pl (Advanced Nagios Plugins Collection)

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Hits
29558
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Check a Git working copy is in the right branch. Primarily written for puppetmasters to make sure prod and staging environment dirs had the right branches checked out in them
Part of the Advanced Nagios Plugins Collection, download it here:

https://github.com/harisekhon/nagios-plugins

./check_git_branch_checkout.pl --help

Nagios Plugin to check a Git working copy is in the right branch.

Primarily written for puppetmasters to make sure prod and staging
environment dirs had the right branches checked out in them

usage: check_git_branch_checkout.pl [ options ]

-d --directory Directory path to git working copy
-b --branch Branch to expect working copy checkout to be
--git-binary Path to git binary. Defaults to 'git'
-h --help Print description and usage options
-t --timeout Timeout in secs (default: 10)
-v --verbose Verbose mode
-V --version Print version and exit