diff options
Diffstat (limited to 'plugins/check_nagios.c')
| -rw-r--r-- | plugins/check_nagios.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index 7ae0ff85..a678e2a4 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c | |||
| @@ -217,7 +217,7 @@ process_arguments (int argc, char **argv) | |||
| 217 | if (is_intnonneg (argv[2])) | 217 | if (is_intnonneg (argv[2])) |
| 218 | expire_minutes = atoi (argv[2]); | 218 | expire_minutes = atoi (argv[2]); |
| 219 | else | 219 | else |
| 220 | terminate (STATE_UNKNOWN, | 220 | die (STATE_UNKNOWN, |
| 221 | _("Expiration time must be an integer (seconds)\nType '%s -h' for additional help\n"), | 221 | _("Expiration time must be an integer (seconds)\nType '%s -h' for additional help\n"), |
| 222 | progname); | 222 | progname); |
| 223 | process_string = argv[3]; | 223 | process_string = argv[3]; |
| @@ -251,7 +251,7 @@ process_arguments (int argc, char **argv) | |||
| 251 | if (is_intnonneg (optarg)) | 251 | if (is_intnonneg (optarg)) |
| 252 | expire_minutes = atoi (optarg); | 252 | expire_minutes = atoi (optarg); |
| 253 | else | 253 | else |
| 254 | terminate (STATE_UNKNOWN, | 254 | die (STATE_UNKNOWN, |
| 255 | _("Expiration time must be an integer (seconds)\nType '%s -h' for additional help\n"), | 255 | _("Expiration time must be an integer (seconds)\nType '%s -h' for additional help\n"), |
| 256 | progname); | 256 | progname); |
| 257 | break; | 257 | break; |
| @@ -263,11 +263,11 @@ process_arguments (int argc, char **argv) | |||
| 263 | 263 | ||
| 264 | 264 | ||
| 265 | if (status_log == NULL) | 265 | if (status_log == NULL) |
| 266 | terminate (STATE_UNKNOWN, | 266 | die (STATE_UNKNOWN, |
| 267 | _("You must provide the status_log\nType '%s -h' for additional help\n"), | 267 | _("You must provide the status_log\nType '%s -h' for additional help\n"), |
| 268 | progname); | 268 | progname); |
| 269 | else if (process_string == NULL) | 269 | else if (process_string == NULL) |
| 270 | terminate (STATE_UNKNOWN, | 270 | die (STATE_UNKNOWN, |
| 271 | _("You must provide a process string\nType '%s -h' for additional help\n"), | 271 | _("You must provide a process string\nType '%s -h' for additional help\n"), |
| 272 | progname); | 272 | progname); |
| 273 | 273 | ||
