Skip to content

Exit with a non-zero exit code if nothing is logged to STDERR. #10

Merged
merged 1 commit into from Jan 6, 2012

2 participants

@dougbarth

A proper exit code is needed for monitoring of the success or failure of
the backup attempt by services like probyapp.com.

It is possible to get mongodump to not print to STDERR by making sure
that all options are configured correctly (for example, disabling
replication finding if not using replica sets).

@dougbarth dougbarth Exit with a non-zero exit code if nothing is logged to STDERR.
A proper exit code is needed for monitoring of the success or failure of
the backup attempt by services like probyapp.com.

It is possible to get mongodump to not print to STDERR by making sure
that all options are configured correctly (for example, disabling
replication finding if not using replica sets).
1ed0479
@jalogisch jalogisch merged commit b9ca543 into micahwedemeyer:master Jan 6, 2012
@jalogisch
Collaborator

real nice point!

most time i work with nagios/shinken/incinga passive checks for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.