From 78cb7b22886556b22ea39073abcba77b0f57a957 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 27 Aug 2025 19:12:56 +0200 Subject: check_snmp: fix typos --- plugins/check_snmp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins') diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index c65e3d82..bdf4b4f6 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -105,7 +105,7 @@ int main(int argc, char **argv) { np_set_args(argc, argv); - // Initialize net-snmp before touching the sessio we are going to use + // Initialize net-snmp before touching the session we are going to use init_snmp("check_snmp"); time_t current_time; @@ -190,10 +190,10 @@ int main(int argc, char **argv) { mp_check overall = mp_check_init(); - mp_subcheck sc_succesfull_query = mp_subcheck_init(); - xasprintf(&sc_succesfull_query.output, "SNMP query was succesful"); - sc_succesfull_query = mp_set_subcheck_state(sc_succesfull_query, STATE_OK); - mp_add_subcheck_to_check(&overall, sc_succesfull_query); + mp_subcheck sc_successfull_query = mp_subcheck_init(); + xasprintf(&sc_successfull_query.output, "SNMP query was succesful"); + sc_successfull_query = mp_set_subcheck_state(sc_successfull_query, STATE_OK); + mp_add_subcheck_to_check(&overall, sc_successfull_query); // We got the the query results, now process them size_t loop_index = 0; @@ -643,7 +643,7 @@ static process_arguments_wrapper process_arguments(int argc, char **argv) { // = usmAES256Cisco2PrivProtocol; config.snmp_session.securityAuthProtoLen = // sizeof(usmAES256Cisco2PrivProtocol) / sizeof(oid); } else { - die(STATE_UNKNOWN, "Unknow privacy protocol"); + die(STATE_UNKNOWN, "Unknown privacy protocol"); } break; case 'A': /* auth passwd */ -- cgit v1.2.3-74-g34f1