Merge branch 'master' into check-curl-add-proxy-argument-and-improvements

This commit is contained in:
inqrphl 2026-02-18 10:59:03 +01:00 committed by GitHub
commit 3cc7090cb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 67 additions and 66 deletions

View file

@ -10,7 +10,7 @@ Need to know:
1. Add member to team mailing list (https://www.monitoring-plugins.org/list/listinfo/team/)
and to the commits mailing list (https://www.monitoring-plugins.org/list/listinfo/commits/),
add sourceforge email address via Privacy Options->Sender filters)
add sourceforge email address via Privacy Options->Sender filters
2. Add Sourceforge access:
- Translator: CVS access, Shell access, Release Tech (no)
- Developer: Project role: Developer, CVS access, Shell access, Release Tech (no), Task Manager (A&T),

View file

@ -9,7 +9,7 @@ using the remote name `monitoring-plugins` (rather than `origin`).
Before you start
----------------
- Check Github Actions status.
- Check GitHub Actions status.
- Update local Git repository to the current `master` tip. For a
maintenance release (e.g., version 2.4.1), update to the current
`maint-2.4` tip, instead.

View file

@ -23,9 +23,9 @@
<preface id="preface"><title>Preface</title>
<para>The purpose of this guidelines is to provide a reference for
<para>The purpose of these guidelines is to provide a reference for
the plugin developers and encourage the standardization of the
different kind of plugins: C, shell, perl, python, etc.</para>
different kinds of plugins: C, shell, perl, python, etc.</para>
<para>Monitoring Plugins Development Guidelines Copyright (C) 2000-2024
(Monitoring Plugins Team)</para>
@ -68,7 +68,7 @@
<para>You should always print something to STDOUT that tells if the
service is working or why it is failing. Try to keep the output short -
probably less that 80 characters. Remember that you ideally would like
probably less than 80 characters. Remember that you ideally would like
the entire output to appear in a pager message, which will get chopped
off after a certain length.</para>
@ -214,7 +214,7 @@
back a numerical value, or metric, which is then compared to the warning and
critical thresholds. Use the get_status(double, thresholds *) function to
compare the value against the thresholds.</para>
<para>This is the generalised format for ranges:</para>
<para>This is the generalized format for ranges:</para>
<literallayout>
[@]start:end
@ -474,7 +474,7 @@
</listitem>
<listitem><para>If writing to a file (perhaps recording
performance data) explicitly close close it. The plugin never
performance data) explicitly close it. The plugin never
calls <emphasis role="strong">exit</emphasis>; that is caught by
p1.pl, so output streams are never closed.</para>
</listitem>

View file

@ -120,7 +120,7 @@ char **np_extra_opts(int *argc, char **argv, const char *plugin_name) {
}
ea1 = ea_tmp = NULL;
}
} /* lather, rince, repeat */
} /* lather, rinse, repeat */
if (ea_num == (size_t)*argc && extra_args == NULL) {
/* No extra-opts */

View file

@ -8,7 +8,7 @@
/* np_extra_opts: Process the --extra-opts arguments and create a new argument
* array with ini-processed and argument-passed arguments together. The
* ini-procesed arguments always come first (in the order of --extra-opts
* ini-processed arguments always come first (in the order of --extra-opts
* arguments). If no --extra-opts arguments are provided or returned nothing
* it returns **argv otherwise the new array is returned. --extra-opts are
* always removed from **argv. The original pointers from **argv are kept in

View file

@ -165,7 +165,7 @@ int mp_add_subcheck_to_subcheck(mp_subcheck check[static 1], mp_subcheck subchec
void mp_add_summary(mp_check check[static 1], char *summary) { check->summary = summary; }
/*
* Generate the summary string of a mp_check object based on it's subchecks
* Generate the summary string of a mp_check object based on its subchecks
*/
char *get_subcheck_summary(mp_check check) {
mp_subcheck_list *subchecks = check.subchecks;
@ -243,7 +243,7 @@ mp_state_enum mp_compute_check_state(const mp_check check) {
}
/*
* Generate the result state of a mp_check object based on it's own state and it's subchecks states
* Generate the result state of a mp_check object based on its own state and its subchecks states
*/
mp_state_enum mp_eval_check_default(const mp_check check) {
assert(check.subchecks != NULL); // a mp_check without subchecks is invalid, die here

View file

@ -173,7 +173,7 @@ static bool read_defaults(FILE *defaults_file, const char *stanza, np_arg_list *
continue;
}
switch (current_char) {
/* globble up comment lines */
/* gobble up comment lines */
case ';':
case '#':
GOBBLE_TO(defaults_file, current_char, '\n');

View file

@ -37,9 +37,9 @@ char *pd_to_string(mp_perfdata pd) {
if (strchr(pd.label, '\'') == NULL) {
asprintf(&result, "'%s'=", pd.label);
} else {
// we have a illegal single quote in the string
// we have an illegal single quote in the string
// replace it silently instead of complaining
for (char *ptr = pd.label; *ptr == '\0'; ptr++) {
for (char *ptr = pd.label; *ptr != '\0'; ptr++) {
if (*ptr == '\'') {
*ptr = '_';
}
@ -393,7 +393,7 @@ mp_range_parsed mp_parse_range_string(const char *input) {
mp_range_parsed result = {
.range = mp_range_init(),
.error = MP_PARSING_SUCCES,
.error = MP_PARSING_SUCCESS,
};
if (input[0] == '@') {
@ -436,7 +436,7 @@ mp_range_parsed mp_parse_range_string(const char *input) {
result.range.start_infinity = false;
perfdata_value_parser_wrapper parsed_pd = parse_pd_value(input);
if (parsed_pd.error != MP_PARSING_SUCCES) {
if (parsed_pd.error != MP_PARSING_SUCCESS) {
result.error = parsed_pd.error;
free(working_copy);
return result;
@ -457,7 +457,7 @@ mp_range_parsed mp_parse_range_string(const char *input) {
} else {
perfdata_value_parser_wrapper parsed_pd = parse_pd_value(input);
if (parsed_pd.error != MP_PARSING_SUCCES) {
if (parsed_pd.error != MP_PARSING_SUCCESS) {
result.error = parsed_pd.error;
return result;
}
@ -470,7 +470,7 @@ mp_range_parsed mp_parse_range_string(const char *input) {
double_parser_wrapper parse_double(const char *input) {
double_parser_wrapper result = {
.error = MP_PARSING_SUCCES,
.error = MP_PARSING_SUCCESS,
};
if (input == NULL) {
@ -501,7 +501,7 @@ double_parser_wrapper parse_double(const char *input) {
integer_parser_wrapper parse_integer(const char *input) {
integer_parser_wrapper result = {
.error = MP_PARSING_SUCCES,
.error = MP_PARSING_SUCCESS,
};
if (input == NULL) {
@ -548,7 +548,7 @@ perfdata_value_parser_wrapper parse_pd_value(const char *input) {
// try integer first
integer_parser_wrapper tmp_int = parse_integer(input);
if (tmp_int.error == MP_PARSING_SUCCES) {
if (tmp_int.error == MP_PARSING_SUCCESS) {
perfdata_value_parser_wrapper result = {
.error = tmp_int.error,
.value = tmp_int.value,
@ -558,7 +558,7 @@ perfdata_value_parser_wrapper parse_pd_value(const char *input) {
double_parser_wrapper tmp_double = parse_double(input);
perfdata_value_parser_wrapper result = {};
if (tmp_double.error == MP_PARSING_SUCCES) {
if (tmp_double.error == MP_PARSING_SUCCESS) {
result.error = tmp_double.error;
result.value = tmp_double.value;
} else {

View file

@ -111,7 +111,8 @@ mp_range mp_range_set_end(mp_range, mp_perfdata_value);
*/
typedef enum {
MP_PARSING_SUCCES = 0,
MP_PARSING_SUCCESS = 0,
MP_PARSING_SUCCES = MP_PARSING_SUCCESS,
MP_PARSING_FAILURE,
MP_RANGE_PARSING_FAILURE,
MP_RANGE_PARSING_UNDERFLOW,

View file

@ -45,7 +45,7 @@ static inline mp_state_enum max_state(mp_state_enum a, mp_state_enum b) {
* STATE_OK < STATE_DEPENDENT < STATE_UNKNOWN < STATE_WARNING < STATE_CRITICAL
*
* The main difference between max_state_alt and max_state it that it doesn't
* allow setting a default to UNKNOWN. It will instead prioritixe any valid
* allow setting a default to UNKNOWN. It will instead prioritize any valid
* non-OK state.
****************************************************************************/

View file

@ -993,7 +993,7 @@ check_curl_config_wrapper process_arguments(int argc, char **argv) {
case 'c': /* critical time threshold */
{
mp_range_parsed critical_range = mp_parse_range_string(optarg);
if (critical_range.error != MP_PARSING_SUCCES) {
if (critical_range.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical threshold: %s", optarg);
}
result.config.thlds = mp_thresholds_set_crit(result.config.thlds, critical_range.range);
@ -1002,7 +1002,7 @@ check_curl_config_wrapper process_arguments(int argc, char **argv) {
{
mp_range_parsed warning_range = mp_parse_range_string(optarg);
if (warning_range.error != MP_PARSING_SUCCES) {
if (warning_range.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning threshold: %s", optarg);
}
result.config.thlds = mp_thresholds_set_warn(result.config.thlds, warning_range.range);
@ -1282,7 +1282,7 @@ check_curl_config_wrapper process_arguments(int argc, char **argv) {
{
mp_range_parsed foo = mp_parse_range_string(optarg);
if (foo.error != MP_PARSING_SUCCES) {
if (foo.error != MP_PARSING_SUCCESS) {
die(STATE_CRITICAL, "failed to parse page size limits: %s", optarg);
}

View file

@ -470,7 +470,7 @@ check_dbi_config_wrapper process_arguments(int argc, char **argv) {
case 'c': /* critical range */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical threshold");
}
result.config.thresholds = mp_thresholds_set_crit(result.config.thresholds, tmp.range);
@ -478,7 +478,7 @@ check_dbi_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'w': /* warning range */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning threshold");
}
result.config.thresholds = mp_thresholds_set_warn(result.config.thresholds, tmp.range);

View file

@ -838,7 +838,7 @@ check_disk_config_wrapper process_arguments(int argc, char **argv) {
}
char *range = argv[index++];
mp_range_parsed tmp = mp_parse_range_string(range);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning threshold");
}
@ -859,7 +859,7 @@ check_disk_config_wrapper process_arguments(int argc, char **argv) {
}
char *range = argv[index++];
mp_range_parsed tmp = mp_parse_range_string(range);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning threshold");
}

View file

@ -400,7 +400,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) {
break;
case 'w': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning connection time threshold");
}
result.config.connection_time_threshold =
@ -408,7 +408,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'c': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical connection time threshold");
}
result.config.connection_time_threshold =
@ -416,7 +416,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'W': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse number of entries warning threshold");
}
result.config.entries_thresholds =
@ -424,7 +424,7 @@ check_ldap_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'C': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse number of entries critical threshold");
}
result.config.entries_thresholds =

View file

@ -255,7 +255,7 @@ check_mrtg_config_wrapper process_arguments(int argc, char **argv) {
break;
case 'w': /* critical time threshold */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning threshold");
}
result.config.values_threshold =
@ -263,7 +263,7 @@ check_mrtg_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'c': /* warning time threshold */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical threshold");
}
result.config.values_threshold =
@ -330,7 +330,7 @@ check_mrtg_config_wrapper process_arguments(int argc, char **argv) {
if (argc > option_char && !result.config.values_threshold.warning_is_set) {
mp_range_parsed tmp = mp_parse_range_string(argv[option_char++]);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning threshold");
}
result.config.values_threshold =
@ -339,7 +339,7 @@ check_mrtg_config_wrapper process_arguments(int argc, char **argv) {
if (argc > option_char && !result.config.values_threshold.critical_is_set) {
mp_range_parsed tmp = mp_parse_range_string(argv[option_char++]);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical threshold");
}
result.config.values_threshold =

View file

@ -572,7 +572,7 @@ check_mysql_config_wrapper process_arguments(int argc, char **argv) {
break;
case 'w': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning time threshold");
}
result.config.replica_thresholds =
@ -580,7 +580,7 @@ check_mysql_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'c': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical time threshold");
}
result.config.replica_thresholds =

View file

@ -277,14 +277,14 @@ check_mysql_query_config_wrapper process_arguments(int argc, char **argv) {
break;
case 'w': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning threshold");
}
result.config.thresholds = mp_thresholds_set_warn(result.config.thresholds, tmp.range);
} break;
case 'c': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical threshold");
}
result.config.thresholds = mp_thresholds_set_crit(result.config.thresholds, tmp.range);

View file

@ -548,7 +548,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) {
break;
case 'w': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning offset threshold");
}
@ -557,7 +557,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'c': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical offset threshold");
}
@ -567,7 +567,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) {
case 'W': {
result.config.do_stratum = true;
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning stratum threshold");
}
@ -577,7 +577,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) {
case 'C': {
result.config.do_stratum = true;
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical stratum threshold");
}
@ -587,7 +587,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) {
case 'j': {
result.config.do_jitter = true;
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning jitter threshold");
}
@ -597,7 +597,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) {
case 'k': {
result.config.do_jitter = true;
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical jitter threshold");
}
@ -607,7 +607,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) {
case 'm': {
result.config.do_truechimers = true;
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning truechimer threshold");
}
@ -617,7 +617,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) {
case 'n': {
result.config.do_truechimers = true;
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical truechimer threshold");
}

View file

@ -605,7 +605,7 @@ static check_ntp_time_config_wrapper process_arguments(int argc, char **argv) {
break;
case 'w': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning threshold");
}
@ -614,7 +614,7 @@ static check_ntp_time_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'c': {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse crit threshold");
}

View file

@ -401,7 +401,7 @@ static check_pgsql_config_wrapper process_arguments(int argc, char **argv) {
break;
case 'c': /* critical time threshold */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical time threshold");
}
result.config.time_thresholds =
@ -409,7 +409,7 @@ static check_pgsql_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'w': /* warning time threshold */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning time threshold");
}
result.config.time_thresholds =
@ -417,7 +417,7 @@ static check_pgsql_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'C': /* critical query threshold */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical query threshold");
}
@ -427,7 +427,7 @@ static check_pgsql_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'W': /* warning query threshold */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning query threshold");
}
result.config.qthresholds =

View file

@ -409,7 +409,7 @@ check_real_config_wrapper process_arguments(int argc, char **argv) {
case 'w': /* warning time threshold */
{
mp_range_parsed critical_range = mp_parse_range_string(optarg);
if (critical_range.error != MP_PARSING_SUCCES) {
if (critical_range.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning threshold: %s", optarg);
}
result.config.time_thresholds =
@ -418,7 +418,7 @@ check_real_config_wrapper process_arguments(int argc, char **argv) {
case 'c': /* critical time threshold */
{
mp_range_parsed critical_range = mp_parse_range_string(optarg);
if (critical_range.error != MP_PARSING_SUCCES) {
if (critical_range.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical threshold: %s", optarg);
}
result.config.time_thresholds =

View file

@ -735,7 +735,7 @@ check_smtp_config_wrapper process_arguments(int argc, char **argv) {
break;
case 'c': /* critical time threshold */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse critical time threshold");
}
result.config.connection_time =
@ -743,7 +743,7 @@ check_smtp_config_wrapper process_arguments(int argc, char **argv) {
} break;
case 'w': /* warning time threshold */ {
mp_range_parsed tmp = mp_parse_range_string(optarg);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "failed to parse warning time threshold");
}
result.config.connection_time =

View file

@ -52,7 +52,7 @@ int check_snmp_set_thresholds(const char *threshold_string, check_snmp_test_unit
}
mp_range_parsed tmp = mp_parse_range_string(ptr);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "Unable to parse critical threshold range: %s", ptr);
}
@ -70,7 +70,7 @@ int check_snmp_set_thresholds(const char *threshold_string, check_snmp_test_unit
// Single value
// only valid for the first test unit
mp_range_parsed tmp = mp_parse_range_string(threshold_string);
if (tmp.error != MP_PARSING_SUCCES) {
if (tmp.error != MP_PARSING_SUCCESS) {
die(STATE_UNKNOWN, "Unable to parse critical threshold range: %s", threshold_string);
}

View file

@ -222,7 +222,7 @@ check_users_config_wrapper process_arguments(int argc, char **argv) {
exit(STATE_UNKNOWN);
}
if (tmp.error == MP_PARSING_SUCCES) {
if (tmp.error == MP_PARSING_SUCCESS) {
result.config.thresholds.warning = tmp.range;
result.config.thresholds.warning_is_set = true;
} else {
@ -238,7 +238,7 @@ check_users_config_wrapper process_arguments(int argc, char **argv) {
exit(STATE_UNKNOWN);
}
if (tmp.error == MP_PARSING_SUCCES) {
if (tmp.error == MP_PARSING_SUCCESS) {
result.config.thresholds.critical = tmp.range;
result.config.thresholds.critical_is_set = true;
} else {

View file

@ -37,7 +37,7 @@ find . -type f -name Makefile.in -print| xargs rm -f
rm -f aclocal.m4 compile config.guess config.h.in config.sub configure depcomp
rm -f m4/Makefile.am
echo "$0: Removing miscelanious files..."
echo "$0: Removing miscellaneous files..."
rm -f po/*.gmo po/stamp-po
rm -f lib/tests/*.Po
rm -f doc/developer-guidelines.html

View file

@ -30,7 +30,7 @@ use IO::File;
sub TIEHANDLE {
my ($class, $fn) = @_;
my $handle = new IO::File "> $fn" or die "Cannot open embedded work filei $!\n";
my $handle = new IO::File "> $fn" or die "Cannot open embedded work file $!\n";
bless { FH => $handle, Value => 0}, $class;
}