summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-27 19:12:56 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-27 19:12:56 +0200
commit78cb7b22886556b22ea39073abcba77b0f57a957 (patch)
treebffae441970adfa1af17d68163007387797365d9
parent75f792bc6bdb24371197774787aa312d94fd6773 (diff)
downloadmonitoring-plugins-78cb7b22886556b22ea39073abcba77b0f57a957.tar.gz
check_snmp: fix typos
-rw-r--r--plugins/check_snmp.c12
1 files changed, 6 insertions, 6 deletions
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) {
105 105
106 np_set_args(argc, argv); 106 np_set_args(argc, argv);
107 107
108 // Initialize net-snmp before touching the sessio we are going to use 108 // Initialize net-snmp before touching the session we are going to use
109 init_snmp("check_snmp"); 109 init_snmp("check_snmp");
110 110
111 time_t current_time; 111 time_t current_time;
@@ -190,10 +190,10 @@ int main(int argc, char **argv) {
190 190
191 mp_check overall = mp_check_init(); 191 mp_check overall = mp_check_init();
192 192
193 mp_subcheck sc_succesfull_query = mp_subcheck_init(); 193 mp_subcheck sc_successfull_query = mp_subcheck_init();
194 xasprintf(&sc_succesfull_query.output, "SNMP query was succesful"); 194 xasprintf(&sc_successfull_query.output, "SNMP query was succesful");
195 sc_succesfull_query = mp_set_subcheck_state(sc_succesfull_query, STATE_OK); 195 sc_successfull_query = mp_set_subcheck_state(sc_successfull_query, STATE_OK);
196 mp_add_subcheck_to_check(&overall, sc_succesfull_query); 196 mp_add_subcheck_to_check(&overall, sc_successfull_query);
197 197
198 // We got the the query results, now process them 198 // We got the the query results, now process them
199 size_t loop_index = 0; 199 size_t loop_index = 0;
@@ -643,7 +643,7 @@ static process_arguments_wrapper process_arguments(int argc, char **argv) {
643 // = usmAES256Cisco2PrivProtocol; config.snmp_session.securityAuthProtoLen = 643 // = usmAES256Cisco2PrivProtocol; config.snmp_session.securityAuthProtoLen =
644 // sizeof(usmAES256Cisco2PrivProtocol) / sizeof(oid); 644 // sizeof(usmAES256Cisco2PrivProtocol) / sizeof(oid);
645 } else { 645 } else {
646 die(STATE_UNKNOWN, "Unknow privacy protocol"); 646 die(STATE_UNKNOWN, "Unknown privacy protocol");
647 } 647 }
648 break; 648 break;
649 case 'A': /* auth passwd */ 649 case 'A': /* auth passwd */