|
|
@@ -45,7 +45,6 @@ const char *email = "devel@nagios-plugins.org";
|
|
|
|
|
|
static const char **process_arguments (int, char **);
|
|
|
int validate_arguments (char **);
|
|
|
-int translate_state (char *);
|
|
|
void print_help (void);
|
|
|
void print_usage (void);
|
|
|
int subst_text = FALSE;
|
|
|
@@ -218,24 +217,6 @@ validate_arguments (char **command_line)
|
|
|
}
|
|
|
|
|
|
|
|
|
-int
|
|
|
-translate_state (char *state_text)
|
|
|
-{
|
|
|
- char *temp_ptr;
|
|
|
- for (temp_ptr = state_text; *temp_ptr; temp_ptr++) {
|
|
|
- *temp_ptr = toupper(*temp_ptr);
|
|
|
- }
|
|
|
- if (!strcmp(state_text,"OK") || !strcmp(state_text,"0"))
|
|
|
- return STATE_OK;
|
|
|
- if (!strcmp(state_text,"WARNING") || !strcmp(state_text,"1"))
|
|
|
- return STATE_WARNING;
|
|
|
- if (!strcmp(state_text,"CRITICAL") || !strcmp(state_text,"2"))
|
|
|
- return STATE_CRITICAL;
|
|
|
- if (!strcmp(state_text,"UNKNOWN") || !strcmp(state_text,"3"))
|
|
|
- return STATE_UNKNOWN;
|
|
|
- return ERROR;
|
|
|
-}
|
|
|
-
|
|
|
void
|
|
|
print_help (void)
|
|
|
{
|