From e5fb726160f121507b34e5ce5ea2361065f5f721 Mon Sep 17 00:00:00 2001 From: Matt Visnovsky Date: Tue, 7 May 2024 08:28:27 -0600 Subject: [PATCH] Missed changes leftover from removal of getKey() --- db/knex_migrations/2024-04-26-0000-snmp-monitor.js | 2 +- src/pages/EditMonitor.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/knex_migrations/2024-04-26-0000-snmp-monitor.js b/db/knex_migrations/2024-04-26-0000-snmp-monitor.js index 6cf871005..8e553de7e 100644 --- a/db/knex_migrations/2024-04-26-0000-snmp-monitor.js +++ b/db/knex_migrations/2024-04-26-0000-snmp-monitor.js @@ -3,7 +3,7 @@ exports.up = function (knex) { .alterTable("monitor", function (table) { table.string("snmp_community_string", 255).defaultTo("public"); // Add snmp_community_string column table.string("snmp_oid").defaultTo(null); // Add oid column - table.enum("snmp_version", [ "1", "2c", "3" ]).defaultTo("2c"); // Add snmp_version column with enum values + table.enum("snmp_version", [ "0", "1", "3" ]).defaultTo("1"); // Add snmp_version column with enum values (0: SNMPv1, 1: SNMPv2c, 3: SNMPv3) table.float("snmp_control_value").defaultTo(null); // Add control_value column as float table.string("snmp_condition").defaultTo(null); // Add oid column }); diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 008525bd7..90026d861 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -1339,7 +1339,7 @@ message HealthCheckResponse { // Set default SNMP version if (!this.monitor.snmpVersion) { - this.monitor.snmpVersion = "2c"; + this.monitor.snmpVersion = "1"; } // Get the game list from server