summaryrefslogtreecommitdiffstats
path: root/plugins/check_mrtgtraf.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_mrtgtraf.c')
-rw-r--r--plugins/check_mrtgtraf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c
index 5bbce50..24ccaa9 100644
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
@@ -63,12 +63,12 @@ main (int argc, char **argv)
63 char outgoing_speed_rating[8]; 63 char outgoing_speed_rating[8];
64 64
65 if (process_arguments (argc, argv) != TRUE) 65 if (process_arguments (argc, argv) != TRUE)
66 usage (_("check_ldap: could not parse arguments\n")); 66 usage4 (_("Could not parse arguments"));
67 67
68 /* open the MRTG log file for reading */ 68 /* open the MRTG log file for reading */
69 fp = fopen (log_file, "r"); 69 fp = fopen (log_file, "r");
70 if (fp == NULL) 70 if (fp == NULL)
71 usage (_("Unable to open MRTG log file\n")); 71 usage4 (_("Unable to open MRTG log file"));
72 72
73 line = 0; 73 line = 0;
74 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, fp)) { 74 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, fp)) {
@@ -110,7 +110,7 @@ main (int argc, char **argv)
110 110
111 /* if we couldn't read enough data, return an unknown error */ 111 /* if we couldn't read enough data, return an unknown error */
112 if (line <= 2) 112 if (line <= 2)
113 usage (_("Unable to process MRTG log file\n")); 113 usage4 (_("Unable to process MRTG log file"));
114 114
115 /* make sure the MRTG data isn't too old */ 115 /* make sure the MRTG data isn't too old */
116 time (&current_time); 116 time (&current_time);