Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mib_source_url to a Datadog fork of mibs.snmplabs.com #9952

Merged
merged 3 commits into from
Sep 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import click
import yaml

from ....constants import MIB_SOURCE_URL
from ...console import CONTEXT_SETTINGS, abort, echo_debug, echo_info, set_debug


Expand All @@ -22,7 +23,7 @@
'--source',
'-s',
help='Source of the MIBs files. Can be a url or a path for a directory',
default='http://raw.githubusercontent.com/trevoro/snmp-mibs/master/mibs/@mib@',
default=MIB_SOURCE_URL,
)
@click.pass_context
def generate_profile_from_mibs(ctx, mib_files, filters, aliases, debug, interactive, source):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import click
import yaml

from ....constants import MIB_SOURCE_URL
from ...console import CONTEXT_SETTINGS


Expand Down Expand Up @@ -37,7 +38,7 @@ def fetch_mib(mib, source_url):
@click.argument('profile_path')
@click.option(
'--mib_source_url',
default='https://raw.githubusercontent.com/projx/snmp-mibs/master/@mib@',
default=MIB_SOURCE_URL,
help='Source url to fetch missing MIBS',
)
@click.pass_context
Expand Down
2 changes: 2 additions & 0 deletions datadog_checks_dev/datadog_checks/dev/tooling/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@

ROOT = ''

MIB_SOURCE_URL = 'https://raw.githubusercontent.com:443/DataDog/mibs.snmplabs.com/master/asn1/@mib@'


def get_root():
return ROOT
Expand Down