Code

Fix includes for gettext
[nagiosplug.git] / plugins / check_snmp.c
index 18b7f2f4df6ab50f5acf5d9ab5aab1e6dca026c0..c1c4ea831b7db57093296956fe12ebb9fbde1e94 100644 (file)
@@ -156,7 +156,7 @@ main (int argc, char **argv)
        output_delim = strdup (DEFAULT_OUTPUT_DELIMITER);
        miblist = strdup (DEFAULT_MIBLIST);
 
-       if (process_arguments (argc, argv) != TRUE)
+       if (process_arguments (argc, argv) == ERROR)
                usage4 (_("Could not parse arguments"));
 
        /* create the command line to execute */
@@ -259,7 +259,7 @@ main (int argc, char **argv)
 
                /* Process this block for string matching */
                else if (eval_method[i] & CRIT_STRING) {
-                       if (strcmp (response, string_value))
+                       if (strcmp (show, string_value))
                                iresult = STATE_CRITICAL;
                        else
                                iresult = STATE_OK;
@@ -656,7 +656,7 @@ validate_arguments ()
                }
                else if ( strcmp(seclevel, "authPriv") == 0 ) {
                        if ( secname == NULL || authpasswd == NULL || privpasswd == NULL ) {
-                               printf (("Missing secname (%s), authpassword (%s), or privpasswd (%s)! \n"),secname, authpasswd,privpasswd );
+                               printf (_("Missing secname (%s), authpassword (%s), or privpasswd (%s)! \n"),secname, authpasswd,privpasswd );
                                print_usage ();
                                exit (STATE_UNKNOWN);
                        }