SNMP Initial Commits

This commit introduces a new SNMP monitor feature to the application, allowing users to monitor devices using SNMP (Simple Network Management Protocol).
This commit is contained in:
Matt Visnovsky
2024-04-26 19:05:56 -06:00
parent bab427f715
commit d92003e172
7 changed files with 714 additions and 647 deletions

View File

@@ -0,0 +1,10 @@
exports.up = function (knex) {
return knex.schema
.alterTable("monitor", function (table) {
table.string("snmp_community_string", 255).defaultTo("public"); // Add community_string column
table.string("snmp_oid").notNullable(); // Add oid column
table.enum("snmp_version", ["1", "2c", "3"]).defaultTo("2c"); // Add snmp_version column with enum values
table.float("snmp_control_value").notNullable(); // Add control_value column as float
table.string("snmp_condition").notNullable(); // Add oid column
});
};