Skip to content

Commit

Permalink
snmp: Stop checking for snmpget (fix #704)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuslf committed Aug 16, 2023
1 parent 61a32aa commit 929d73f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions check-plugins/snmp/snmp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ from lib.globals import (STATE_CRIT, STATE_OK, # pylint: disable=C0413
STATE_UNKNOWN, STATE_WARN)

__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
__version__ = '2023071203'
__version__ = '2023081601'

DESCRIPTION = """This check is a SNMP application that uses the SNMP GET request to query for
information on a network entity. The object identifiers (OIDs) of interest have
Expand Down Expand Up @@ -197,14 +197,6 @@ def main():
except SystemExit:
sys.exit(STATE_UNKNOWN)

# check if snmpget is installed
success, result = lib.shell.shell_exec('command -v snmpget')
if not success:
lib.base.cu('snmpget not found')
stdout, stderr, retc = result
if retc != 0:
lib.base.cu('snmpget not found')

# read oid list for our device from the CSV file
plugin_path = os.path.join(os.path.dirname(os.path.realpath(__file__)))
snmp_objects = lib.base.coe(
Expand Down

0 comments on commit 929d73f

Please sign in to comment.