summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_snmp.c')
-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 */