media cdn: adjust defaults

This commit is contained in:
Cyberes 2023-10-02 15:09:12 -06:00
parent 8b71471fc3
commit 103379d949
1 changed files with 3 additions and 4 deletions

View File

@ -28,7 +28,7 @@ parser.add_argument('--check-domain', required=True, help='The domain that shoul
parser.add_argument('--media-cdn-redirect', default='true', help='If set, the server must respond with a redirect to the media CDN domain.')
parser.add_argument('--required-headers', nargs='*', help="If these headers aren't set to the correct value, critical. Use the format 'key=value")
parser.add_argument('--auth-file', help="File to cache the bot's login details to.")
parser.add_argument('--retries', type=int, default=5, help="It may take a few seconds for Synapse to send the uploaded file to S3. Retry this many times with 1 second interval between.")
parser.add_argument('--retries', type=int, default=11, help="It may take a few seconds for Synapse to send the uploaded file to S3. Retry this many times with 1 second interval between.")
parser.add_argument('--timeout', type=float, default=90, help='Request timeout limit.')
parser.add_argument('--warn', type=float, default=2.0, help='Manually set warn level.')
parser.add_argument('--crit', type=float, default=2.5, help='Manually set critical level.')
@ -231,12 +231,11 @@ async def main() -> None:
for msg in prints:
print(msg)
print(f'Took {int(end - start)} seconds to validate the file with {retried} retries.')
if clean_msg:
print(clean_msg)
print(f'|retries={retried}')
if exit_code == nagios.STATE_OK:
print(f'Took {int(end - start)} seconds to with {retried} retries. | retries={retried}')
sys.exit(exit_code)